From 6a0080ad69398c572d856886293e19c79cf0fc0e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 13 Sep 2022 16:32:41 -0700 Subject: [PATCH] chore(all): auto-regenerate gapics (#6636) This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: https://github.com/googleapis/go-genproto/pull/892 Changes: feat(bigquery/storage): add location to WriteStream and add WriteStreamView support PiperOrigin-RevId: 472835596 Source-Link: https://github.com/googleapis/googleapis/commit/1cf9407d5a7c889b7b30bd8a8ea4b67275943ac9 feat(websecurityscanner): added NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN to ScanRunWarningTrace.Code fix: Added fix to return a list of the endpoints that encountered errors during crawl, along with the specific error message when the starting URL returns Http errors fix: GoogleAccount is deprecated PiperOrigin-RevId: 472758119 Source-Link: https://github.com/googleapis/googleapis/commit/4356ba6e8a5495d0b3a7398f9c86c14a09325262 docs(beyondcorp/appconnections): Fix the main client gem name listed in the readme PiperOrigin-RevId: 472553132 Source-Link: https://github.com/googleapis/googleapis/commit/58cc70d2239054234866e01d11c81663f41bc395 chore(oslogin): remove obsolete service config files PiperOrigin-RevId: 472492863 Source-Link: https://github.com/googleapis/googleapis/commit/725381dc13c25c5fdc30fc9a660e5f9c35378f08 chore(firestore): Update Firestore Bazel files to refer to correct service config YAML files PiperOrigin-RevId: 472218602 Source-Link: https://github.com/googleapis/googleapis/commit/113921791576d48e9202f40c214ed77b7d945f14 feat(dlp): add Deidentify action PiperOrigin-RevId: 471923438 Source-Link: https://github.com/googleapis/googleapis/commit/62995d04b95d4da6b691ca6090b394ec67becc8b feat(retail): release Model Services to v2beta version feat: release BatchRemoveCatalogAttributes API to v2beta version feat: release ExactSearchableOption for attribute config to v2beta version feat: release diversity_type for ServingConfig in v2beta version feat: add local inventories info to the Product resource feat: deprecate unused page_token field of PredictionRequest in v2beta version feat: deprecate unused facet_spec field of Control in v2beta version docs: improve documentation of SearchRequest for Search Personalization docs: improve documentation for Fullfillment and Inventory API in ProductService docs: minor documentation fixes and improvements PiperOrigin-RevId: 471846764 Source-Link: https://github.com/googleapis/googleapis/commit/15132940942b0c70083f9c7f6e0bf722fe620a8d feat(assuredworkloads): Add compliant_but_disallowed_services field to the v1beta1 Workload proto Committer: @samhutton PiperOrigin-RevId: 471822190 Source-Link: https://github.com/googleapis/googleapis/commit/61f75b4f6093d7ad7d41ccaf86c224a6ced20c71 --- .../apiv1/access_approval_client.go | 6 +- .../access_approval_client_example_test.go | 50 + accessapproval/apiv1/doc.go | 10 + accessapproval/go.mod | 4 +- accessapproval/go.sum | 7 +- .../apiv1/access_context_manager_client.go | 6 +- ...ess_context_manager_client_example_test.go | 120 ++ accesscontextmanager/apiv1/doc.go | 10 + accesscontextmanager/go.mod | 10 +- accesscontextmanager/go.sum | 20 +- aiplatform/apiv1/dataset_client.go | 6 +- .../apiv1/dataset_client_example_test.go | 110 ++ aiplatform/apiv1/doc.go | 10 + aiplatform/apiv1/endpoint_client.go | 6 +- .../apiv1/endpoint_client_example_test.go | 90 ++ aiplatform/apiv1/featurestore_client.go | 6 +- .../apiv1/featurestore_client_example_test.go | 155 ++ .../featurestore_online_serving_client.go | 6 +- ...tore_online_serving_client_example_test.go | 60 + aiplatform/apiv1/index_client.go | 6 +- aiplatform/apiv1/index_client_example_test.go | 90 ++ aiplatform/apiv1/index_endpoint_client.go | 6 +- .../index_endpoint_client_example_test.go | 95 ++ aiplatform/apiv1/job_client.go | 6 +- aiplatform/apiv1/job_client_example_test.go | 195 +++ aiplatform/apiv1/metadata_client.go | 6 +- .../apiv1/metadata_client_example_test.go | 210 +++ aiplatform/apiv1/migration_client.go | 6 +- .../apiv1/migration_client_example_test.go | 65 + aiplatform/apiv1/model_client.go | 6 +- aiplatform/apiv1/model_client_example_test.go | 130 ++ aiplatform/apiv1/pipeline_client.go | 6 +- .../apiv1/pipeline_client_example_test.go | 105 ++ aiplatform/apiv1/prediction_client.go | 6 +- .../apiv1/prediction_client_example_test.go | 70 + aiplatform/apiv1/specialist_pool_client.go | 6 +- .../specialist_pool_client_example_test.go | 80 + aiplatform/apiv1/tensorboard_client.go | 6 +- .../apiv1/tensorboard_client_example_test.go | 190 +++ aiplatform/apiv1/vizier_client.go | 6 +- .../apiv1/vizier_client_example_test.go | 130 ++ aiplatform/apiv1beta1/dataset_client.go | 6 +- .../apiv1beta1/dataset_client_example_test.go | 110 ++ .../deployment_resource_pool_client.go | 6 +- ...yment_resource_pool_client_example_test.go | 80 + aiplatform/apiv1beta1/doc.go | 10 + aiplatform/apiv1beta1/endpoint_client.go | 6 +- .../endpoint_client_example_test.go | 90 ++ aiplatform/apiv1beta1/featurestore_client.go | 6 +- .../featurestore_client_example_test.go | 155 ++ .../featurestore_online_serving_client.go | 6 +- ...tore_online_serving_client_example_test.go | 65 + aiplatform/apiv1beta1/index_client.go | 6 +- .../apiv1beta1/index_client_example_test.go | 90 ++ .../apiv1beta1/index_endpoint_client.go | 6 +- .../index_endpoint_client_example_test.go | 95 ++ aiplatform/apiv1beta1/job_client.go | 6 +- .../apiv1beta1/job_client_example_test.go | 195 +++ aiplatform/apiv1beta1/metadata_client.go | 6 +- .../metadata_client_example_test.go | 210 +++ aiplatform/apiv1beta1/migration_client.go | 6 +- .../migration_client_example_test.go | 65 + aiplatform/apiv1beta1/model_client.go | 6 +- .../apiv1beta1/model_client_example_test.go | 135 ++ aiplatform/apiv1beta1/pipeline_client.go | 6 +- .../pipeline_client_example_test.go | 105 ++ aiplatform/apiv1beta1/prediction_client.go | 6 +- .../prediction_client_example_test.go | 70 + .../apiv1beta1/specialist_pool_client.go | 6 +- .../specialist_pool_client_example_test.go | 80 + aiplatform/apiv1beta1/tensorboard_client.go | 6 +- .../tensorboard_client_example_test.go | 190 +++ aiplatform/apiv1beta1/vizier_client.go | 6 +- .../apiv1beta1/vizier_client_example_test.go | 130 ++ aiplatform/go.mod | 4 +- aiplatform/go.sum | 7 +- .../apiv1alpha/analytics_admin_client.go | 104 +- .../analytics_admin_client_example_test.go | 405 ++++++ analytics/admin/apiv1alpha/doc.go | 10 + analytics/go.mod | 4 +- analytics/go.sum | 9 +- apigateway/apiv1/api_gateway_client.go | 6 +- .../apiv1/api_gateway_client_example_test.go | 80 + apigateway/apiv1/doc.go | 10 + apigateway/go.mod | 10 +- apigateway/go.sum | 20 +- apigeeconnect/apiv1/connection_client.go | 6 +- .../apiv1/connection_client_example_test.go | 10 + apigeeconnect/apiv1/doc.go | 10 + apigeeconnect/apiv1/tether_client.go | 6 +- .../apiv1/tether_client_example_test.go | 10 + apigeeconnect/go.mod | 4 +- apigeeconnect/go.sum | 9 +- apigeeregistry/apiv1/doc.go | 10 + apigeeregistry/apiv1/provisioning_client.go | 6 +- .../apiv1/provisioning_client_example_test.go | 65 + apigeeregistry/apiv1/registry_client.go | 6 +- .../apiv1/registry_client_example_test.go | 225 +++ apigeeregistry/go.mod | 4 +- apigeeregistry/go.sum | 9 +- apikeys/apiv2/api_keys_client.go | 6 +- apikeys/apiv2/api_keys_client_example_test.go | 50 + apikeys/apiv2/doc.go | 10 + apikeys/go.mod | 4 +- apikeys/go.sum | 8 +- appengine/apiv1/applications_client.go | 6 +- .../apiv1/applications_client_example_test.go | 25 + .../apiv1/authorized_certificates_client.go | 6 +- ...orized_certificates_client_example_test.go | 30 + appengine/apiv1/authorized_domains_client.go | 6 +- .../authorized_domains_client_example_test.go | 10 + appengine/apiv1/doc.go | 10 + appengine/apiv1/domain_mappings_client.go | 6 +- .../domain_mappings_client_example_test.go | 30 + appengine/apiv1/firewall_client.go | 6 +- .../apiv1/firewall_client_example_test.go | 35 + appengine/apiv1/instances_client.go | 6 +- .../apiv1/instances_client_example_test.go | 25 + appengine/apiv1/services_client.go | 6 +- .../apiv1/services_client_example_test.go | 25 + appengine/apiv1/versions_client.go | 6 +- .../apiv1/versions_client_example_test.go | 30 + appengine/go.mod | 4 +- appengine/go.sum | 9 +- area120/go.mod | 10 +- area120/go.sum | 21 +- area120/tables/apiv1alpha1/doc.go | 10 + area120/tables/apiv1alpha1/tables_client.go | 16 +- .../apiv1alpha1/tables_client_example_test.go | 70 + .../apiv1/artifact_registry_client.go | 6 +- .../artifact_registry_client_example_test.go | 140 ++ artifactregistry/apiv1/doc.go | 10 + .../apiv1beta2/artifact_registry_client.go | 6 +- .../artifact_registry_client_example_test.go | 130 ++ artifactregistry/apiv1beta2/doc.go | 10 + artifactregistry/go.mod | 10 +- artifactregistry/go.sum | 20 +- asset/apiv1/asset_client.go | 6 +- asset/apiv1/asset_client_example_test.go | 110 ++ asset/apiv1/doc.go | 10 + asset/apiv1p2beta1/asset_client.go | 8 +- .../apiv1p2beta1/asset_client_example_test.go | 35 + .../apiv1p2beta1/assetpb/asset_service.pb.go | 48 +- asset/apiv1p2beta1/assetpb/assets.pb.go | 32 +- asset/apiv1p2beta1/doc.go | 10 + asset/apiv1p5beta1/asset_client.go | 19 +- .../apiv1p5beta1/asset_client_example_test.go | 15 + .../apiv1p5beta1/assetpb/asset_service.pb.go | 22 +- asset/apiv1p5beta1/assetpb/assets.pb.go | 10 +- asset/apiv1p5beta1/doc.go | 10 + asset/go.mod | 6 +- asset/go.sum | 11 +- .../apiv1/assured_workloads_client.go | 6 +- .../assured_workloads_client_example_test.go | 30 + assuredworkloads/apiv1/doc.go | 10 + .../apiv1beta1/assured_workloads_client.go | 146 +- .../assured_workloads_client_example_test.go | 55 + assuredworkloads/apiv1beta1/doc.go | 10 + assuredworkloads/go.mod | 6 +- assuredworkloads/go.sum | 11 +- automl/apiv1/auto_ml_client.go | 6 +- automl/apiv1/auto_ml_client_example_test.go | 95 ++ automl/apiv1/doc.go | 10 + automl/apiv1/prediction_client.go | 6 +- .../apiv1/prediction_client_example_test.go | 15 + automl/apiv1beta1/auto_ml_client.go | 64 +- .../apiv1beta1/auto_ml_client_example_test.go | 130 ++ automl/apiv1beta1/doc.go | 10 + automl/apiv1beta1/prediction_client.go | 8 +- .../prediction_client_example_test.go | 20 + automl/go.mod | 6 +- automl/go.sum | 9 +- .../apiv2/bare_metal_solution_client.go | 6 +- ...bare_metal_solution_client_example_test.go | 115 ++ baremetalsolution/apiv2/doc.go | 10 + baremetalsolution/go.mod | 8 +- baremetalsolution/go.sum | 18 +- batch/apiv1/batch_client.go | 6 +- batch/apiv1/batch_client_example_test.go | 80 + batch/apiv1/doc.go | 10 + batch/go.mod | 4 +- batch/go.sum | 9 +- .../apiv1/app_connections_client.go | 6 +- .../app_connections_client_example_test.go | 80 + beyondcorp/appconnections/apiv1/doc.go | 10 + .../apiv1/app_connectors_client.go | 6 +- .../app_connectors_client_example_test.go | 80 + beyondcorp/appconnectors/apiv1/doc.go | 10 + .../appgateways/apiv1/app_gateways_client.go | 6 +- .../apiv1/app_gateways_client_example_test.go | 70 + beyondcorp/appgateways/apiv1/doc.go | 10 + .../apiv1/client_connector_services_client.go | 6 +- ..._connector_services_client_example_test.go | 75 + .../clientconnectorservices/apiv1/doc.go | 10 + .../apiv1/client_gateways_client.go | 6 +- .../client_gateways_client_example_test.go | 70 + beyondcorp/clientgateways/apiv1/doc.go | 10 + beyondcorp/go.mod | 6 +- beyondcorp/go.sum | 11 +- .../connection/apiv1/connection_client.go | 6 +- .../apiv1/connection_client_example_test.go | 45 + bigquery/connection/apiv1/doc.go | 10 + .../apiv1beta1/connection_client.go | 24 +- .../connection_client_example_test.go | 55 + bigquery/connection/apiv1beta1/doc.go | 10 + .../apiv1beta1/analytics_hub_client.go | 24 +- .../analytics_hub_client_example_test.go | 95 ++ bigquery/dataexchange/apiv1beta1/doc.go | 10 + .../apiv1/data_transfer_client.go | 6 +- .../data_transfer_client_example_test.go | 80 + bigquery/datatransfer/apiv1/doc.go | 10 + bigquery/go.mod | 8 +- bigquery/go.sum | 17 +- bigquery/migration/apiv2/doc.go | 10 + bigquery/migration/apiv2/migration_client.go | 6 +- .../apiv2/migration_client_example_test.go | 40 + bigquery/migration/apiv2alpha/doc.go | 10 + .../migration/apiv2alpha/migration_client.go | 6 +- .../migration_client_example_test.go | 40 + .../apiv2alpha/sql_translation_client.go | 6 +- .../sql_translation_client_example_test.go | 10 + bigquery/reservation/apiv1/doc.go | 10 + .../reservation/apiv1/reservation_client.go | 6 +- .../apiv1/reservation_client_example_test.go | 110 ++ bigquery/reservation/apiv1beta1/doc.go | 10 + .../apiv1beta1/reservation_client.go | 6 +- .../reservation_client_example_test.go | 100 ++ .../storage/apiv1/big_query_read_client.go | 6 +- .../big_query_read_client_example_test.go | 15 + .../storage/apiv1/big_query_write_client.go | 6 +- .../big_query_write_client_example_test.go | 35 + bigquery/storage/apiv1/doc.go | 10 + .../apiv1beta1/big_query_storage_client.go | 8 +- .../big_query_storage_client_example_test.go | 30 + bigquery/storage/apiv1beta1/doc.go | 10 + .../apiv1beta2/big_query_read_client.go | 8 +- .../big_query_read_client_example_test.go | 20 + .../apiv1beta2/big_query_write_client.go | 8 +- .../big_query_write_client_example_test.go | 40 + bigquery/storage/apiv1beta2/doc.go | 10 + bigtable/go.mod | 10 +- bigtable/go.sum | 20 +- billing/apiv1/cloud_billing_client.go | 6 +- .../cloud_billing_client_example_test.go | 55 + billing/apiv1/cloud_catalog_client.go | 6 +- .../cloud_catalog_client_example_test.go | 15 + billing/apiv1/doc.go | 10 + billing/budgets/apiv1/budget_client.go | 6 +- .../apiv1/budget_client_example_test.go | 30 + billing/budgets/apiv1/doc.go | 10 + billing/budgets/apiv1beta1/budget_client.go | 6 +- .../apiv1beta1/budget_client_example_test.go | 30 + billing/budgets/apiv1beta1/doc.go | 10 + billing/go.mod | 4 +- billing/go.sum | 9 +- .../apiv1/binauthz_management_client.go | 6 +- ...binauthz_management_client_example_test.go | 40 + binaryauthorization/apiv1/doc.go | 10 + .../apiv1/system_policy_client.go | 6 +- .../system_policy_client_example_test.go | 10 + .../apiv1/validation_helper_client.go | 6 +- .../validation_helper_client_example_test.go | 10 + ...uthz_management_service_v1_beta1_client.go | 8 +- ...nt_service_v1_beta1_client_example_test.go | 45 + binaryauthorization/apiv1beta1/doc.go | 10 + .../system_policy_v1_beta1_client.go | 8 +- ...tem_policy_v1_beta1_client_example_test.go | 15 + binaryauthorization/go.mod | 4 +- binaryauthorization/go.sum | 9 +- .../apiv1/certificate_manager_client.go | 6 +- ...certificate_manager_client_example_test.go | 135 ++ certificatemanager/apiv1/doc.go | 10 + certificatemanager/go.mod | 4 +- certificatemanager/go.sum | 9 +- channel/apiv1/cloud_channel_client.go | 6 +- .../cloud_channel_client_example_test.go | 250 ++++ channel/apiv1/doc.go | 10 + channel/go.mod | 4 +- channel/go.sum | 9 +- cloudbuild/apiv1/v2/cloud_build_client.go | 6 +- .../v2/cloud_build_client_example_test.go | 95 ++ cloudbuild/apiv1/v2/doc.go | 10 + cloudbuild/go.mod | 10 +- cloudbuild/go.sum | 20 +- clouddms/apiv1/data_migration_client.go | 6 +- .../data_migration_client_example_test.go | 90 ++ clouddms/apiv1/doc.go | 10 + clouddms/go.mod | 4 +- clouddms/go.sum | 9 +- cloudtasks/apiv2/cloud_tasks_client.go | 6 +- .../apiv2/cloud_tasks_client_example_test.go | 85 ++ cloudtasks/apiv2/doc.go | 10 + cloudtasks/apiv2beta2/cloud_tasks_client.go | 32 +- .../cloud_tasks_client_example_test.go | 110 ++ cloudtasks/apiv2beta2/doc.go | 10 + cloudtasks/apiv2beta3/cloud_tasks_client.go | 32 +- .../cloud_tasks_client_example_test.go | 90 ++ cloudtasks/apiv2beta3/doc.go | 10 + cloudtasks/go.mod | 12 +- cloudtasks/go.sum | 21 +- compute/apiv1/accelerator_types_client.go | 5 +- .../accelerator_types_client_example_test.go | 20 + compute/apiv1/addresses_client.go | 5 +- .../apiv1/addresses_client_example_test.go | 30 + compute/apiv1/autoscalers_client.go | 5 +- .../apiv1/autoscalers_client_example_test.go | 40 + compute/apiv1/backend_buckets_client.go | 5 +- .../backend_buckets_client_example_test.go | 50 + compute/apiv1/backend_services_client.go | 5 +- .../backend_services_client_example_test.go | 65 + compute/apiv1/disk_types_client.go | 5 +- .../apiv1/disk_types_client_example_test.go | 20 + compute/apiv1/disks_client.go | 5 +- compute/apiv1/disks_client_example_test.go | 70 + compute/apiv1/doc.go | 10 + compute/apiv1/external_vpn_gateways_client.go | 5 +- ...ternal_vpn_gateways_client_example_test.go | 35 + compute/apiv1/firewall_policies_client.go | 5 +- .../firewall_policies_client_example_test.go | 95 ++ compute/apiv1/firewalls_client.go | 5 +- .../apiv1/firewalls_client_example_test.go | 35 + compute/apiv1/forwarding_rules_client.go | 5 +- .../forwarding_rules_client_example_test.go | 45 + compute/apiv1/global_addresses_client.go | 5 +- .../global_addresses_client_example_test.go | 25 + .../apiv1/global_forwarding_rules_client.go | 5 +- ...al_forwarding_rules_client_example_test.go | 40 + .../global_network_endpoint_groups_client.go | 5 +- ...ork_endpoint_groups_client_example_test.go | 40 + compute/apiv1/global_operations_client.go | 5 +- .../global_operations_client_example_test.go | 30 + .../global_organization_operations_client.go | 5 +- ...nization_operations_client_example_test.go | 20 + ...global_public_delegated_prefixes_client.go | 5 +- ..._delegated_prefixes_client_example_test.go | 30 + compute/apiv1/health_checks_client.go | 5 +- .../health_checks_client_example_test.go | 40 + compute/apiv1/image_family_views_client.go | 5 +- .../image_family_views_client_example_test.go | 10 + compute/apiv1/images_client.go | 5 +- compute/apiv1/images_client_example_test.go | 60 + .../apiv1/instance_group_managers_client.go | 5 +- ...ance_group_managers_client_example_test.go | 105 ++ compute/apiv1/instance_groups_client.go | 5 +- .../instance_groups_client_example_test.go | 50 + compute/apiv1/instance_templates_client.go | 5 +- .../instance_templates_client_example_test.go | 40 + compute/apiv1/instances_client.go | 5 +- .../apiv1/instances_client_example_test.go | 230 +++ .../apiv1/interconnect_attachments_client.go | 5 +- ...connect_attachments_client_example_test.go | 35 + .../apiv1/interconnect_locations_client.go | 5 +- ...erconnect_locations_client_example_test.go | 15 + compute/apiv1/interconnects_client.go | 5 +- .../interconnects_client_example_test.go | 35 + compute/apiv1/license_codes_client.go | 5 +- .../license_codes_client_example_test.go | 15 + compute/apiv1/licenses_client.go | 5 +- compute/apiv1/licenses_client_example_test.go | 40 + compute/apiv1/machine_images_client.go | 5 +- .../machine_images_client_example_test.go | 40 + compute/apiv1/machine_types_client.go | 5 +- .../machine_types_client_example_test.go | 20 + .../network_edge_security_services_client.go | 5 +- ...e_security_services_client_example_test.go | 30 + .../apiv1/network_endpoint_groups_client.go | 5 +- ...ork_endpoint_groups_client_example_test.go | 50 + .../apiv1/network_firewall_policies_client.go | 5 +- ...k_firewall_policies_client_example_test.go | 85 ++ compute/apiv1/networks_client.go | 5 +- compute/apiv1/networks_client_example_test.go | 60 + compute/apiv1/node_groups_client.go | 5 +- .../apiv1/node_groups_client_example_test.go | 70 + compute/apiv1/node_templates_client.go | 5 +- .../node_templates_client_example_test.go | 45 + compute/apiv1/node_types_client.go | 5 +- .../apiv1/node_types_client_example_test.go | 20 + compute/apiv1/packet_mirrorings_client.go | 5 +- .../packet_mirrorings_client_example_test.go | 40 + compute/apiv1/projects_client.go | 5 +- compute/apiv1/projects_client_example_test.go | 70 + .../public_advertised_prefixes_client.go | 5 +- ...advertised_prefixes_client_example_test.go | 30 + .../apiv1/public_delegated_prefixes_client.go | 5 +- ..._delegated_prefixes_client_example_test.go | 35 + compute/apiv1/region_autoscalers_client.go | 5 +- .../region_autoscalers_client_example_test.go | 35 + .../apiv1/region_backend_services_client.go | 5 +- ...on_backend_services_client_example_test.go | 40 + compute/apiv1/region_commitments_client.go | 5 +- .../region_commitments_client_example_test.go | 30 + compute/apiv1/region_disk_types_client.go | 5 +- .../region_disk_types_client_example_test.go | 15 + compute/apiv1/region_disks_client.go | 5 +- .../apiv1/region_disks_client_example_test.go | 65 + .../region_health_check_services_client.go | 5 +- ...alth_check_services_client_example_test.go | 30 + compute/apiv1/region_health_checks_client.go | 5 +- ...egion_health_checks_client_example_test.go | 35 + .../region_instance_group_managers_client.go | 5 +- ...ance_group_managers_client_example_test.go | 100 ++ .../apiv1/region_instance_groups_client.go | 5 +- ...ion_instance_groups_client_example_test.go | 25 + compute/apiv1/region_instances_client.go | 5 +- .../region_instances_client_example_test.go | 10 + .../region_network_endpoint_groups_client.go | 5 +- ...ork_endpoint_groups_client_example_test.go | 25 + ...region_network_firewall_policies_client.go | 5 +- ...k_firewall_policies_client_example_test.go | 90 ++ .../region_notification_endpoints_client.go | 5 +- ...ification_endpoints_client_example_test.go | 25 + compute/apiv1/region_operations_client.go | 5 +- .../region_operations_client_example_test.go | 25 + .../apiv1/region_security_policies_client.go | 5 +- ...n_security_policies_client_example_test.go | 30 + .../apiv1/region_ssl_certificates_client.go | 5 +- ...on_ssl_certificates_client_example_test.go | 25 + .../region_target_http_proxies_client.go | 5 +- ...target_http_proxies_client_example_test.go | 30 + .../region_target_https_proxies_client.go | 5 +- ...arget_https_proxies_client_example_test.go | 40 + compute/apiv1/region_url_maps_client.go | 5 +- .../region_url_maps_client_example_test.go | 40 + compute/apiv1/regions_client.go | 5 +- compute/apiv1/regions_client_example_test.go | 15 + compute/apiv1/reservations_client.go | 5 +- .../apiv1/reservations_client_example_test.go | 55 + compute/apiv1/resource_policies_client.go | 5 +- .../resource_policies_client_example_test.go | 45 + compute/apiv1/routers_client.go | 5 +- compute/apiv1/routers_client_example_test.go | 55 + compute/apiv1/routes_client.go | 5 +- compute/apiv1/routes_client_example_test.go | 25 + compute/apiv1/security_policies_client.go | 5 +- .../security_policies_client_example_test.go | 60 + compute/apiv1/service_attachments_client.go | 5 +- ...service_attachments_client_example_test.go | 50 + compute/apiv1/snapshots_client.go | 5 +- .../apiv1/snapshots_client_example_test.go | 45 + compute/apiv1/ssl_certificates_client.go | 5 +- .../ssl_certificates_client_example_test.go | 30 + compute/apiv1/ssl_policies_client.go | 5 +- .../apiv1/ssl_policies_client_example_test.go | 35 + compute/apiv1/subnetworks_client.go | 5 +- .../apiv1/subnetworks_client_example_test.go | 65 + compute/apiv1/target_grpc_proxies_client.go | 5 +- ...target_grpc_proxies_client_example_test.go | 30 + compute/apiv1/target_http_proxies_client.go | 5 +- ...target_http_proxies_client_example_test.go | 40 + compute/apiv1/target_https_proxies_client.go | 5 +- ...arget_https_proxies_client_example_test.go | 60 + compute/apiv1/target_instances_client.go | 5 +- .../target_instances_client_example_test.go | 30 + compute/apiv1/target_pools_client.go | 5 +- .../apiv1/target_pools_client_example_test.go | 60 + compute/apiv1/target_ssl_proxies_client.go | 5 +- .../target_ssl_proxies_client_example_test.go | 50 + compute/apiv1/target_tcp_proxies_client.go | 5 +- .../target_tcp_proxies_client_example_test.go | 35 + compute/apiv1/target_vpn_gateways_client.go | 5 +- ...target_vpn_gateways_client_example_test.go | 30 + compute/apiv1/url_maps_client.go | 5 +- compute/apiv1/url_maps_client_example_test.go | 50 + compute/apiv1/vpn_gateways_client.go | 5 +- .../apiv1/vpn_gateways_client_example_test.go | 45 + compute/apiv1/vpn_tunnels_client.go | 5 +- .../apiv1/vpn_tunnels_client_example_test.go | 30 + compute/apiv1/zone_operations_client.go | 5 +- .../zone_operations_client_example_test.go | 25 + compute/apiv1/zones_client.go | 5 +- compute/apiv1/zones_client_example_test.go | 15 + compute/go.mod | 4 +- compute/go.sum | 9 +- .../apiv1/contact_center_insights_client.go | 6 +- ...act_center_insights_client_example_test.go | 190 +++ contactcenterinsights/apiv1/doc.go | 10 + contactcenterinsights/go.mod | 4 +- contactcenterinsights/go.sum | 9 +- container/apiv1/cluster_manager_client.go | 6 +- .../cluster_manager_client_example_test.go | 170 +++ container/apiv1/doc.go | 10 + container/go.mod | 6 +- container/go.sum | 9 +- .../container_analysis_v1_beta1_client.go | 8 +- ...r_analysis_v1_beta1_client_example_test.go | 40 + containeranalysis/apiv1beta1/doc.go | 10 + .../apiv1beta1/grafeas_v1_beta1_client.go | 24 +- .../grafeas_v1_beta1_client_example_test.go | 85 ++ containeranalysis/go.mod | 6 +- containeranalysis/go.sum | 9 +- datacatalog/apiv1/data_catalog_client.go | 6 +- .../apiv1/data_catalog_client_example_test.go | 165 +++ datacatalog/apiv1/doc.go | 10 + .../apiv1/policy_tag_manager_client.go | 6 +- .../policy_tag_manager_client_example_test.go | 70 + ...policy_tag_manager_serialization_client.go | 6 +- ...nager_serialization_client_example_test.go | 20 + datacatalog/apiv1beta1/data_catalog_client.go | 6 +- .../data_catalog_client_example_test.go | 140 ++ datacatalog/apiv1beta1/doc.go | 10 + .../apiv1beta1/policy_tag_manager_client.go | 6 +- .../policy_tag_manager_client_example_test.go | 70 + ...policy_tag_manager_serialization_client.go | 6 +- ...nager_serialization_client_example_test.go | 15 + datacatalog/go.mod | 10 +- datacatalog/go.sum | 21 +- dataflow/apiv1beta3/doc.go | 10 + dataflow/apiv1beta3/flex_templates_client.go | 8 +- .../flex_templates_client_example_test.go | 15 + dataflow/apiv1beta3/jobs_v1_beta3_client.go | 8 +- .../jobs_v1_beta3_client_example_test.go | 45 + .../apiv1beta3/messages_v1_beta3_client.go | 30 +- .../messages_v1_beta3_client_example_test.go | 15 + .../apiv1beta3/metrics_v1_beta3_client.go | 41 +- .../metrics_v1_beta3_client_example_test.go | 25 + .../apiv1beta3/snapshots_v1_beta3_client.go | 8 +- .../snapshots_v1_beta3_client_example_test.go | 25 + dataflow/apiv1beta3/templates_client.go | 8 +- .../templates_client_example_test.go | 25 + dataflow/go.mod | 4 +- dataflow/go.sum | 9 +- dataform/apiv1alpha2/dataform_client.go | 16 +- .../dataform_client_example_test.go | 215 +++ dataform/apiv1alpha2/doc.go | 10 + dataform/go.mod | 4 +- dataform/go.sum | 9 +- datafusion/apiv1/data_fusion_client.go | 6 +- .../apiv1/data_fusion_client_example_test.go | 40 + datafusion/apiv1/doc.go | 10 + datafusion/go.mod | 10 +- datafusion/go.sum | 20 +- .../apiv1beta1/data_labeling_client.go | 6 +- .../data_labeling_client_example_test.go | 175 +++ datalabeling/apiv1beta1/doc.go | 10 + datalabeling/go.mod | 10 +- datalabeling/go.sum | 20 +- dataplex/apiv1/content_client.go | 6 +- dataplex/apiv1/content_client_example_test.go | 75 + dataplex/apiv1/dataplex_client.go | 6 +- .../apiv1/dataplex_client_example_test.go | 195 +++ dataplex/apiv1/doc.go | 10 + dataplex/apiv1/metadata_client.go | 6 +- .../apiv1/metadata_client_example_test.go | 80 + dataplex/go.mod | 4 +- dataplex/go.sum | 9 +- dataproc/apiv1/autoscaling_policy_client.go | 6 +- .../autoscaling_policy_client_example_test.go | 30 + dataproc/apiv1/batch_controller_client.go | 6 +- .../batch_controller_client_example_test.go | 25 + dataproc/apiv1/cluster_controller_client.go | 6 +- .../cluster_controller_client_example_test.go | 45 + dataproc/apiv1/doc.go | 10 + dataproc/apiv1/job_controller_client.go | 6 +- .../job_controller_client_example_test.go | 40 + dataproc/apiv1/workflow_template_client.go | 6 +- .../workflow_template_client_example_test.go | 40 + dataproc/go.mod | 6 +- dataproc/go.sum | 9 +- dataqna/apiv1alpha/auto_suggestion_client.go | 8 +- .../auto_suggestion_client_example_test.go | 15 + dataqna/apiv1alpha/doc.go | 10 + dataqna/apiv1alpha/question_client.go | 24 +- .../question_client_example_test.go | 35 + dataqna/go.mod | 4 +- dataqna/go.sum | 9 +- .../admin/apiv1/datastore_admin_client.go | 6 +- .../datastore_admin_client_example_test.go | 55 + datastore/admin/apiv1/doc.go | 10 + datastore/go.mod | 4 +- datastore/go.sum | 9 +- datastream/apiv1/datastream_client.go | 6 +- .../apiv1/datastream_client_example_test.go | 160 ++ datastream/apiv1/doc.go | 10 + datastream/apiv1alpha1/datastream_client.go | 24 +- .../datastream_client_example_test.go | 115 ++ datastream/apiv1alpha1/doc.go | 10 + datastream/go.mod | 4 +- datastream/go.sum | 7 +- debugger/apiv2/controller2_client.go | 6 +- .../apiv2/controller2_client_example_test.go | 20 + debugger/apiv2/debugger2_client.go | 6 +- .../apiv2/debugger2_client_example_test.go | 30 + debugger/apiv2/doc.go | 10 + deploy/apiv1/cloud_deploy_client.go | 6 +- .../apiv1/cloud_deploy_client_example_test.go | 95 ++ deploy/apiv1/doc.go | 10 + deploy/go.mod | 4 +- deploy/go.sum | 9 +- dialogflow/apiv2/agents_client.go | 6 +- .../apiv2/agents_client_example_test.go | 75 + dialogflow/apiv2/answer_records_client.go | 6 +- .../answer_records_client_example_test.go | 40 + dialogflow/apiv2/contexts_client.go | 6 +- .../apiv2/contexts_client_example_test.go | 60 + .../apiv2/conversation_datasets_client.go | 6 +- ...nversation_datasets_client_example_test.go | 55 + .../apiv2/conversation_models_client.go | 6 +- ...conversation_models_client_example_test.go | 75 + .../apiv2/conversation_profiles_client.go | 6 +- ...nversation_profiles_client_example_test.go | 65 + dialogflow/apiv2/conversations_client.go | 6 +- .../conversations_client_example_test.go | 55 + dialogflow/apiv2/doc.go | 10 + dialogflow/apiv2/documents_client.go | 6 +- .../apiv2/documents_client_example_test.go | 70 + dialogflow/apiv2/entity_types_client.go | 6 +- .../apiv2/entity_types_client_example_test.go | 80 + dialogflow/apiv2/environments_client.go | 6 +- .../apiv2/environments_client_example_test.go | 60 + dialogflow/apiv2/fulfillments_client.go | 6 +- .../apiv2/fulfillments_client_example_test.go | 40 + dialogflow/apiv2/intents_client.go | 6 +- .../apiv2/intents_client_example_test.go | 65 + dialogflow/apiv2/knowledge_bases_client.go | 6 +- .../knowledge_bases_client_example_test.go | 55 + dialogflow/apiv2/participants_client.go | 6 +- .../apiv2/participants_client_example_test.go | 70 + .../apiv2/session_entity_types_client.go | 6 +- ...ession_entity_types_client_example_test.go | 55 + dialogflow/apiv2/sessions_client.go | 6 +- .../apiv2/sessions_client_example_test.go | 40 + dialogflow/apiv2/versions_client.go | 6 +- .../apiv2/versions_client_example_test.go | 55 + dialogflow/apiv2beta1/agents_client.go | 6 +- .../apiv2beta1/agents_client_example_test.go | 75 + .../apiv2beta1/answer_records_client.go | 6 +- .../answer_records_client_example_test.go | 45 + dialogflow/apiv2beta1/contexts_client.go | 6 +- .../contexts_client_example_test.go | 60 + .../conversation_profiles_client.go | 6 +- ...nversation_profiles_client_example_test.go | 65 + dialogflow/apiv2beta1/conversations_client.go | 6 +- .../conversations_client_example_test.go | 60 + dialogflow/apiv2beta1/doc.go | 10 + dialogflow/apiv2beta1/documents_client.go | 6 +- .../documents_client_example_test.go | 65 + dialogflow/apiv2beta1/entity_types_client.go | 6 +- .../entity_types_client_example_test.go | 80 + dialogflow/apiv2beta1/environments_client.go | 6 +- .../environments_client_example_test.go | 60 + dialogflow/apiv2beta1/fulfillments_client.go | 6 +- .../fulfillments_client_example_test.go | 40 + dialogflow/apiv2beta1/intents_client.go | 6 +- .../apiv2beta1/intents_client_example_test.go | 65 + .../apiv2beta1/knowledge_bases_client.go | 6 +- .../knowledge_bases_client_example_test.go | 55 + dialogflow/apiv2beta1/participants_client.go | 6 +- .../participants_client_example_test.go | 85 ++ .../apiv2beta1/session_entity_types_client.go | 6 +- ...ession_entity_types_client_example_test.go | 55 + dialogflow/apiv2beta1/sessions_client.go | 6 +- .../sessions_client_example_test.go | 40 + dialogflow/apiv2beta1/versions_client.go | 6 +- .../versions_client_example_test.go | 55 + dialogflow/cx/apiv3/agents_client.go | 6 +- .../cx/apiv3/agents_client_example_test.go | 75 + dialogflow/cx/apiv3/changelogs_client.go | 6 +- .../apiv3/changelogs_client_example_test.go | 40 + dialogflow/cx/apiv3/deployments_client.go | 6 +- .../apiv3/deployments_client_example_test.go | 40 + dialogflow/cx/apiv3/doc.go | 10 + dialogflow/cx/apiv3/entity_types_client.go | 6 +- .../apiv3/entity_types_client_example_test.go | 55 + dialogflow/cx/apiv3/environments_client.go | 6 +- .../apiv3/environments_client_example_test.go | 75 + dialogflow/cx/apiv3/experiments_client.go | 6 +- .../apiv3/experiments_client_example_test.go | 65 + dialogflow/cx/apiv3/flows_client.go | 6 +- .../cx/apiv3/flows_client_example_test.go | 80 + dialogflow/cx/apiv3/intents_client.go | 6 +- .../cx/apiv3/intents_client_example_test.go | 55 + dialogflow/cx/apiv3/pages_client.go | 6 +- .../cx/apiv3/pages_client_example_test.go | 55 + .../cx/apiv3/security_settings_client.go | 6 +- .../security_settings_client_example_test.go | 55 + .../cx/apiv3/session_entity_types_client.go | 6 +- ...ession_entity_types_client_example_test.go | 55 + dialogflow/cx/apiv3/sessions_client.go | 6 +- .../cx/apiv3/sessions_client_example_test.go | 50 + dialogflow/cx/apiv3/test_cases_client.go | 6 +- .../apiv3/test_cases_client_example_test.go | 90 ++ .../apiv3/transition_route_groups_client.go | 6 +- ...sition_route_groups_client_example_test.go | 55 + dialogflow/cx/apiv3/versions_client.go | 6 +- .../cx/apiv3/versions_client_example_test.go | 65 + dialogflow/cx/apiv3/webhooks_client.go | 6 +- .../cx/apiv3/webhooks_client_example_test.go | 55 + dialogflow/cx/apiv3beta1/agents_client.go | 16 +- .../apiv3beta1/agents_client_example_test.go | 80 + dialogflow/cx/apiv3beta1/changelogs_client.go | 8 +- .../changelogs_client_example_test.go | 45 + .../cx/apiv3beta1/deployments_client.go | 8 +- .../deployments_client_example_test.go | 45 + dialogflow/cx/apiv3beta1/doc.go | 10 + .../cx/apiv3beta1/entity_types_client.go | 16 +- .../entity_types_client_example_test.go | 60 + .../cx/apiv3beta1/environments_client.go | 16 +- .../environments_client_example_test.go | 80 + .../cx/apiv3beta1/experiments_client.go | 16 +- .../experiments_client_example_test.go | 70 + dialogflow/cx/apiv3beta1/flows_client.go | 16 +- .../apiv3beta1/flows_client_example_test.go | 85 ++ dialogflow/cx/apiv3beta1/intents_client.go | 16 +- .../apiv3beta1/intents_client_example_test.go | 60 + dialogflow/cx/apiv3beta1/pages_client.go | 16 +- .../apiv3beta1/pages_client_example_test.go | 60 + .../cx/apiv3beta1/security_settings_client.go | 16 +- .../security_settings_client_example_test.go | 60 + .../apiv3beta1/session_entity_types_client.go | 16 +- ...ession_entity_types_client_example_test.go | 60 + dialogflow/cx/apiv3beta1/sessions_client.go | 8 +- .../sessions_client_example_test.go | 55 + dialogflow/cx/apiv3beta1/test_cases_client.go | 16 +- .../test_cases_client_example_test.go | 95 ++ .../transition_route_groups_client.go | 16 +- ...sition_route_groups_client_example_test.go | 60 + dialogflow/cx/apiv3beta1/versions_client.go | 16 +- .../versions_client_example_test.go | 70 + dialogflow/cx/apiv3beta1/webhooks_client.go | 16 +- .../webhooks_client_example_test.go | 60 + dialogflow/go.mod | 4 +- dialogflow/go.sum | 7 +- dlp/apiv2/dlp_client.go | 14 +- dlp/apiv2/dlp_client_example_test.go | 175 +++ dlp/apiv2/doc.go | 10 + dlp/go.mod | 12 +- dlp/go.sum | 29 +- documentai/apiv1/doc.go | 10 + documentai/apiv1/document_processor_client.go | 6 +- .../document_processor_client_example_test.go | 115 ++ documentai/apiv1beta3/doc.go | 10 + .../apiv1beta3/document_processor_client.go | 6 +- .../document_processor_client_example_test.go | 115 ++ documentai/go.mod | 4 +- documentai/go.sum | 9 +- domains/apiv1beta1/doc.go | 10 + domains/apiv1beta1/domains_client.go | 16 +- .../apiv1beta1/domains_client_example_test.go | 85 ++ domains/go.mod | 10 +- domains/go.sum | 20 +- errorreporting/apiv1beta1/doc.go | 10 + .../apiv1beta1/error_group_client.go | 8 +- .../error_group_client_example_test.go | 20 + .../apiv1beta1/error_stats_client.go | 30 +- .../error_stats_client_example_test.go | 25 + .../apiv1beta1/report_errors_client.go | 8 +- .../report_errors_client_example_test.go | 15 + errorreporting/go.mod | 4 +- errorreporting/go.sum | 9 +- essentialcontacts/apiv1/doc.go | 10 + .../apiv1/essential_contacts_client.go | 6 +- .../essential_contacts_client_example_test.go | 40 + essentialcontacts/go.mod | 10 +- essentialcontacts/go.sum | 21 +- eventarc/apiv1/doc.go | 10 + eventarc/apiv1/eventarc_client.go | 6 +- .../apiv1/eventarc_client_example_test.go | 85 ++ eventarc/go.mod | 4 +- eventarc/go.sum | 9 +- eventarc/publishing/apiv1/doc.go | 10 + eventarc/publishing/apiv1/publisher_client.go | 6 +- .../apiv1/publisher_client_example_test.go | 15 + .../apiv1/cloud_filestore_manager_client.go | 6 +- ...d_filestore_manager_client_example_test.go | 60 + filestore/apiv1/doc.go | 10 + filestore/go.mod | 4 +- filestore/go.sum | 9 +- firestore/apiv1/admin/doc.go | 10 + .../apiv1/admin/firestore_admin_client.go | 6 +- .../firestore_admin_client_example_test.go | 85 ++ firestore/apiv1/doc.go | 10 + firestore/apiv1/firestore_client.go | 6 +- .../apiv1/firestore_client_example_test.go | 90 ++ firestore/go.mod | 6 +- firestore/go.sum | 16 +- functions/apiv1/cloud_functions_client.go | 6 +- .../cloud_functions_client_example_test.go | 60 + functions/apiv1/doc.go | 10 + functions/apiv2/doc.go | 10 + functions/apiv2/function_client.go | 6 +- .../apiv2/function_client_example_test.go | 75 + functions/apiv2beta/doc.go | 10 + functions/apiv2beta/function_client.go | 16 +- .../apiv2beta/function_client_example_test.go | 80 + functions/go.mod | 4 +- functions/go.sum | 9 +- gaming/apiv1/doc.go | 10 + gaming/apiv1/game_server_clusters_client.go | 6 +- ...ame_server_clusters_client_example_test.go | 45 + gaming/apiv1/game_server_configs_client.go | 6 +- ...game_server_configs_client_example_test.go | 25 + .../apiv1/game_server_deployments_client.go | 6 +- ..._server_deployments_client_example_test.go | 50 + gaming/apiv1/realms_client.go | 6 +- gaming/apiv1/realms_client_example_test.go | 35 + gaming/apiv1beta/doc.go | 10 + .../apiv1beta/game_server_clusters_client.go | 6 +- ...ame_server_clusters_client_example_test.go | 45 + .../apiv1beta/game_server_configs_client.go | 6 +- ...game_server_configs_client_example_test.go | 25 + .../game_server_deployments_client.go | 6 +- ..._server_deployments_client_example_test.go | 50 + gaming/apiv1beta/realms_client.go | 6 +- .../apiv1beta/realms_client_example_test.go | 35 + gaming/go.mod | 4 +- gaming/go.sum | 9 +- gkebackup/apiv1/backup_forgke_client.go | 6 +- .../backup_forgke_client_example_test.go | 125 ++ gkebackup/apiv1/doc.go | 10 + gkebackup/go.mod | 4 +- gkebackup/go.sum | 9 +- gkeconnect/gateway/apiv1beta1/doc.go | 10 + .../gateway/apiv1beta1/gateway_client.go | 6 +- .../apiv1beta1/gateway_client_example_test.go | 30 + gkeconnect/go.mod | 10 +- gkeconnect/go.sum | 21 +- gkehub/apiv1beta1/doc.go | 10 + .../apiv1beta1/gke_hub_membership_client.go | 16 +- .../gke_hub_membership_client_example_test.go | 95 ++ gkehub/go.mod | 4 +- gkehub/go.sum | 9 +- gkemulticloud/apiv1/aws_clusters_client.go | 6 +- .../apiv1/aws_clusters_client_example_test.go | 65 + gkemulticloud/apiv1/azure_clusters_client.go | 6 +- .../azure_clusters_client_example_test.go | 85 ++ gkemulticloud/apiv1/doc.go | 10 + gkemulticloud/go.mod | 4 +- gkemulticloud/go.sum | 9 +- go.mod | 4 +- go.sum | 7 +- grafeas/go.mod | 10 +- grafeas/go.sum | 20 +- gsuiteaddons/apiv1/doc.go | 10 + gsuiteaddons/apiv1/g_suite_add_ons_client.go | 6 +- .../g_suite_add_ons_client_example_test.go | 50 + gsuiteaddons/go.mod | 10 +- gsuiteaddons/go.sum | 21 +- iam/apiv2/doc.go | 10 + iam/apiv2/policies_client.go | 6 +- iam/apiv2/policies_client_example_test.go | 40 + iam/credentials/apiv1/doc.go | 10 + .../apiv1/iam_credentials_client.go | 6 +- .../iam_credentials_client_example_test.go | 25 + iam/go.mod | 8 +- iam/go.sum | 12 +- iap/apiv1/doc.go | 10 + .../identity_aware_proxy_admin_client.go | 6 +- ...y_aware_proxy_admin_client_example_test.go | 55 + .../identity_aware_proxyo_auth_client.go | 6 +- ...y_aware_proxyo_auth_client_example_test.go | 45 + iap/go.mod | 4 +- iap/go.sum | 9 +- ids/apiv1/doc.go | 10 + ids/apiv1/ids_client.go | 6 +- ids/apiv1/ids_client_example_test.go | 25 + ids/go.mod | 10 +- ids/go.sum | 20 +- internal/aliasgen/go.mod | 6 +- internal/aliasgen/go.sum | 17 +- internal/examples/fake/go.mod | 10 +- internal/examples/fake/go.sum | 21 +- internal/examples/mock/go.mod | 10 +- internal/examples/mock/go.sum | 42 +- internal/gapicgen/go.mod | 2 +- internal/gapicgen/go.sum | 4 +- .../Client/ApproveApprovalRequest/main.go | 5 + .../DeleteAccessApprovalSettings/main.go | 5 + .../Client/DismissApprovalRequest/main.go | 5 + .../GetAccessApprovalServiceAccount/main.go | 5 + .../Client/GetAccessApprovalSettings/main.go | 5 + .../apiv1/Client/GetApprovalRequest/main.go | 5 + .../Client/InvalidateApprovalRequest/main.go | 5 + .../apiv1/Client/ListApprovalRequests/main.go | 5 + .../UpdateAccessApprovalSettings/main.go | 5 + ...tadata.google.cloud.accessapproval.v1.json | 20 +- .../Client/CommitServicePerimeters/main.go | 5 + .../apiv1/Client/CreateAccessLevel/main.go | 5 + .../apiv1/Client/CreateAccessPolicy/main.go | 5 + .../Client/CreateGcpUserAccessBinding/main.go | 5 + .../Client/CreateServicePerimeter/main.go | 5 + .../apiv1/Client/DeleteAccessLevel/main.go | 5 + .../apiv1/Client/DeleteAccessPolicy/main.go | 5 + .../Client/DeleteGcpUserAccessBinding/main.go | 5 + .../Client/DeleteServicePerimeter/main.go | 5 + .../apiv1/Client/GetAccessLevel/main.go | 5 + .../apiv1/Client/GetAccessPolicy/main.go | 5 + .../Client/GetGcpUserAccessBinding/main.go | 5 + .../apiv1/Client/GetServicePerimeter/main.go | 5 + .../apiv1/Client/ListAccessLevels/main.go | 5 + .../apiv1/Client/ListAccessPolicies/main.go | 5 + .../Client/ListGcpUserAccessBindings/main.go | 5 + .../Client/ListServicePerimeters/main.go | 5 + .../apiv1/Client/ReplaceAccessLevels/main.go | 5 + .../Client/ReplaceServicePerimeters/main.go | 5 + .../apiv1/Client/UpdateAccessLevel/main.go | 5 + .../apiv1/Client/UpdateAccessPolicy/main.go | 5 + .../Client/UpdateGcpUserAccessBinding/main.go | 5 + .../Client/UpdateServicePerimeter/main.go | 5 + ...ogle.identity.accesscontextmanager.v1.json | 46 +- .../DatasetClient/CancelOperation/main.go | 5 + .../apiv1/DatasetClient/CreateDataset/main.go | 5 + .../apiv1/DatasetClient/DeleteDataset/main.go | 5 + .../DatasetClient/DeleteOperation/main.go | 5 + .../apiv1/DatasetClient/ExportData/main.go | 5 + .../DatasetClient/GetAnnotationSpec/main.go | 5 + .../apiv1/DatasetClient/GetDataset/main.go | 5 + .../apiv1/DatasetClient/GetIamPolicy/main.go | 5 + .../apiv1/DatasetClient/GetLocation/main.go | 5 + .../apiv1/DatasetClient/GetOperation/main.go | 5 + .../apiv1/DatasetClient/ImportData/main.go | 5 + .../DatasetClient/ListAnnotations/main.go | 5 + .../apiv1/DatasetClient/ListDataItems/main.go | 5 + .../apiv1/DatasetClient/ListDatasets/main.go | 5 + .../apiv1/DatasetClient/ListLocations/main.go | 5 + .../DatasetClient/ListOperations/main.go | 5 + .../DatasetClient/ListSavedQueries/main.go | 5 + .../apiv1/DatasetClient/SetIamPolicy/main.go | 5 + .../DatasetClient/TestIamPermissions/main.go | 5 + .../apiv1/DatasetClient/UpdateDataset/main.go | 5 + .../apiv1/DatasetClient/WaitOperation/main.go | 5 + .../EndpointClient/CancelOperation/main.go | 5 + .../EndpointClient/CreateEndpoint/main.go | 5 + .../EndpointClient/DeleteEndpoint/main.go | 5 + .../EndpointClient/DeleteOperation/main.go | 5 + .../apiv1/EndpointClient/DeployModel/main.go | 5 + .../apiv1/EndpointClient/GetEndpoint/main.go | 5 + .../apiv1/EndpointClient/GetIamPolicy/main.go | 5 + .../apiv1/EndpointClient/GetLocation/main.go | 5 + .../apiv1/EndpointClient/GetOperation/main.go | 5 + .../EndpointClient/ListEndpoints/main.go | 5 + .../EndpointClient/ListLocations/main.go | 5 + .../EndpointClient/ListOperations/main.go | 5 + .../apiv1/EndpointClient/SetIamPolicy/main.go | 5 + .../EndpointClient/TestIamPermissions/main.go | 5 + .../EndpointClient/UndeployModel/main.go | 5 + .../EndpointClient/UpdateEndpoint/main.go | 5 + .../EndpointClient/WaitOperation/main.go | 5 + .../BatchCreateFeatures/main.go | 5 + .../BatchReadFeatureValues/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateEntityType/main.go | 5 + .../FeaturestoreClient/CreateFeature/main.go | 5 + .../CreateFeaturestore/main.go | 5 + .../DeleteEntityType/main.go | 5 + .../FeaturestoreClient/DeleteFeature/main.go | 5 + .../DeleteFeaturestore/main.go | 5 + .../DeleteOperation/main.go | 5 + .../ExportFeatureValues/main.go | 5 + .../FeaturestoreClient/GetEntityType/main.go | 5 + .../FeaturestoreClient/GetFeature/main.go | 5 + .../GetFeaturestore/main.go | 5 + .../FeaturestoreClient/GetIamPolicy/main.go | 5 + .../FeaturestoreClient/GetLocation/main.go | 5 + .../FeaturestoreClient/GetOperation/main.go | 5 + .../ImportFeatureValues/main.go | 5 + .../ListEntityTypes/main.go | 5 + .../FeaturestoreClient/ListFeatures/main.go | 5 + .../ListFeaturestores/main.go | 5 + .../FeaturestoreClient/ListLocations/main.go | 5 + .../FeaturestoreClient/ListOperations/main.go | 5 + .../FeaturestoreClient/SearchFeatures/main.go | 5 + .../FeaturestoreClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateEntityType/main.go | 5 + .../FeaturestoreClient/UpdateFeature/main.go | 5 + .../UpdateFeaturestore/main.go | 5 + .../FeaturestoreClient/WaitOperation/main.go | 5 + .../CancelOperation/main.go | 5 + .../DeleteOperation/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ReadFeatureValues/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../WaitOperation/main.go | 5 + .../apiv1/IndexClient/CancelOperation/main.go | 5 + .../apiv1/IndexClient/CreateIndex/main.go | 5 + .../apiv1/IndexClient/DeleteIndex/main.go | 5 + .../apiv1/IndexClient/DeleteOperation/main.go | 5 + .../apiv1/IndexClient/GetIamPolicy/main.go | 5 + .../apiv1/IndexClient/GetIndex/main.go | 5 + .../apiv1/IndexClient/GetLocation/main.go | 5 + .../apiv1/IndexClient/GetOperation/main.go | 5 + .../apiv1/IndexClient/ListIndexes/main.go | 5 + .../apiv1/IndexClient/ListLocations/main.go | 5 + .../apiv1/IndexClient/ListOperations/main.go | 5 + .../IndexClient/RemoveDatapoints/main.go | 5 + .../apiv1/IndexClient/SetIamPolicy/main.go | 5 + .../IndexClient/TestIamPermissions/main.go | 5 + .../apiv1/IndexClient/UpdateIndex/main.go | 5 + .../IndexClient/UpsertDatapoints/main.go | 5 + .../apiv1/IndexClient/WaitOperation/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateIndexEndpoint/main.go | 5 + .../DeleteIndexEndpoint/main.go | 5 + .../DeleteOperation/main.go | 5 + .../IndexEndpointClient/DeployIndex/main.go | 5 + .../IndexEndpointClient/GetIamPolicy/main.go | 5 + .../GetIndexEndpoint/main.go | 5 + .../IndexEndpointClient/GetLocation/main.go | 5 + .../IndexEndpointClient/GetOperation/main.go | 5 + .../ListIndexEndpoints/main.go | 5 + .../IndexEndpointClient/ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../MutateDeployedIndex/main.go | 5 + .../IndexEndpointClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../IndexEndpointClient/UndeployIndex/main.go | 5 + .../UpdateIndexEndpoint/main.go | 5 + .../IndexEndpointClient/WaitOperation/main.go | 5 + .../CancelBatchPredictionJob/main.go | 5 + .../apiv1/JobClient/CancelCustomJob/main.go | 5 + .../JobClient/CancelDataLabelingJob/main.go | 5 + .../CancelHyperparameterTuningJob/main.go | 5 + .../apiv1/JobClient/CancelOperation/main.go | 5 + .../CreateBatchPredictionJob/main.go | 5 + .../apiv1/JobClient/CreateCustomJob/main.go | 5 + .../JobClient/CreateDataLabelingJob/main.go | 5 + .../CreateHyperparameterTuningJob/main.go | 5 + .../main.go | 5 + .../DeleteBatchPredictionJob/main.go | 5 + .../apiv1/JobClient/DeleteCustomJob/main.go | 5 + .../JobClient/DeleteDataLabelingJob/main.go | 5 + .../DeleteHyperparameterTuningJob/main.go | 5 + .../main.go | 5 + .../apiv1/JobClient/DeleteOperation/main.go | 5 + .../JobClient/GetBatchPredictionJob/main.go | 5 + .../apiv1/JobClient/GetCustomJob/main.go | 5 + .../JobClient/GetDataLabelingJob/main.go | 5 + .../GetHyperparameterTuningJob/main.go | 5 + .../apiv1/JobClient/GetIamPolicy/main.go | 5 + .../apiv1/JobClient/GetLocation/main.go | 5 + .../GetModelDeploymentMonitoringJob/main.go | 5 + .../apiv1/JobClient/GetOperation/main.go | 5 + .../JobClient/ListBatchPredictionJobs/main.go | 5 + .../apiv1/JobClient/ListCustomJobs/main.go | 5 + .../JobClient/ListDataLabelingJobs/main.go | 5 + .../ListHyperparameterTuningJobs/main.go | 5 + .../apiv1/JobClient/ListLocations/main.go | 5 + .../ListModelDeploymentMonitoringJobs/main.go | 5 + .../apiv1/JobClient/ListOperations/main.go | 5 + .../PauseModelDeploymentMonitoringJob/main.go | 5 + .../main.go | 5 + .../main.go | 5 + .../apiv1/JobClient/SetIamPolicy/main.go | 5 + .../JobClient/TestIamPermissions/main.go | 5 + .../main.go | 5 + .../apiv1/JobClient/WaitOperation/main.go | 5 + .../AddContextArtifactsAndExecutions/main.go | 5 + .../MetadataClient/AddContextChildren/main.go | 5 + .../MetadataClient/AddExecutionEvents/main.go | 5 + .../MetadataClient/CancelOperation/main.go | 5 + .../MetadataClient/CreateArtifact/main.go | 5 + .../MetadataClient/CreateContext/main.go | 5 + .../MetadataClient/CreateExecution/main.go | 5 + .../CreateMetadataSchema/main.go | 5 + .../CreateMetadataStore/main.go | 5 + .../MetadataClient/DeleteArtifact/main.go | 5 + .../MetadataClient/DeleteContext/main.go | 5 + .../MetadataClient/DeleteExecution/main.go | 5 + .../DeleteMetadataStore/main.go | 5 + .../MetadataClient/DeleteOperation/main.go | 5 + .../apiv1/MetadataClient/GetArtifact/main.go | 5 + .../apiv1/MetadataClient/GetContext/main.go | 5 + .../apiv1/MetadataClient/GetExecution/main.go | 5 + .../apiv1/MetadataClient/GetIamPolicy/main.go | 5 + .../apiv1/MetadataClient/GetLocation/main.go | 5 + .../MetadataClient/GetMetadataSchema/main.go | 5 + .../MetadataClient/GetMetadataStore/main.go | 5 + .../apiv1/MetadataClient/GetOperation/main.go | 5 + .../MetadataClient/ListArtifacts/main.go | 5 + .../apiv1/MetadataClient/ListContexts/main.go | 5 + .../MetadataClient/ListExecutions/main.go | 5 + .../MetadataClient/ListLocations/main.go | 5 + .../ListMetadataSchemas/main.go | 5 + .../MetadataClient/ListMetadataStores/main.go | 5 + .../MetadataClient/ListOperations/main.go | 5 + .../MetadataClient/PurgeArtifacts/main.go | 5 + .../MetadataClient/PurgeContexts/main.go | 5 + .../MetadataClient/PurgeExecutions/main.go | 5 + .../QueryArtifactLineageSubgraph/main.go | 5 + .../QueryContextLineageSubgraph/main.go | 5 + .../QueryExecutionInputsAndOutputs/main.go | 5 + .../apiv1/MetadataClient/SetIamPolicy/main.go | 5 + .../MetadataClient/TestIamPermissions/main.go | 5 + .../MetadataClient/UpdateArtifact/main.go | 5 + .../MetadataClient/UpdateContext/main.go | 5 + .../MetadataClient/UpdateExecution/main.go | 5 + .../MetadataClient/WaitOperation/main.go | 5 + .../BatchMigrateResources/main.go | 5 + .../MigrationClient/CancelOperation/main.go | 5 + .../MigrationClient/DeleteOperation/main.go | 5 + .../MigrationClient/GetIamPolicy/main.go | 5 + .../apiv1/MigrationClient/GetLocation/main.go | 5 + .../MigrationClient/GetOperation/main.go | 5 + .../MigrationClient/ListLocations/main.go | 5 + .../MigrationClient/ListOperations/main.go | 5 + .../SearchMigratableResources/main.go | 5 + .../MigrationClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../MigrationClient/WaitOperation/main.go | 5 + .../BatchImportModelEvaluationSlices/main.go | 5 + .../apiv1/ModelClient/CancelOperation/main.go | 5 + .../apiv1/ModelClient/DeleteModel/main.go | 5 + .../ModelClient/DeleteModelVersion/main.go | 5 + .../apiv1/ModelClient/DeleteOperation/main.go | 5 + .../apiv1/ModelClient/ExportModel/main.go | 5 + .../apiv1/ModelClient/GetIamPolicy/main.go | 5 + .../apiv1/ModelClient/GetLocation/main.go | 5 + .../apiv1/ModelClient/GetModel/main.go | 5 + .../ModelClient/GetModelEvaluation/main.go | 5 + .../GetModelEvaluationSlice/main.go | 5 + .../apiv1/ModelClient/GetOperation/main.go | 5 + .../ModelClient/ImportModelEvaluation/main.go | 5 + .../apiv1/ModelClient/ListLocations/main.go | 5 + .../ListModelEvaluationSlices/main.go | 5 + .../ModelClient/ListModelEvaluations/main.go | 5 + .../ModelClient/ListModelVersions/main.go | 5 + .../apiv1/ModelClient/ListModels/main.go | 5 + .../apiv1/ModelClient/ListOperations/main.go | 5 + .../ModelClient/MergeVersionAliases/main.go | 5 + .../apiv1/ModelClient/SetIamPolicy/main.go | 5 + .../ModelClient/TestIamPermissions/main.go | 5 + .../apiv1/ModelClient/UpdateModel/main.go | 5 + .../apiv1/ModelClient/UploadModel/main.go | 5 + .../apiv1/ModelClient/WaitOperation/main.go | 5 + .../PipelineClient/CancelOperation/main.go | 5 + .../PipelineClient/CancelPipelineJob/main.go | 5 + .../CancelTrainingPipeline/main.go | 5 + .../PipelineClient/CreatePipelineJob/main.go | 5 + .../CreateTrainingPipeline/main.go | 5 + .../PipelineClient/DeleteOperation/main.go | 5 + .../PipelineClient/DeletePipelineJob/main.go | 5 + .../DeleteTrainingPipeline/main.go | 5 + .../apiv1/PipelineClient/GetIamPolicy/main.go | 5 + .../apiv1/PipelineClient/GetLocation/main.go | 5 + .../apiv1/PipelineClient/GetOperation/main.go | 5 + .../PipelineClient/GetPipelineJob/main.go | 5 + .../GetTrainingPipeline/main.go | 5 + .../PipelineClient/ListLocations/main.go | 5 + .../PipelineClient/ListOperations/main.go | 5 + .../PipelineClient/ListPipelineJobs/main.go | 5 + .../ListTrainingPipelines/main.go | 5 + .../apiv1/PipelineClient/SetIamPolicy/main.go | 5 + .../PipelineClient/TestIamPermissions/main.go | 5 + .../PipelineClient/WaitOperation/main.go | 5 + .../PredictionClient/CancelOperation/main.go | 5 + .../PredictionClient/DeleteOperation/main.go | 5 + .../apiv1/PredictionClient/Explain/main.go | 5 + .../PredictionClient/GetIamPolicy/main.go | 5 + .../PredictionClient/GetLocation/main.go | 5 + .../PredictionClient/GetOperation/main.go | 5 + .../PredictionClient/ListLocations/main.go | 5 + .../PredictionClient/ListOperations/main.go | 5 + .../apiv1/PredictionClient/Predict/main.go | 5 + .../apiv1/PredictionClient/RawPredict/main.go | 5 + .../PredictionClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../PredictionClient/WaitOperation/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateSpecialistPool/main.go | 5 + .../DeleteOperation/main.go | 5 + .../DeleteSpecialistPool/main.go | 5 + .../SpecialistPoolClient/GetIamPolicy/main.go | 5 + .../SpecialistPoolClient/GetLocation/main.go | 5 + .../SpecialistPoolClient/GetOperation/main.go | 5 + .../GetSpecialistPool/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListSpecialistPools/main.go | 5 + .../SpecialistPoolClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateSpecialistPool/main.go | 5 + .../WaitOperation/main.go | 5 + .../BatchCreateTensorboardRuns/main.go | 5 + .../BatchCreateTensorboardTimeSeries/main.go | 5 + .../main.go | 5 + .../TensorboardClient/CancelOperation/main.go | 5 + .../CreateTensorboard/main.go | 5 + .../CreateTensorboardExperiment/main.go | 5 + .../CreateTensorboardRun/main.go | 5 + .../CreateTensorboardTimeSeries/main.go | 5 + .../TensorboardClient/DeleteOperation/main.go | 5 + .../DeleteTensorboard/main.go | 5 + .../DeleteTensorboardExperiment/main.go | 5 + .../DeleteTensorboardRun/main.go | 5 + .../DeleteTensorboardTimeSeries/main.go | 5 + .../ExportTensorboardTimeSeriesData/main.go | 5 + .../TensorboardClient/GetIamPolicy/main.go | 5 + .../TensorboardClient/GetLocation/main.go | 5 + .../TensorboardClient/GetOperation/main.go | 5 + .../TensorboardClient/GetTensorboard/main.go | 5 + .../GetTensorboardExperiment/main.go | 5 + .../GetTensorboardRun/main.go | 5 + .../GetTensorboardTimeSeries/main.go | 5 + .../TensorboardClient/ListLocations/main.go | 5 + .../TensorboardClient/ListOperations/main.go | 5 + .../ListTensorboardExperiments/main.go | 5 + .../ListTensorboardRuns/main.go | 5 + .../ListTensorboardTimeSeries/main.go | 5 + .../ListTensorboards/main.go | 5 + .../ReadTensorboardTimeSeriesData/main.go | 5 + .../TensorboardClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateTensorboard/main.go | 5 + .../UpdateTensorboardExperiment/main.go | 5 + .../UpdateTensorboardRun/main.go | 5 + .../UpdateTensorboardTimeSeries/main.go | 5 + .../TensorboardClient/WaitOperation/main.go | 5 + .../WriteTensorboardExperimentData/main.go | 5 + .../WriteTensorboardRunData/main.go | 5 + .../VizierClient/AddTrialMeasurement/main.go | 5 + .../VizierClient/CancelOperation/main.go | 5 + .../CheckTrialEarlyStoppingState/main.go | 5 + .../apiv1/VizierClient/CompleteTrial/main.go | 5 + .../apiv1/VizierClient/CreateStudy/main.go | 5 + .../apiv1/VizierClient/CreateTrial/main.go | 5 + .../VizierClient/DeleteOperation/main.go | 5 + .../apiv1/VizierClient/DeleteStudy/main.go | 5 + .../apiv1/VizierClient/DeleteTrial/main.go | 5 + .../apiv1/VizierClient/GetIamPolicy/main.go | 5 + .../apiv1/VizierClient/GetLocation/main.go | 5 + .../apiv1/VizierClient/GetOperation/main.go | 5 + .../apiv1/VizierClient/GetStudy/main.go | 5 + .../apiv1/VizierClient/GetTrial/main.go | 5 + .../apiv1/VizierClient/ListLocations/main.go | 5 + .../apiv1/VizierClient/ListOperations/main.go | 5 + .../VizierClient/ListOptimalTrials/main.go | 5 + .../apiv1/VizierClient/ListStudies/main.go | 5 + .../apiv1/VizierClient/ListTrials/main.go | 5 + .../apiv1/VizierClient/LookupStudy/main.go | 5 + .../apiv1/VizierClient/SetIamPolicy/main.go | 5 + .../apiv1/VizierClient/StopTrial/main.go | 5 + .../apiv1/VizierClient/SuggestTrials/main.go | 5 + .../VizierClient/TestIamPermissions/main.go | 5 + .../apiv1/VizierClient/WaitOperation/main.go | 5 + ...t_metadata.google.cloud.aiplatform.v1.json | 682 ++++----- .../DatasetClient/CancelOperation/main.go | 5 + .../DatasetClient/CreateDataset/main.go | 5 + .../DatasetClient/DeleteDataset/main.go | 5 + .../DatasetClient/DeleteOperation/main.go | 5 + .../DatasetClient/ExportData/main.go | 5 + .../DatasetClient/GetAnnotationSpec/main.go | 5 + .../DatasetClient/GetDataset/main.go | 5 + .../DatasetClient/GetIamPolicy/main.go | 5 + .../DatasetClient/GetLocation/main.go | 5 + .../DatasetClient/GetOperation/main.go | 5 + .../DatasetClient/ImportData/main.go | 5 + .../DatasetClient/ListAnnotations/main.go | 5 + .../DatasetClient/ListDataItems/main.go | 5 + .../DatasetClient/ListDatasets/main.go | 5 + .../DatasetClient/ListLocations/main.go | 5 + .../DatasetClient/ListOperations/main.go | 5 + .../DatasetClient/ListSavedQueries/main.go | 5 + .../DatasetClient/SetIamPolicy/main.go | 5 + .../DatasetClient/TestIamPermissions/main.go | 5 + .../DatasetClient/UpdateDataset/main.go | 5 + .../DatasetClient/WaitOperation/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateDeploymentResourcePool/main.go | 5 + .../DeleteDeploymentResourcePool/main.go | 5 + .../DeleteOperation/main.go | 5 + .../GetDeploymentResourcePool/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../ListDeploymentResourcePools/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../QueryDeployedModels/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../WaitOperation/main.go | 5 + .../EndpointClient/CancelOperation/main.go | 5 + .../EndpointClient/CreateEndpoint/main.go | 5 + .../EndpointClient/DeleteEndpoint/main.go | 5 + .../EndpointClient/DeleteOperation/main.go | 5 + .../EndpointClient/DeployModel/main.go | 5 + .../EndpointClient/GetEndpoint/main.go | 5 + .../EndpointClient/GetIamPolicy/main.go | 5 + .../EndpointClient/GetLocation/main.go | 5 + .../EndpointClient/GetOperation/main.go | 5 + .../EndpointClient/ListEndpoints/main.go | 5 + .../EndpointClient/ListLocations/main.go | 5 + .../EndpointClient/ListOperations/main.go | 5 + .../EndpointClient/SetIamPolicy/main.go | 5 + .../EndpointClient/TestIamPermissions/main.go | 5 + .../EndpointClient/UndeployModel/main.go | 5 + .../EndpointClient/UpdateEndpoint/main.go | 5 + .../EndpointClient/WaitOperation/main.go | 5 + .../BatchCreateFeatures/main.go | 5 + .../BatchReadFeatureValues/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateEntityType/main.go | 5 + .../FeaturestoreClient/CreateFeature/main.go | 5 + .../CreateFeaturestore/main.go | 5 + .../DeleteEntityType/main.go | 5 + .../FeaturestoreClient/DeleteFeature/main.go | 5 + .../DeleteFeaturestore/main.go | 5 + .../DeleteOperation/main.go | 5 + .../ExportFeatureValues/main.go | 5 + .../FeaturestoreClient/GetEntityType/main.go | 5 + .../FeaturestoreClient/GetFeature/main.go | 5 + .../GetFeaturestore/main.go | 5 + .../FeaturestoreClient/GetIamPolicy/main.go | 5 + .../FeaturestoreClient/GetLocation/main.go | 5 + .../FeaturestoreClient/GetOperation/main.go | 5 + .../ImportFeatureValues/main.go | 5 + .../ListEntityTypes/main.go | 5 + .../FeaturestoreClient/ListFeatures/main.go | 5 + .../ListFeaturestores/main.go | 5 + .../FeaturestoreClient/ListLocations/main.go | 5 + .../FeaturestoreClient/ListOperations/main.go | 5 + .../FeaturestoreClient/SearchFeatures/main.go | 5 + .../FeaturestoreClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateEntityType/main.go | 5 + .../FeaturestoreClient/UpdateFeature/main.go | 5 + .../UpdateFeaturestore/main.go | 5 + .../FeaturestoreClient/WaitOperation/main.go | 5 + .../CancelOperation/main.go | 5 + .../DeleteOperation/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ReadFeatureValues/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../WaitOperation/main.go | 5 + .../WriteFeatureValues/main.go | 5 + .../IndexClient/CancelOperation/main.go | 5 + .../IndexClient/CreateIndex/main.go | 5 + .../IndexClient/DeleteIndex/main.go | 5 + .../IndexClient/DeleteOperation/main.go | 5 + .../IndexClient/GetIamPolicy/main.go | 5 + .../apiv1beta1/IndexClient/GetIndex/main.go | 5 + .../IndexClient/GetLocation/main.go | 5 + .../IndexClient/GetOperation/main.go | 5 + .../IndexClient/ListIndexes/main.go | 5 + .../IndexClient/ListLocations/main.go | 5 + .../IndexClient/ListOperations/main.go | 5 + .../IndexClient/RemoveDatapoints/main.go | 5 + .../IndexClient/SetIamPolicy/main.go | 5 + .../IndexClient/TestIamPermissions/main.go | 5 + .../IndexClient/UpdateIndex/main.go | 5 + .../IndexClient/UpsertDatapoints/main.go | 5 + .../IndexClient/WaitOperation/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateIndexEndpoint/main.go | 5 + .../DeleteIndexEndpoint/main.go | 5 + .../DeleteOperation/main.go | 5 + .../IndexEndpointClient/DeployIndex/main.go | 5 + .../IndexEndpointClient/GetIamPolicy/main.go | 5 + .../GetIndexEndpoint/main.go | 5 + .../IndexEndpointClient/GetLocation/main.go | 5 + .../IndexEndpointClient/GetOperation/main.go | 5 + .../ListIndexEndpoints/main.go | 5 + .../IndexEndpointClient/ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../MutateDeployedIndex/main.go | 5 + .../IndexEndpointClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../IndexEndpointClient/UndeployIndex/main.go | 5 + .../UpdateIndexEndpoint/main.go | 5 + .../IndexEndpointClient/WaitOperation/main.go | 5 + .../CancelBatchPredictionJob/main.go | 5 + .../JobClient/CancelCustomJob/main.go | 5 + .../JobClient/CancelDataLabelingJob/main.go | 5 + .../CancelHyperparameterTuningJob/main.go | 5 + .../JobClient/CancelOperation/main.go | 5 + .../CreateBatchPredictionJob/main.go | 5 + .../JobClient/CreateCustomJob/main.go | 5 + .../JobClient/CreateDataLabelingJob/main.go | 5 + .../CreateHyperparameterTuningJob/main.go | 5 + .../main.go | 5 + .../DeleteBatchPredictionJob/main.go | 5 + .../JobClient/DeleteCustomJob/main.go | 5 + .../JobClient/DeleteDataLabelingJob/main.go | 5 + .../DeleteHyperparameterTuningJob/main.go | 5 + .../main.go | 5 + .../JobClient/DeleteOperation/main.go | 5 + .../JobClient/GetBatchPredictionJob/main.go | 5 + .../apiv1beta1/JobClient/GetCustomJob/main.go | 5 + .../JobClient/GetDataLabelingJob/main.go | 5 + .../GetHyperparameterTuningJob/main.go | 5 + .../apiv1beta1/JobClient/GetIamPolicy/main.go | 5 + .../apiv1beta1/JobClient/GetLocation/main.go | 5 + .../GetModelDeploymentMonitoringJob/main.go | 5 + .../apiv1beta1/JobClient/GetOperation/main.go | 5 + .../JobClient/ListBatchPredictionJobs/main.go | 5 + .../JobClient/ListCustomJobs/main.go | 5 + .../JobClient/ListDataLabelingJobs/main.go | 5 + .../ListHyperparameterTuningJobs/main.go | 5 + .../JobClient/ListLocations/main.go | 5 + .../ListModelDeploymentMonitoringJobs/main.go | 5 + .../JobClient/ListOperations/main.go | 5 + .../PauseModelDeploymentMonitoringJob/main.go | 5 + .../main.go | 5 + .../main.go | 5 + .../apiv1beta1/JobClient/SetIamPolicy/main.go | 5 + .../JobClient/TestIamPermissions/main.go | 5 + .../main.go | 5 + .../JobClient/WaitOperation/main.go | 5 + .../AddContextArtifactsAndExecutions/main.go | 5 + .../MetadataClient/AddContextChildren/main.go | 5 + .../MetadataClient/AddExecutionEvents/main.go | 5 + .../MetadataClient/CancelOperation/main.go | 5 + .../MetadataClient/CreateArtifact/main.go | 5 + .../MetadataClient/CreateContext/main.go | 5 + .../MetadataClient/CreateExecution/main.go | 5 + .../CreateMetadataSchema/main.go | 5 + .../CreateMetadataStore/main.go | 5 + .../MetadataClient/DeleteArtifact/main.go | 5 + .../MetadataClient/DeleteContext/main.go | 5 + .../MetadataClient/DeleteExecution/main.go | 5 + .../DeleteMetadataStore/main.go | 5 + .../MetadataClient/DeleteOperation/main.go | 5 + .../MetadataClient/GetArtifact/main.go | 5 + .../MetadataClient/GetContext/main.go | 5 + .../MetadataClient/GetExecution/main.go | 5 + .../MetadataClient/GetIamPolicy/main.go | 5 + .../MetadataClient/GetLocation/main.go | 5 + .../MetadataClient/GetMetadataSchema/main.go | 5 + .../MetadataClient/GetMetadataStore/main.go | 5 + .../MetadataClient/GetOperation/main.go | 5 + .../MetadataClient/ListArtifacts/main.go | 5 + .../MetadataClient/ListContexts/main.go | 5 + .../MetadataClient/ListExecutions/main.go | 5 + .../MetadataClient/ListLocations/main.go | 5 + .../ListMetadataSchemas/main.go | 5 + .../MetadataClient/ListMetadataStores/main.go | 5 + .../MetadataClient/ListOperations/main.go | 5 + .../MetadataClient/PurgeArtifacts/main.go | 5 + .../MetadataClient/PurgeContexts/main.go | 5 + .../MetadataClient/PurgeExecutions/main.go | 5 + .../QueryArtifactLineageSubgraph/main.go | 5 + .../QueryContextLineageSubgraph/main.go | 5 + .../QueryExecutionInputsAndOutputs/main.go | 5 + .../MetadataClient/SetIamPolicy/main.go | 5 + .../MetadataClient/TestIamPermissions/main.go | 5 + .../MetadataClient/UpdateArtifact/main.go | 5 + .../MetadataClient/UpdateContext/main.go | 5 + .../MetadataClient/UpdateExecution/main.go | 5 + .../MetadataClient/WaitOperation/main.go | 5 + .../BatchMigrateResources/main.go | 5 + .../MigrationClient/CancelOperation/main.go | 5 + .../MigrationClient/DeleteOperation/main.go | 5 + .../MigrationClient/GetIamPolicy/main.go | 5 + .../MigrationClient/GetLocation/main.go | 5 + .../MigrationClient/GetOperation/main.go | 5 + .../MigrationClient/ListLocations/main.go | 5 + .../MigrationClient/ListOperations/main.go | 5 + .../SearchMigratableResources/main.go | 5 + .../MigrationClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../MigrationClient/WaitOperation/main.go | 5 + .../BatchImportModelEvaluationSlices/main.go | 5 + .../ModelClient/CancelOperation/main.go | 5 + .../ModelClient/DeleteModel/main.go | 5 + .../ModelClient/DeleteModelVersion/main.go | 5 + .../ModelClient/DeleteOperation/main.go | 5 + .../ModelClient/ExportModel/main.go | 5 + .../ModelClient/GetIamPolicy/main.go | 5 + .../ModelClient/GetLocation/main.go | 5 + .../apiv1beta1/ModelClient/GetModel/main.go | 5 + .../ModelClient/GetModelEvaluation/main.go | 5 + .../GetModelEvaluationSlice/main.go | 5 + .../ModelClient/GetOperation/main.go | 5 + .../ModelClient/ImportModelEvaluation/main.go | 5 + .../ModelClient/ListLocations/main.go | 5 + .../ListModelEvaluationSlices/main.go | 5 + .../ModelClient/ListModelEvaluations/main.go | 5 + .../ModelClient/ListModelVersions/main.go | 5 + .../apiv1beta1/ModelClient/ListModels/main.go | 5 + .../ModelClient/ListOperations/main.go | 5 + .../ModelClient/MergeVersionAliases/main.go | 5 + .../ModelClient/SetIamPolicy/main.go | 5 + .../ModelClient/TestIamPermissions/main.go | 5 + .../UpdateExplanationDataset/main.go | 5 + .../ModelClient/UpdateModel/main.go | 5 + .../ModelClient/UploadModel/main.go | 5 + .../ModelClient/WaitOperation/main.go | 5 + .../PipelineClient/CancelOperation/main.go | 5 + .../PipelineClient/CancelPipelineJob/main.go | 5 + .../CancelTrainingPipeline/main.go | 5 + .../PipelineClient/CreatePipelineJob/main.go | 5 + .../CreateTrainingPipeline/main.go | 5 + .../PipelineClient/DeleteOperation/main.go | 5 + .../PipelineClient/DeletePipelineJob/main.go | 5 + .../DeleteTrainingPipeline/main.go | 5 + .../PipelineClient/GetIamPolicy/main.go | 5 + .../PipelineClient/GetLocation/main.go | 5 + .../PipelineClient/GetOperation/main.go | 5 + .../PipelineClient/GetPipelineJob/main.go | 5 + .../GetTrainingPipeline/main.go | 5 + .../PipelineClient/ListLocations/main.go | 5 + .../PipelineClient/ListOperations/main.go | 5 + .../PipelineClient/ListPipelineJobs/main.go | 5 + .../ListTrainingPipelines/main.go | 5 + .../PipelineClient/SetIamPolicy/main.go | 5 + .../PipelineClient/TestIamPermissions/main.go | 5 + .../PipelineClient/WaitOperation/main.go | 5 + .../PredictionClient/CancelOperation/main.go | 5 + .../PredictionClient/DeleteOperation/main.go | 5 + .../PredictionClient/Explain/main.go | 5 + .../PredictionClient/GetIamPolicy/main.go | 5 + .../PredictionClient/GetLocation/main.go | 5 + .../PredictionClient/GetOperation/main.go | 5 + .../PredictionClient/ListLocations/main.go | 5 + .../PredictionClient/ListOperations/main.go | 5 + .../PredictionClient/Predict/main.go | 5 + .../PredictionClient/RawPredict/main.go | 5 + .../PredictionClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../PredictionClient/WaitOperation/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateSpecialistPool/main.go | 5 + .../DeleteOperation/main.go | 5 + .../DeleteSpecialistPool/main.go | 5 + .../SpecialistPoolClient/GetIamPolicy/main.go | 5 + .../SpecialistPoolClient/GetLocation/main.go | 5 + .../SpecialistPoolClient/GetOperation/main.go | 5 + .../GetSpecialistPool/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListSpecialistPools/main.go | 5 + .../SpecialistPoolClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateSpecialistPool/main.go | 5 + .../WaitOperation/main.go | 5 + .../BatchCreateTensorboardRuns/main.go | 5 + .../BatchCreateTensorboardTimeSeries/main.go | 5 + .../main.go | 5 + .../TensorboardClient/CancelOperation/main.go | 5 + .../CreateTensorboard/main.go | 5 + .../CreateTensorboardExperiment/main.go | 5 + .../CreateTensorboardRun/main.go | 5 + .../CreateTensorboardTimeSeries/main.go | 5 + .../TensorboardClient/DeleteOperation/main.go | 5 + .../DeleteTensorboard/main.go | 5 + .../DeleteTensorboardExperiment/main.go | 5 + .../DeleteTensorboardRun/main.go | 5 + .../DeleteTensorboardTimeSeries/main.go | 5 + .../ExportTensorboardTimeSeriesData/main.go | 5 + .../TensorboardClient/GetIamPolicy/main.go | 5 + .../TensorboardClient/GetLocation/main.go | 5 + .../TensorboardClient/GetOperation/main.go | 5 + .../TensorboardClient/GetTensorboard/main.go | 5 + .../GetTensorboardExperiment/main.go | 5 + .../GetTensorboardRun/main.go | 5 + .../GetTensorboardTimeSeries/main.go | 5 + .../TensorboardClient/ListLocations/main.go | 5 + .../TensorboardClient/ListOperations/main.go | 5 + .../ListTensorboardExperiments/main.go | 5 + .../ListTensorboardRuns/main.go | 5 + .../ListTensorboardTimeSeries/main.go | 5 + .../ListTensorboards/main.go | 5 + .../ReadTensorboardTimeSeriesData/main.go | 5 + .../TensorboardClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateTensorboard/main.go | 5 + .../UpdateTensorboardExperiment/main.go | 5 + .../UpdateTensorboardRun/main.go | 5 + .../UpdateTensorboardTimeSeries/main.go | 5 + .../TensorboardClient/WaitOperation/main.go | 5 + .../WriteTensorboardExperimentData/main.go | 5 + .../WriteTensorboardRunData/main.go | 5 + .../VizierClient/AddTrialMeasurement/main.go | 5 + .../VizierClient/CancelOperation/main.go | 5 + .../CheckTrialEarlyStoppingState/main.go | 5 + .../VizierClient/CompleteTrial/main.go | 5 + .../VizierClient/CreateStudy/main.go | 5 + .../VizierClient/CreateTrial/main.go | 5 + .../VizierClient/DeleteOperation/main.go | 5 + .../VizierClient/DeleteStudy/main.go | 5 + .../VizierClient/DeleteTrial/main.go | 5 + .../VizierClient/GetIamPolicy/main.go | 5 + .../VizierClient/GetLocation/main.go | 5 + .../VizierClient/GetOperation/main.go | 5 + .../apiv1beta1/VizierClient/GetStudy/main.go | 5 + .../apiv1beta1/VizierClient/GetTrial/main.go | 5 + .../VizierClient/ListLocations/main.go | 5 + .../VizierClient/ListOperations/main.go | 5 + .../VizierClient/ListOptimalTrials/main.go | 5 + .../VizierClient/ListStudies/main.go | 5 + .../VizierClient/ListTrials/main.go | 5 + .../VizierClient/LookupStudy/main.go | 5 + .../VizierClient/SetIamPolicy/main.go | 5 + .../apiv1beta1/VizierClient/StopTrial/main.go | 5 + .../VizierClient/SuggestTrials/main.go | 5 + .../VizierClient/TestIamPermissions/main.go | 5 + .../VizierClient/WaitOperation/main.go | 5 + ...adata.google.cloud.aiplatform.v1beta1.json | 716 ++++----- .../AcknowledgeUserDataCollection/main.go | 5 + .../main.go | 5 + .../ArchiveAudience/main.go | 5 + .../ArchiveCustomDimension/main.go | 5 + .../ArchiveCustomMetric/main.go | 5 + .../AuditUserLinks/main.go | 5 + .../BatchCreateUserLinks/main.go | 5 + .../BatchDeleteUserLinks/main.go | 5 + .../BatchGetUserLinks/main.go | 5 + .../BatchUpdateUserLinks/main.go | 5 + .../main.go | 5 + .../CreateAudience/main.go | 5 + .../CreateConversionEvent/main.go | 5 + .../CreateCustomDimension/main.go | 5 + .../CreateCustomMetric/main.go | 5 + .../CreateDataStream/main.go | 5 + .../main.go | 5 + .../main.go | 5 + .../CreateFirebaseLink/main.go | 5 + .../CreateGoogleAdsLink/main.go | 5 + .../CreateMeasurementProtocolSecret/main.go | 5 + .../CreateProperty/main.go | 5 + .../CreateUserLink/main.go | 5 + .../DeleteAccount/main.go | 5 + .../DeleteConversionEvent/main.go | 5 + .../DeleteDataStream/main.go | 5 + .../main.go | 5 + .../main.go | 5 + .../DeleteFirebaseLink/main.go | 5 + .../DeleteGoogleAdsLink/main.go | 5 + .../DeleteMeasurementProtocolSecret/main.go | 5 + .../DeleteProperty/main.go | 5 + .../DeleteUserLink/main.go | 5 + .../AnalyticsAdminClient/GetAccount/main.go | 5 + .../GetAttributionSettings/main.go | 5 + .../AnalyticsAdminClient/GetAudience/main.go | 5 + .../GetConversionEvent/main.go | 5 + .../GetCustomDimension/main.go | 5 + .../GetCustomMetric/main.go | 5 + .../GetDataRetentionSettings/main.go | 5 + .../GetDataSharingSettings/main.go | 5 + .../GetDataStream/main.go | 5 + .../GetDisplayVideo360AdvertiserLink/main.go | 5 + .../main.go | 5 + .../GetGlobalSiteTag/main.go | 5 + .../GetGoogleSignalsSettings/main.go | 5 + .../GetMeasurementProtocolSecret/main.go | 5 + .../AnalyticsAdminClient/GetProperty/main.go | 5 + .../AnalyticsAdminClient/GetUserLink/main.go | 5 + .../ListAccountSummaries/main.go | 5 + .../AnalyticsAdminClient/ListAccounts/main.go | 5 + .../ListAudiences/main.go | 5 + .../ListConversionEvents/main.go | 5 + .../ListCustomDimensions/main.go | 5 + .../ListCustomMetrics/main.go | 5 + .../ListDataStreams/main.go | 5 + .../main.go | 5 + .../main.go | 5 + .../ListFirebaseLinks/main.go | 5 + .../ListGoogleAdsLinks/main.go | 5 + .../ListMeasurementProtocolSecrets/main.go | 5 + .../ListProperties/main.go | 5 + .../ListUserLinks/main.go | 5 + .../ProvisionAccountTicket/main.go | 5 + .../RunAccessReport/main.go | 5 + .../SearchChangeHistoryEvents/main.go | 5 + .../UpdateAccount/main.go | 5 + .../UpdateAttributionSettings/main.go | 5 + .../UpdateAudience/main.go | 5 + .../UpdateCustomDimension/main.go | 5 + .../UpdateCustomMetric/main.go | 5 + .../UpdateDataRetentionSettings/main.go | 5 + .../UpdateDataStream/main.go | 5 + .../main.go | 5 + .../UpdateGoogleAdsLink/main.go | 5 + .../UpdateGoogleSignalsSettings/main.go | 5 + .../UpdateMeasurementProtocolSecret/main.go | 5 + .../UpdateProperty/main.go | 5 + .../UpdateUserLink/main.go | 5 + ...tadata.google.analytics.admin.v1alpha.json | 158 +- .../apigateway/apiv1/Client/CreateApi/main.go | 5 + .../apiv1/Client/CreateApiConfig/main.go | 5 + .../apiv1/Client/CreateGateway/main.go | 5 + .../apigateway/apiv1/Client/DeleteApi/main.go | 5 + .../apiv1/Client/DeleteApiConfig/main.go | 5 + .../apiv1/Client/DeleteGateway/main.go | 5 + .../apigateway/apiv1/Client/GetApi/main.go | 5 + .../apiv1/Client/GetApiConfig/main.go | 5 + .../apiv1/Client/GetGateway/main.go | 5 + .../apiv1/Client/ListApiConfigs/main.go | 5 + .../apigateway/apiv1/Client/ListApis/main.go | 5 + .../apiv1/Client/ListGateways/main.go | 5 + .../apigateway/apiv1/Client/UpdateApi/main.go | 5 + .../apiv1/Client/UpdateApiConfig/main.go | 5 + .../apiv1/Client/UpdateGateway/main.go | 5 + ...t_metadata.google.cloud.apigateway.v1.json | 30 +- .../ConnectionClient/ListConnections/main.go | 5 + .../apiv1/TetherClient/Egress/main.go | 5 + ...etadata.google.cloud.apigeeconnect.v1.json | 4 +- .../CancelOperation/main.go | 5 + .../ProvisioningClient/CreateInstance/main.go | 5 + .../ProvisioningClient/DeleteInstance/main.go | 5 + .../DeleteOperation/main.go | 5 + .../ProvisioningClient/GetIamPolicy/main.go | 5 + .../ProvisioningClient/GetInstance/main.go | 5 + .../ProvisioningClient/GetLocation/main.go | 5 + .../ProvisioningClient/GetOperation/main.go | 5 + .../ProvisioningClient/ListLocations/main.go | 5 + .../ProvisioningClient/ListOperations/main.go | 5 + .../ProvisioningClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../RegistryClient/CancelOperation/main.go | 5 + .../apiv1/RegistryClient/CreateApi/main.go | 5 + .../CreateApiDeployment/main.go | 5 + .../RegistryClient/CreateApiSpec/main.go | 5 + .../RegistryClient/CreateApiVersion/main.go | 5 + .../RegistryClient/CreateArtifact/main.go | 5 + .../apiv1/RegistryClient/DeleteApi/main.go | 5 + .../DeleteApiDeployment/main.go | 5 + .../DeleteApiDeploymentRevision/main.go | 5 + .../RegistryClient/DeleteApiSpec/main.go | 5 + .../DeleteApiSpecRevision/main.go | 5 + .../RegistryClient/DeleteApiVersion/main.go | 5 + .../RegistryClient/DeleteArtifact/main.go | 5 + .../RegistryClient/DeleteOperation/main.go | 5 + .../apiv1/RegistryClient/GetApi/main.go | 5 + .../RegistryClient/GetApiDeployment/main.go | 5 + .../apiv1/RegistryClient/GetApiSpec/main.go | 5 + .../RegistryClient/GetApiSpecContents/main.go | 5 + .../RegistryClient/GetApiVersion/main.go | 5 + .../apiv1/RegistryClient/GetArtifact/main.go | 5 + .../GetArtifactContents/main.go | 5 + .../apiv1/RegistryClient/GetIamPolicy/main.go | 5 + .../apiv1/RegistryClient/GetLocation/main.go | 5 + .../apiv1/RegistryClient/GetOperation/main.go | 5 + .../ListApiDeploymentRevisions/main.go | 5 + .../RegistryClient/ListApiDeployments/main.go | 5 + .../ListApiSpecRevisions/main.go | 5 + .../apiv1/RegistryClient/ListApiSpecs/main.go | 5 + .../RegistryClient/ListApiVersions/main.go | 5 + .../apiv1/RegistryClient/ListApis/main.go | 5 + .../RegistryClient/ListArtifacts/main.go | 5 + .../RegistryClient/ListLocations/main.go | 5 + .../RegistryClient/ListOperations/main.go | 5 + .../RegistryClient/ReplaceArtifact/main.go | 5 + .../RollbackApiDeployment/main.go | 5 + .../RegistryClient/RollbackApiSpec/main.go | 5 + .../apiv1/RegistryClient/SetIamPolicy/main.go | 5 + .../TagApiDeploymentRevision/main.go | 5 + .../RegistryClient/TagApiSpecRevision/main.go | 5 + .../RegistryClient/TestIamPermissions/main.go | 5 + .../apiv1/RegistryClient/UpdateApi/main.go | 5 + .../UpdateApiDeployment/main.go | 5 + .../RegistryClient/UpdateApiSpec/main.go | 5 + .../RegistryClient/UpdateApiVersion/main.go | 5 + ...tadata.google.cloud.apigeeregistry.v1.json | 112 +- .../apikeys/apiv2/Client/CreateKey/main.go | 5 + .../apikeys/apiv2/Client/DeleteKey/main.go | 5 + .../apikeys/apiv2/Client/GetKey/main.go | 5 + .../apikeys/apiv2/Client/GetKeyString/main.go | 5 + .../apikeys/apiv2/Client/GetOperation/main.go | 5 + .../apikeys/apiv2/Client/ListKeys/main.go | 5 + .../apikeys/apiv2/Client/LookupKey/main.go | 5 + .../apikeys/apiv2/Client/UndeleteKey/main.go | 5 + .../apikeys/apiv2/Client/UpdateKey/main.go | 5 + ...nippet_metadata.google.api.apikeys.v2.json | 18 +- .../CreateApplication/main.go | 5 + .../ApplicationsClient/GetApplication/main.go | 5 + .../RepairApplication/main.go | 5 + .../UpdateApplication/main.go | 5 + .../CreateAuthorizedCertificate/main.go | 5 + .../DeleteAuthorizedCertificate/main.go | 5 + .../GetAuthorizedCertificate/main.go | 5 + .../ListAuthorizedCertificates/main.go | 5 + .../UpdateAuthorizedCertificate/main.go | 5 + .../ListAuthorizedDomains/main.go | 5 + .../CreateDomainMapping/main.go | 5 + .../DeleteDomainMapping/main.go | 5 + .../GetDomainMapping/main.go | 5 + .../ListDomainMappings/main.go | 5 + .../UpdateDomainMapping/main.go | 5 + .../BatchUpdateIngressRules/main.go | 5 + .../FirewallClient/CreateIngressRule/main.go | 5 + .../FirewallClient/DeleteIngressRule/main.go | 5 + .../FirewallClient/GetIngressRule/main.go | 5 + .../FirewallClient/ListIngressRules/main.go | 5 + .../FirewallClient/UpdateIngressRule/main.go | 5 + .../InstancesClient/DebugInstance/main.go | 5 + .../InstancesClient/DeleteInstance/main.go | 5 + .../apiv1/InstancesClient/GetInstance/main.go | 5 + .../InstancesClient/ListInstances/main.go | 5 + .../ServicesClient/DeleteService/main.go | 5 + .../apiv1/ServicesClient/GetService/main.go | 5 + .../apiv1/ServicesClient/ListServices/main.go | 5 + .../ServicesClient/UpdateService/main.go | 5 + .../VersionsClient/CreateVersion/main.go | 5 + .../VersionsClient/DeleteVersion/main.go | 5 + .../apiv1/VersionsClient/GetVersion/main.go | 5 + .../apiv1/VersionsClient/ListVersions/main.go | 5 + .../VersionsClient/UpdateVersion/main.go | 5 + .../snippet_metadata.google.appengine.v1.json | 68 +- .../Client/BatchCreateRows/main.go | 5 + .../Client/BatchDeleteRows/main.go | 5 + .../Client/BatchUpdateRows/main.go | 5 + .../apiv1alpha1/Client/CreateRow/main.go | 5 + .../apiv1alpha1/Client/DeleteRow/main.go | 5 + .../tables/apiv1alpha1/Client/GetRow/main.go | 5 + .../apiv1alpha1/Client/GetTable/main.go | 5 + .../apiv1alpha1/Client/GetWorkspace/main.go | 5 + .../apiv1alpha1/Client/ListRows/main.go | 5 + .../apiv1alpha1/Client/ListTables/main.go | 5 + .../apiv1alpha1/Client/ListWorkspaces/main.go | 5 + .../apiv1alpha1/Client/UpdateRow/main.go | 5 + ...tadata.google.area120.tables.v1alpha1.json | 24 +- .../apiv1/Client/CreateRepository/main.go | 5 + .../apiv1/Client/CreateTag/main.go | 5 + .../apiv1/Client/DeletePackage/main.go | 5 + .../apiv1/Client/DeleteRepository/main.go | 5 + .../apiv1/Client/DeleteTag/main.go | 5 + .../apiv1/Client/DeleteVersion/main.go | 5 + .../apiv1/Client/GetDockerImage/main.go | 5 + .../apiv1/Client/GetFile/main.go | 5 + .../apiv1/Client/GetIamPolicy/main.go | 5 + .../apiv1/Client/GetPackage/main.go | 5 + .../apiv1/Client/GetProjectSettings/main.go | 5 + .../apiv1/Client/GetRepository/main.go | 5 + .../apiv1/Client/GetTag/main.go | 5 + .../apiv1/Client/GetVersion/main.go | 5 + .../apiv1/Client/ImportAptArtifacts/main.go | 5 + .../apiv1/Client/ImportYumArtifacts/main.go | 5 + .../apiv1/Client/ListDockerImages/main.go | 5 + .../apiv1/Client/ListFiles/main.go | 5 + .../apiv1/Client/ListPackages/main.go | 5 + .../apiv1/Client/ListRepositories/main.go | 5 + .../apiv1/Client/ListTags/main.go | 5 + .../apiv1/Client/ListVersions/main.go | 5 + .../apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + .../Client/UpdateProjectSettings/main.go | 5 + .../apiv1/Client/UpdateRepository/main.go | 5 + .../apiv1/Client/UpdateTag/main.go | 5 + ...a.google.devtools.artifactregistry.v1.json | 54 +- .../Client/CreateRepository/main.go | 5 + .../apiv1beta2/Client/CreateTag/main.go | 5 + .../apiv1beta2/Client/DeletePackage/main.go | 5 + .../Client/DeleteRepository/main.go | 5 + .../apiv1beta2/Client/DeleteTag/main.go | 5 + .../apiv1beta2/Client/DeleteVersion/main.go | 5 + .../apiv1beta2/Client/GetFile/main.go | 5 + .../apiv1beta2/Client/GetIamPolicy/main.go | 5 + .../apiv1beta2/Client/GetPackage/main.go | 5 + .../Client/GetProjectSettings/main.go | 5 + .../apiv1beta2/Client/GetRepository/main.go | 5 + .../apiv1beta2/Client/GetTag/main.go | 5 + .../apiv1beta2/Client/GetVersion/main.go | 5 + .../Client/ImportAptArtifacts/main.go | 5 + .../Client/ImportYumArtifacts/main.go | 5 + .../apiv1beta2/Client/ListFiles/main.go | 5 + .../apiv1beta2/Client/ListPackages/main.go | 5 + .../Client/ListRepositories/main.go | 5 + .../apiv1beta2/Client/ListTags/main.go | 5 + .../apiv1beta2/Client/ListVersions/main.go | 5 + .../apiv1beta2/Client/SetIamPolicy/main.go | 5 + .../Client/TestIamPermissions/main.go | 5 + .../Client/UpdateProjectSettings/main.go | 5 + .../Client/UpdateRepository/main.go | 5 + .../apiv1beta2/Client/UpdateTag/main.go | 5 + ...gle.devtools.artifactregistry.v1beta2.json | 50 +- .../apiv1/Client/AnalyzeIamPolicy/main.go | 5 + .../AnalyzeIamPolicyLongrunning/main.go | 5 + .../asset/apiv1/Client/AnalyzeMove/main.go | 5 + .../Client/BatchGetAssetsHistory/main.go | 5 + .../BatchGetEffectiveIamPolicies/main.go | 5 + .../asset/apiv1/Client/CreateFeed/main.go | 5 + .../apiv1/Client/CreateSavedQuery/main.go | 5 + .../asset/apiv1/Client/DeleteFeed/main.go | 5 + .../apiv1/Client/DeleteSavedQuery/main.go | 5 + .../asset/apiv1/Client/ExportAssets/main.go | 5 + .../asset/apiv1/Client/GetFeed/main.go | 5 + .../asset/apiv1/Client/GetOperation/main.go | 5 + .../asset/apiv1/Client/GetSavedQuery/main.go | 5 + .../asset/apiv1/Client/ListAssets/main.go | 5 + .../asset/apiv1/Client/ListFeeds/main.go | 5 + .../apiv1/Client/ListSavedQueries/main.go | 5 + .../asset/apiv1/Client/QueryAssets/main.go | 5 + .../apiv1/Client/SearchAllIamPolicies/main.go | 5 + .../apiv1/Client/SearchAllResources/main.go | 5 + .../asset/apiv1/Client/UpdateFeed/main.go | 5 + .../apiv1/Client/UpdateSavedQuery/main.go | 5 + ...nippet_metadata.google.cloud.asset.v1.json | 42 +- .../apiv1p2beta1/Client/CreateFeed/main.go | 5 + .../apiv1p2beta1/Client/DeleteFeed/main.go | 5 + .../asset/apiv1p2beta1/Client/GetFeed/main.go | 5 + .../apiv1p2beta1/Client/ListFeeds/main.go | 5 + .../apiv1p2beta1/Client/UpdateFeed/main.go | 5 + ...metadata.google.cloud.asset.v1p2beta1.json | 10 +- .../apiv1p5beta1/Client/ListAssets/main.go | 5 + ...metadata.google.cloud.asset.v1p5beta1.json | 2 +- .../apiv1/Client/CreateWorkload/main.go | 5 + .../apiv1/Client/DeleteWorkload/main.go | 5 + .../apiv1/Client/GetWorkload/main.go | 5 + .../apiv1/Client/ListWorkloads/main.go | 5 + .../apiv1/Client/UpdateWorkload/main.go | 5 + ...data.google.cloud.assuredworkloads.v1.json | 12 +- .../Client/AnalyzeWorkloadMove/main.go | 5 + .../apiv1beta1/Client/CreateWorkload/main.go | 5 + .../apiv1beta1/Client/DeleteWorkload/main.go | 5 + .../apiv1beta1/Client/GetOperation/main.go | 5 + .../apiv1beta1/Client/GetWorkload/main.go | 5 + .../apiv1beta1/Client/ListOperations/main.go | 5 + .../apiv1beta1/Client/ListWorkloads/main.go | 5 + .../Client/RestrictAllowedResources/main.go | 5 + .../apiv1beta1/Client/UpdateWorkload/main.go | 5 + ...google.cloud.assuredworkloads.v1beta1.json | 22 +- .../automl/apiv1/Client/CreateDataset/main.go | 5 + .../automl/apiv1/Client/CreateModel/main.go | 5 + .../automl/apiv1/Client/DeleteDataset/main.go | 5 + .../automl/apiv1/Client/DeleteModel/main.go | 5 + .../automl/apiv1/Client/DeployModel/main.go | 5 + .../automl/apiv1/Client/ExportData/main.go | 5 + .../automl/apiv1/Client/ExportModel/main.go | 5 + .../apiv1/Client/GetAnnotationSpec/main.go | 5 + .../automl/apiv1/Client/GetDataset/main.go | 5 + .../automl/apiv1/Client/GetModel/main.go | 5 + .../apiv1/Client/GetModelEvaluation/main.go | 5 + .../automl/apiv1/Client/ImportData/main.go | 5 + .../automl/apiv1/Client/ListDatasets/main.go | 5 + .../apiv1/Client/ListModelEvaluations/main.go | 5 + .../automl/apiv1/Client/ListModels/main.go | 5 + .../automl/apiv1/Client/UndeployModel/main.go | 5 + .../automl/apiv1/Client/UpdateDataset/main.go | 5 + .../automl/apiv1/Client/UpdateModel/main.go | 5 + .../PredictionClient/BatchPredict/main.go | 5 + .../apiv1/PredictionClient/Predict/main.go | 5 + ...ippet_metadata.google.cloud.automl.v1.json | 40 +- .../apiv1beta1/Client/CreateDataset/main.go | 5 + .../apiv1beta1/Client/CreateModel/main.go | 5 + .../apiv1beta1/Client/DeleteDataset/main.go | 5 + .../apiv1beta1/Client/DeleteModel/main.go | 5 + .../apiv1beta1/Client/DeployModel/main.go | 5 + .../apiv1beta1/Client/ExportData/main.go | 5 + .../Client/ExportEvaluatedExamples/main.go | 5 + .../apiv1beta1/Client/ExportModel/main.go | 5 + .../Client/GetAnnotationSpec/main.go | 5 + .../apiv1beta1/Client/GetColumnSpec/main.go | 5 + .../apiv1beta1/Client/GetDataset/main.go | 5 + .../automl/apiv1beta1/Client/GetModel/main.go | 5 + .../Client/GetModelEvaluation/main.go | 5 + .../apiv1beta1/Client/GetTableSpec/main.go | 5 + .../apiv1beta1/Client/ImportData/main.go | 5 + .../apiv1beta1/Client/ListColumnSpecs/main.go | 5 + .../apiv1beta1/Client/ListDatasets/main.go | 5 + .../Client/ListModelEvaluations/main.go | 5 + .../apiv1beta1/Client/ListModels/main.go | 5 + .../apiv1beta1/Client/ListTableSpecs/main.go | 5 + .../apiv1beta1/Client/UndeployModel/main.go | 5 + .../Client/UpdateColumnSpec/main.go | 5 + .../apiv1beta1/Client/UpdateDataset/main.go | 5 + .../apiv1beta1/Client/UpdateTableSpec/main.go | 5 + .../PredictionClient/BatchPredict/main.go | 5 + .../PredictionClient/Predict/main.go | 5 + ..._metadata.google.cloud.automl.v1beta1.json | 52 +- .../apiv2/Client/DetachLun/main.go | 5 + .../apiv2/Client/GetInstance/main.go | 5 + .../apiv2/Client/GetLocation/main.go | 5 + .../apiv2/Client/GetLun/main.go | 5 + .../apiv2/Client/GetNetwork/main.go | 5 + .../apiv2/Client/GetNfsShare/main.go | 5 + .../apiv2/Client/GetVolume/main.go | 5 + .../apiv2/Client/ListInstances/main.go | 5 + .../apiv2/Client/ListLocations/main.go | 5 + .../apiv2/Client/ListLuns/main.go | 5 + .../apiv2/Client/ListNetworkUsage/main.go | 5 + .../apiv2/Client/ListNetworks/main.go | 5 + .../apiv2/Client/ListNfsShares/main.go | 5 + .../apiv2/Client/ListVolumes/main.go | 5 + .../apiv2/Client/ResetInstance/main.go | 5 + .../apiv2/Client/ResizeVolume/main.go | 5 + .../apiv2/Client/StartInstance/main.go | 5 + .../apiv2/Client/StopInstance/main.go | 5 + .../apiv2/Client/UpdateInstance/main.go | 5 + .../apiv2/Client/UpdateNetwork/main.go | 5 + .../apiv2/Client/UpdateNfsShare/main.go | 5 + .../apiv2/Client/UpdateVolume/main.go | 5 + ...ata.google.cloud.baremetalsolution.v2.json | 44 +- .../apiv1/Client/CancelOperation/main.go | 5 + .../batch/apiv1/Client/CreateJob/main.go | 5 + .../batch/apiv1/Client/DeleteJob/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../batch/apiv1/Client/GetIamPolicy/main.go | 5 + .../batch/apiv1/Client/GetJob/main.go | 5 + .../batch/apiv1/Client/GetLocation/main.go | 5 + .../batch/apiv1/Client/GetOperation/main.go | 5 + .../batch/apiv1/Client/GetTask/main.go | 5 + .../batch/apiv1/Client/ListJobs/main.go | 5 + .../batch/apiv1/Client/ListLocations/main.go | 5 + .../batch/apiv1/Client/ListOperations/main.go | 5 + .../batch/apiv1/Client/ListTasks/main.go | 5 + .../batch/apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + ...nippet_metadata.google.cloud.batch.v1.json | 32 +- .../apiv1/Client/CancelOperation/main.go | 5 + .../apiv1/Client/CreateAppConnection/main.go | 5 + .../apiv1/Client/DeleteAppConnection/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../apiv1/Client/GetAppConnection/main.go | 5 + .../apiv1/Client/GetIamPolicy/main.go | 5 + .../apiv1/Client/GetLocation/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../apiv1/Client/ListAppConnections/main.go | 5 + .../apiv1/Client/ListLocations/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../Client/ResolveAppConnections/main.go | 5 + .../apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + .../apiv1/Client/UpdateAppConnection/main.go | 5 + ...le.cloud.beyondcorp.appconnections.v1.json | 30 +- .../apiv1/Client/CancelOperation/main.go | 5 + .../apiv1/Client/CreateAppConnector/main.go | 5 + .../apiv1/Client/DeleteAppConnector/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../apiv1/Client/GetAppConnector/main.go | 5 + .../apiv1/Client/GetIamPolicy/main.go | 5 + .../apiv1/Client/GetLocation/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../apiv1/Client/ListAppConnectors/main.go | 5 + .../apiv1/Client/ListLocations/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../apiv1/Client/ReportStatus/main.go | 5 + .../apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + .../apiv1/Client/UpdateAppConnector/main.go | 5 + ...gle.cloud.beyondcorp.appconnectors.v1.json | 30 +- .../apiv1/Client/CancelOperation/main.go | 5 + .../apiv1/Client/CreateAppGateway/main.go | 5 + .../apiv1/Client/DeleteAppGateway/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../apiv1/Client/GetAppGateway/main.go | 5 + .../apiv1/Client/GetIamPolicy/main.go | 5 + .../apiv1/Client/GetLocation/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../apiv1/Client/ListAppGateways/main.go | 5 + .../apiv1/Client/ListLocations/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + ...oogle.cloud.beyondcorp.appgateways.v1.json | 26 +- .../apiv1/Client/CancelOperation/main.go | 5 + .../CreateClientConnectorService/main.go | 5 + .../DeleteClientConnectorService/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../Client/GetClientConnectorService/main.go | 5 + .../apiv1/Client/GetIamPolicy/main.go | 5 + .../apiv1/Client/GetLocation/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../ListClientConnectorServices/main.go | 5 + .../apiv1/Client/ListLocations/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + .../UpdateClientConnectorService/main.go | 5 + ...beyondcorp.clientconnectorservices.v1.json | 28 +- .../apiv1/Client/CancelOperation/main.go | 5 + .../apiv1/Client/CreateClientGateway/main.go | 5 + .../apiv1/Client/DeleteClientGateway/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../apiv1/Client/GetClientGateway/main.go | 5 + .../apiv1/Client/GetIamPolicy/main.go | 5 + .../apiv1/Client/GetLocation/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../apiv1/Client/ListClientGateways/main.go | 5 + .../apiv1/Client/ListLocations/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + ...le.cloud.beyondcorp.clientgateways.v1.json | 26 +- .../apiv1/Client/CreateConnection/main.go | 5 + .../apiv1/Client/DeleteConnection/main.go | 5 + .../apiv1/Client/GetConnection/main.go | 5 + .../apiv1/Client/GetIamPolicy/main.go | 5 + .../apiv1/Client/ListConnections/main.go | 5 + .../apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + .../apiv1/Client/UpdateConnection/main.go | 5 + ...a.google.cloud.bigquery.connection.v1.json | 16 +- .../Client/CreateConnection/main.go | 5 + .../Client/DeleteConnection/main.go | 5 + .../apiv1beta1/Client/GetConnection/main.go | 5 + .../apiv1beta1/Client/GetIamPolicy/main.go | 5 + .../apiv1beta1/Client/ListConnections/main.go | 5 + .../apiv1beta1/Client/SetIamPolicy/main.go | 5 + .../Client/TestIamPermissions/main.go | 5 + .../Client/UpdateConnection/main.go | 5 + .../Client/UpdateConnectionCredential/main.go | 5 + ...gle.cloud.bigquery.connection.v1beta1.json | 18 +- .../CreateDataExchange/main.go | 5 + .../AnalyticsHubClient/CreateListing/main.go | 5 + .../DeleteDataExchange/main.go | 5 + .../AnalyticsHubClient/DeleteListing/main.go | 5 + .../GetDataExchange/main.go | 5 + .../AnalyticsHubClient/GetIamPolicy/main.go | 5 + .../AnalyticsHubClient/GetListing/main.go | 5 + .../AnalyticsHubClient/GetLocation/main.go | 5 + .../ListDataExchanges/main.go | 5 + .../AnalyticsHubClient/ListListings/main.go | 5 + .../AnalyticsHubClient/ListLocations/main.go | 5 + .../ListOrgDataExchanges/main.go | 5 + .../AnalyticsHubClient/SetIamPolicy/main.go | 5 + .../SubscribeListing/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateDataExchange/main.go | 5 + .../AnalyticsHubClient/UpdateListing/main.go | 5 + ...e.cloud.bigquery.dataexchange.v1beta1.json | 34 +- .../apiv1/Client/CheckValidCreds/main.go | 5 + .../apiv1/Client/CreateTransferConfig/main.go | 5 + .../apiv1/Client/DeleteTransferConfig/main.go | 5 + .../apiv1/Client/DeleteTransferRun/main.go | 5 + .../apiv1/Client/EnrollDataSources/main.go | 5 + .../apiv1/Client/GetDataSource/main.go | 5 + .../apiv1/Client/GetTransferConfig/main.go | 5 + .../apiv1/Client/GetTransferRun/main.go | 5 + .../apiv1/Client/ListDataSources/main.go | 5 + .../apiv1/Client/ListTransferConfigs/main.go | 5 + .../apiv1/Client/ListTransferLogs/main.go | 5 + .../apiv1/Client/ListTransferRuns/main.go | 5 + .../apiv1/Client/ScheduleTransferRuns/main.go | 5 + .../Client/StartManualTransferRuns/main.go | 5 + .../apiv1/Client/UpdateTransferConfig/main.go | 5 + ...google.cloud.bigquery.datatransfer.v1.json | 30 +- .../Client/CreateMigrationWorkflow/main.go | 5 + .../Client/DeleteMigrationWorkflow/main.go | 5 + .../apiv2/Client/GetMigrationSubtask/main.go | 5 + .../apiv2/Client/GetMigrationWorkflow/main.go | 5 + .../Client/ListMigrationSubtasks/main.go | 5 + .../Client/ListMigrationWorkflows/main.go | 5 + .../Client/StartMigrationWorkflow/main.go | 5 + ...ta.google.cloud.bigquery.migration.v2.json | 14 +- .../Client/CreateMigrationWorkflow/main.go | 5 + .../Client/DeleteMigrationWorkflow/main.go | 5 + .../Client/GetMigrationSubtask/main.go | 5 + .../Client/GetMigrationWorkflow/main.go | 5 + .../Client/ListMigrationSubtasks/main.go | 5 + .../Client/ListMigrationWorkflows/main.go | 5 + .../Client/StartMigrationWorkflow/main.go | 5 + .../TranslateQuery/main.go | 5 + ...ogle.cloud.bigquery.migration.v2alpha.json | 16 +- .../apiv1/Client/CreateAssignment/main.go | 5 + .../Client/CreateCapacityCommitment/main.go | 5 + .../apiv1/Client/CreateReservation/main.go | 5 + .../apiv1/Client/DeleteAssignment/main.go | 5 + .../Client/DeleteCapacityCommitment/main.go | 5 + .../apiv1/Client/DeleteReservation/main.go | 5 + .../apiv1/Client/GetBiReservation/main.go | 5 + .../Client/GetCapacityCommitment/main.go | 5 + .../apiv1/Client/GetReservation/main.go | 5 + .../apiv1/Client/ListAssignments/main.go | 5 + .../Client/ListCapacityCommitments/main.go | 5 + .../apiv1/Client/ListReservations/main.go | 5 + .../Client/MergeCapacityCommitments/main.go | 5 + .../apiv1/Client/MoveAssignment/main.go | 5 + .../apiv1/Client/SearchAllAssignments/main.go | 5 + .../apiv1/Client/SearchAssignments/main.go | 5 + .../Client/SplitCapacityCommitment/main.go | 5 + .../apiv1/Client/UpdateAssignment/main.go | 5 + .../apiv1/Client/UpdateBiReservation/main.go | 5 + .../Client/UpdateCapacityCommitment/main.go | 5 + .../apiv1/Client/UpdateReservation/main.go | 5 + ....google.cloud.bigquery.reservation.v1.json | 42 +- .../Client/CreateAssignment/main.go | 5 + .../Client/CreateCapacityCommitment/main.go | 5 + .../Client/CreateReservation/main.go | 5 + .../Client/DeleteAssignment/main.go | 5 + .../Client/DeleteCapacityCommitment/main.go | 5 + .../Client/DeleteReservation/main.go | 5 + .../Client/GetBiReservation/main.go | 5 + .../Client/GetCapacityCommitment/main.go | 5 + .../apiv1beta1/Client/GetReservation/main.go | 5 + .../apiv1beta1/Client/ListAssignments/main.go | 5 + .../Client/ListCapacityCommitments/main.go | 5 + .../Client/ListReservations/main.go | 5 + .../Client/MergeCapacityCommitments/main.go | 5 + .../apiv1beta1/Client/MoveAssignment/main.go | 5 + .../Client/SearchAssignments/main.go | 5 + .../Client/SplitCapacityCommitment/main.go | 5 + .../Client/UpdateBiReservation/main.go | 5 + .../Client/UpdateCapacityCommitment/main.go | 5 + .../Client/UpdateReservation/main.go | 5 + ...le.cloud.bigquery.reservation.v1beta1.json | 38 +- .../CreateReadSession/main.go | 5 + .../SplitReadStream/main.go | 5 + .../BigQueryWriteClient/AppendRows/main.go | 5 + .../BatchCommitWriteStreams/main.go | 5 + .../CreateWriteStream/main.go | 5 + .../FinalizeWriteStream/main.go | 5 + .../BigQueryWriteClient/FlushRows/main.go | 5 + .../GetWriteStream/main.go | 5 + ...data.google.cloud.bigquery.storage.v1.json | 16 +- .../BatchCreateReadSessionStreams/main.go | 5 + .../CreateReadSession/main.go | 5 + .../FinalizeStream/main.go | 5 + .../SplitReadStream/main.go | 5 + ...google.cloud.bigquery.storage.v1beta1.json | 8 +- .../CreateReadSession/main.go | 5 + .../SplitReadStream/main.go | 5 + .../BigQueryWriteClient/AppendRows/main.go | 5 + .../BatchCommitWriteStreams/main.go | 5 + .../CreateWriteStream/main.go | 5 + .../FinalizeWriteStream/main.go | 5 + .../BigQueryWriteClient/FlushRows/main.go | 5 + .../GetWriteStream/main.go | 5 + ...google.cloud.bigquery.storage.v1beta2.json | 16 +- .../CreateBillingAccount/main.go | 5 + .../GetBillingAccount/main.go | 5 + .../CloudBillingClient/GetIamPolicy/main.go | 5 + .../GetProjectBillingInfo/main.go | 5 + .../ListBillingAccounts/main.go | 5 + .../ListProjectBillingInfo/main.go | 5 + .../CloudBillingClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateBillingAccount/main.go | 5 + .../UpdateProjectBillingInfo/main.go | 5 + .../CloudCatalogClient/ListServices/main.go | 5 + .../apiv1/CloudCatalogClient/ListSkus/main.go | 5 + ...ppet_metadata.google.cloud.billing.v1.json | 24 +- .../apiv1/BudgetClient/CreateBudget/main.go | 5 + .../apiv1/BudgetClient/DeleteBudget/main.go | 5 + .../apiv1/BudgetClient/GetBudget/main.go | 5 + .../apiv1/BudgetClient/ListBudgets/main.go | 5 + .../apiv1/BudgetClient/UpdateBudget/main.go | 5 + ...adata.google.cloud.billing.budgets.v1.json | 10 +- .../BudgetClient/CreateBudget/main.go | 5 + .../BudgetClient/DeleteBudget/main.go | 5 + .../apiv1beta1/BudgetClient/GetBudget/main.go | 5 + .../BudgetClient/ListBudgets/main.go | 5 + .../BudgetClient/UpdateBudget/main.go | 5 + ....google.cloud.billing.budgets.v1beta1.json | 10 +- .../CreateAttestor/main.go | 5 + .../DeleteAttestor/main.go | 5 + .../GetAttestor/main.go | 5 + .../GetPolicy/main.go | 5 + .../ListAttestors/main.go | 5 + .../UpdateAttestor/main.go | 5 + .../UpdatePolicy/main.go | 5 + .../GetSystemPolicy/main.go | 5 + .../ValidateAttestationOccurrence/main.go | 5 + ...a.google.cloud.binaryauthorization.v1.json | 18 +- .../CreateAttestor/main.go | 5 + .../DeleteAttestor/main.go | 5 + .../GetAttestor/main.go | 5 + .../GetPolicy/main.go | 5 + .../ListAttestors/main.go | 5 + .../UpdateAttestor/main.go | 5 + .../UpdatePolicy/main.go | 5 + .../GetSystemPolicy/main.go | 5 + ...gle.cloud.binaryauthorization.v1beta1.json | 16 +- .../apiv1/Client/CancelOperation/main.go | 5 + .../apiv1/Client/CreateCertificate/main.go | 5 + .../apiv1/Client/CreateCertificateMap/main.go | 5 + .../Client/CreateCertificateMapEntry/main.go | 5 + .../Client/CreateDnsAuthorization/main.go | 5 + .../apiv1/Client/DeleteCertificate/main.go | 5 + .../apiv1/Client/DeleteCertificateMap/main.go | 5 + .../Client/DeleteCertificateMapEntry/main.go | 5 + .../Client/DeleteDnsAuthorization/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../apiv1/Client/GetCertificate/main.go | 5 + .../apiv1/Client/GetCertificateMap/main.go | 5 + .../Client/GetCertificateMapEntry/main.go | 5 + .../apiv1/Client/GetDnsAuthorization/main.go | 5 + .../apiv1/Client/GetLocation/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../Client/ListCertificateMapEntries/main.go | 5 + .../apiv1/Client/ListCertificateMaps/main.go | 5 + .../apiv1/Client/ListCertificates/main.go | 5 + .../Client/ListDnsAuthorizations/main.go | 5 + .../apiv1/Client/ListLocations/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../apiv1/Client/UpdateCertificate/main.go | 5 + .../apiv1/Client/UpdateCertificateMap/main.go | 5 + .../Client/UpdateCertificateMapEntry/main.go | 5 + .../Client/UpdateDnsAuthorization/main.go | 5 + ...ta.google.cloud.certificatemanager.v1.json | 52 +- .../ActivateEntitlement/main.go | 5 + .../CancelEntitlement/main.go | 5 + .../CancelOperation/main.go | 5 + .../CloudChannelClient/ChangeOffer/main.go | 5 + .../ChangeParameters/main.go | 5 + .../ChangeRenewalSettings/main.go | 5 + .../CheckCloudIdentityAccountsExist/main.go | 5 + .../CreateChannelPartnerLink/main.go | 5 + .../main.go | 5 + .../CloudChannelClient/CreateCustomer/main.go | 5 + .../CreateCustomerRepricingConfig/main.go | 5 + .../CreateEntitlement/main.go | 5 + .../main.go | 5 + .../CloudChannelClient/DeleteCustomer/main.go | 5 + .../DeleteCustomerRepricingConfig/main.go | 5 + .../DeleteOperation/main.go | 5 + .../GetChannelPartnerLink/main.go | 5 + .../GetChannelPartnerRepricingConfig/main.go | 5 + .../CloudChannelClient/GetCustomer/main.go | 5 + .../GetCustomerRepricingConfig/main.go | 5 + .../CloudChannelClient/GetEntitlement/main.go | 5 + .../CloudChannelClient/GetOperation/main.go | 5 + .../CloudChannelClient/ImportCustomer/main.go | 5 + .../ListChannelPartnerLinks/main.go | 5 + .../main.go | 5 + .../ListCustomerRepricingConfigs/main.go | 5 + .../CloudChannelClient/ListCustomers/main.go | 5 + .../ListEntitlements/main.go | 5 + .../CloudChannelClient/ListOffers/main.go | 5 + .../CloudChannelClient/ListOperations/main.go | 5 + .../CloudChannelClient/ListProducts/main.go | 5 + .../ListPurchasableOffers/main.go | 5 + .../ListPurchasableSkus/main.go | 5 + .../apiv1/CloudChannelClient/ListSkus/main.go | 5 + .../ListSubscribers/main.go | 5 + .../ListTransferableOffers/main.go | 5 + .../ListTransferableSkus/main.go | 5 + .../CloudChannelClient/LookupOffer/main.go | 5 + .../ProvisionCloudIdentity/main.go | 5 + .../RegisterSubscriber/main.go | 5 + .../StartPaidService/main.go | 5 + .../SuspendEntitlement/main.go | 5 + .../TransferEntitlements/main.go | 5 + .../TransferEntitlementsToGoogle/main.go | 5 + .../UnregisterSubscriber/main.go | 5 + .../UpdateChannelPartnerLink/main.go | 5 + .../main.go | 5 + .../CloudChannelClient/UpdateCustomer/main.go | 5 + .../UpdateCustomerRepricingConfig/main.go | 5 + ...ppet_metadata.google.cloud.channel.v1.json | 98 +- .../apiv1/v2/Client/ApproveBuild/main.go | 5 + .../apiv1/v2/Client/CancelBuild/main.go | 5 + .../apiv1/v2/Client/CreateBuild/main.go | 5 + .../v2/Client/CreateBuildTrigger/main.go | 5 + .../apiv1/v2/Client/CreateWorkerPool/main.go | 5 + .../v2/Client/DeleteBuildTrigger/main.go | 5 + .../apiv1/v2/Client/DeleteWorkerPool/main.go | 5 + .../apiv1/v2/Client/GetBuild/main.go | 5 + .../apiv1/v2/Client/GetBuildTrigger/main.go | 5 + .../apiv1/v2/Client/GetWorkerPool/main.go | 5 + .../apiv1/v2/Client/ListBuildTriggers/main.go | 5 + .../apiv1/v2/Client/ListBuilds/main.go | 5 + .../apiv1/v2/Client/ListWorkerPools/main.go | 5 + .../v2/Client/ReceiveTriggerWebhook/main.go | 5 + .../apiv1/v2/Client/RetryBuild/main.go | 5 + .../apiv1/v2/Client/RunBuildTrigger/main.go | 5 + .../v2/Client/UpdateBuildTrigger/main.go | 5 + .../apiv1/v2/Client/UpdateWorkerPool/main.go | 5 + ...etadata.google.devtools.cloudbuild.v1.json | 36 +- .../CreateConnectionProfile/main.go | 5 + .../CreateMigrationJob/main.go | 5 + .../DeleteConnectionProfile/main.go | 5 + .../DeleteMigrationJob/main.go | 5 + .../GenerateSshScript/main.go | 5 + .../GetConnectionProfile/main.go | 5 + .../GetMigrationJob/main.go | 5 + .../ListConnectionProfiles/main.go | 5 + .../ListMigrationJobs/main.go | 5 + .../PromoteMigrationJob/main.go | 5 + .../RestartMigrationJob/main.go | 5 + .../ResumeMigrationJob/main.go | 5 + .../StartMigrationJob/main.go | 5 + .../StopMigrationJob/main.go | 5 + .../UpdateConnectionProfile/main.go | 5 + .../UpdateMigrationJob/main.go | 5 + .../VerifyMigrationJob/main.go | 5 + ...pet_metadata.google.cloud.clouddms.v1.json | 34 +- .../apiv2/Client/CreateQueue/main.go | 5 + .../apiv2/Client/CreateTask/main.go | 5 + .../apiv2/Client/DeleteQueue/main.go | 5 + .../apiv2/Client/DeleteTask/main.go | 5 + .../apiv2/Client/GetIamPolicy/main.go | 5 + .../cloudtasks/apiv2/Client/GetQueue/main.go | 5 + .../cloudtasks/apiv2/Client/GetTask/main.go | 5 + .../apiv2/Client/ListQueues/main.go | 5 + .../cloudtasks/apiv2/Client/ListTasks/main.go | 5 + .../apiv2/Client/PauseQueue/main.go | 5 + .../apiv2/Client/PurgeQueue/main.go | 5 + .../apiv2/Client/ResumeQueue/main.go | 5 + .../cloudtasks/apiv2/Client/RunTask/main.go | 5 + .../apiv2/Client/SetIamPolicy/main.go | 5 + .../apiv2/Client/TestIamPermissions/main.go | 5 + .../apiv2/Client/UpdateQueue/main.go | 5 + ...nippet_metadata.google.cloud.tasks.v2.json | 32 +- .../apiv2beta2/Client/AcknowledgeTask/main.go | 5 + .../apiv2beta2/Client/CancelLease/main.go | 5 + .../apiv2beta2/Client/CreateQueue/main.go | 5 + .../apiv2beta2/Client/CreateTask/main.go | 5 + .../apiv2beta2/Client/DeleteQueue/main.go | 5 + .../apiv2beta2/Client/DeleteTask/main.go | 5 + .../apiv2beta2/Client/GetIamPolicy/main.go | 5 + .../apiv2beta2/Client/GetQueue/main.go | 5 + .../apiv2beta2/Client/GetTask/main.go | 5 + .../apiv2beta2/Client/LeaseTasks/main.go | 5 + .../apiv2beta2/Client/ListQueues/main.go | 5 + .../apiv2beta2/Client/ListTasks/main.go | 5 + .../apiv2beta2/Client/PauseQueue/main.go | 5 + .../apiv2beta2/Client/PurgeQueue/main.go | 5 + .../apiv2beta2/Client/RenewLease/main.go | 5 + .../apiv2beta2/Client/ResumeQueue/main.go | 5 + .../apiv2beta2/Client/RunTask/main.go | 5 + .../apiv2beta2/Client/SetIamPolicy/main.go | 5 + .../Client/TestIamPermissions/main.go | 5 + .../apiv2beta2/Client/UpdateQueue/main.go | 5 + ...t_metadata.google.cloud.tasks.v2beta2.json | 40 +- .../apiv2beta3/Client/CreateQueue/main.go | 5 + .../apiv2beta3/Client/CreateTask/main.go | 5 + .../apiv2beta3/Client/DeleteQueue/main.go | 5 + .../apiv2beta3/Client/DeleteTask/main.go | 5 + .../apiv2beta3/Client/GetIamPolicy/main.go | 5 + .../apiv2beta3/Client/GetQueue/main.go | 5 + .../apiv2beta3/Client/GetTask/main.go | 5 + .../apiv2beta3/Client/ListQueues/main.go | 5 + .../apiv2beta3/Client/ListTasks/main.go | 5 + .../apiv2beta3/Client/PauseQueue/main.go | 5 + .../apiv2beta3/Client/PurgeQueue/main.go | 5 + .../apiv2beta3/Client/ResumeQueue/main.go | 5 + .../apiv2beta3/Client/RunTask/main.go | 5 + .../apiv2beta3/Client/SetIamPolicy/main.go | 5 + .../Client/TestIamPermissions/main.go | 5 + .../apiv2beta3/Client/UpdateQueue/main.go | 5 + ...t_metadata.google.cloud.tasks.v2beta3.json | 32 +- .../AggregatedList/main.go | 5 + .../apiv1/AcceleratorTypesClient/Get/main.go | 5 + .../apiv1/AcceleratorTypesClient/List/main.go | 5 + .../AddressesClient/AggregatedList/main.go | 5 + .../apiv1/AddressesClient/Delete/main.go | 5 + .../compute/apiv1/AddressesClient/Get/main.go | 5 + .../apiv1/AddressesClient/Insert/main.go | 5 + .../apiv1/AddressesClient/List/main.go | 5 + .../AutoscalersClient/AggregatedList/main.go | 5 + .../apiv1/AutoscalersClient/Delete/main.go | 5 + .../apiv1/AutoscalersClient/Get/main.go | 5 + .../apiv1/AutoscalersClient/Insert/main.go | 5 + .../apiv1/AutoscalersClient/List/main.go | 5 + .../apiv1/AutoscalersClient/Patch/main.go | 5 + .../apiv1/AutoscalersClient/Update/main.go | 5 + .../AddSignedUrlKey/main.go | 5 + .../apiv1/BackendBucketsClient/Delete/main.go | 5 + .../DeleteSignedUrlKey/main.go | 5 + .../apiv1/BackendBucketsClient/Get/main.go | 5 + .../apiv1/BackendBucketsClient/Insert/main.go | 5 + .../apiv1/BackendBucketsClient/List/main.go | 5 + .../apiv1/BackendBucketsClient/Patch/main.go | 5 + .../SetEdgeSecurityPolicy/main.go | 5 + .../apiv1/BackendBucketsClient/Update/main.go | 5 + .../AddSignedUrlKey/main.go | 5 + .../AggregatedList/main.go | 5 + .../BackendServicesClient/Delete/main.go | 5 + .../DeleteSignedUrlKey/main.go | 5 + .../apiv1/BackendServicesClient/Get/main.go | 5 + .../BackendServicesClient/GetHealth/main.go | 5 + .../BackendServicesClient/Insert/main.go | 5 + .../apiv1/BackendServicesClient/List/main.go | 5 + .../apiv1/BackendServicesClient/Patch/main.go | 5 + .../SetEdgeSecurityPolicy/main.go | 5 + .../SetSecurityPolicy/main.go | 5 + .../BackendServicesClient/Update/main.go | 5 + .../DiskTypesClient/AggregatedList/main.go | 5 + .../compute/apiv1/DiskTypesClient/Get/main.go | 5 + .../apiv1/DiskTypesClient/List/main.go | 5 + .../DisksClient/AddResourcePolicies/main.go | 5 + .../apiv1/DisksClient/AggregatedList/main.go | 5 + .../apiv1/DisksClient/CreateSnapshot/main.go | 5 + .../compute/apiv1/DisksClient/Delete/main.go | 5 + .../compute/apiv1/DisksClient/Get/main.go | 5 + .../apiv1/DisksClient/GetIamPolicy/main.go | 5 + .../compute/apiv1/DisksClient/Insert/main.go | 5 + .../compute/apiv1/DisksClient/List/main.go | 5 + .../RemoveResourcePolicies/main.go | 5 + .../compute/apiv1/DisksClient/Resize/main.go | 5 + .../apiv1/DisksClient/SetIamPolicy/main.go | 5 + .../apiv1/DisksClient/SetLabels/main.go | 5 + .../DisksClient/TestIamPermissions/main.go | 5 + .../ExternalVpnGatewaysClient/Delete/main.go | 5 + .../ExternalVpnGatewaysClient/Get/main.go | 5 + .../ExternalVpnGatewaysClient/Insert/main.go | 5 + .../ExternalVpnGatewaysClient/List/main.go | 5 + .../SetLabels/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../AddAssociation/main.go | 5 + .../FirewallPoliciesClient/AddRule/main.go | 5 + .../FirewallPoliciesClient/CloneRules/main.go | 5 + .../FirewallPoliciesClient/Delete/main.go | 5 + .../apiv1/FirewallPoliciesClient/Get/main.go | 5 + .../GetAssociation/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../FirewallPoliciesClient/GetRule/main.go | 5 + .../FirewallPoliciesClient/Insert/main.go | 5 + .../apiv1/FirewallPoliciesClient/List/main.go | 5 + .../ListAssociations/main.go | 5 + .../apiv1/FirewallPoliciesClient/Move/main.go | 5 + .../FirewallPoliciesClient/Patch/main.go | 5 + .../FirewallPoliciesClient/PatchRule/main.go | 5 + .../RemoveAssociation/main.go | 5 + .../FirewallPoliciesClient/RemoveRule/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../apiv1/FirewallsClient/Delete/main.go | 5 + .../compute/apiv1/FirewallsClient/Get/main.go | 5 + .../apiv1/FirewallsClient/Insert/main.go | 5 + .../apiv1/FirewallsClient/List/main.go | 5 + .../apiv1/FirewallsClient/Patch/main.go | 5 + .../apiv1/FirewallsClient/Update/main.go | 5 + .../AggregatedList/main.go | 5 + .../ForwardingRulesClient/Delete/main.go | 5 + .../apiv1/ForwardingRulesClient/Get/main.go | 5 + .../ForwardingRulesClient/Insert/main.go | 5 + .../apiv1/ForwardingRulesClient/List/main.go | 5 + .../apiv1/ForwardingRulesClient/Patch/main.go | 5 + .../ForwardingRulesClient/SetLabels/main.go | 5 + .../ForwardingRulesClient/SetTarget/main.go | 5 + .../GlobalAddressesClient/Delete/main.go | 5 + .../apiv1/GlobalAddressesClient/Get/main.go | 5 + .../GlobalAddressesClient/Insert/main.go | 5 + .../apiv1/GlobalAddressesClient/List/main.go | 5 + .../Delete/main.go | 5 + .../GlobalForwardingRulesClient/Get/main.go | 5 + .../Insert/main.go | 5 + .../GlobalForwardingRulesClient/List/main.go | 5 + .../GlobalForwardingRulesClient/Patch/main.go | 5 + .../SetLabels/main.go | 5 + .../SetTarget/main.go | 5 + .../AttachNetworkEndpoints/main.go | 5 + .../Delete/main.go | 5 + .../DetachNetworkEndpoints/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../ListNetworkEndpoints/main.go | 5 + .../AggregatedList/main.go | 5 + .../GlobalOperationsClient/Delete/main.go | 5 + .../apiv1/GlobalOperationsClient/Get/main.go | 5 + .../apiv1/GlobalOperationsClient/List/main.go | 5 + .../apiv1/GlobalOperationsClient/Wait/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../List/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../Patch/main.go | 5 + .../HealthChecksClient/AggregatedList/main.go | 5 + .../apiv1/HealthChecksClient/Delete/main.go | 5 + .../apiv1/HealthChecksClient/Get/main.go | 5 + .../apiv1/HealthChecksClient/Insert/main.go | 5 + .../apiv1/HealthChecksClient/List/main.go | 5 + .../apiv1/HealthChecksClient/Patch/main.go | 5 + .../apiv1/HealthChecksClient/Update/main.go | 5 + .../apiv1/ImageFamilyViewsClient/Get/main.go | 5 + .../compute/apiv1/ImagesClient/Delete/main.go | 5 + .../apiv1/ImagesClient/Deprecate/main.go | 5 + .../compute/apiv1/ImagesClient/Get/main.go | 5 + .../apiv1/ImagesClient/GetFromFamily/main.go | 5 + .../apiv1/ImagesClient/GetIamPolicy/main.go | 5 + .../compute/apiv1/ImagesClient/Insert/main.go | 5 + .../compute/apiv1/ImagesClient/List/main.go | 5 + .../compute/apiv1/ImagesClient/Patch/main.go | 5 + .../apiv1/ImagesClient/SetIamPolicy/main.go | 5 + .../apiv1/ImagesClient/SetLabels/main.go | 5 + .../ImagesClient/TestIamPermissions/main.go | 5 + .../AbandonInstances/main.go | 5 + .../AggregatedList/main.go | 5 + .../ApplyUpdatesToInstances/main.go | 5 + .../CreateInstances/main.go | 5 + .../Delete/main.go | 5 + .../DeleteInstances/main.go | 5 + .../DeletePerInstanceConfigs/main.go | 5 + .../InstanceGroupManagersClient/Get/main.go | 5 + .../Insert/main.go | 5 + .../InstanceGroupManagersClient/List/main.go | 5 + .../ListErrors/main.go | 5 + .../ListManagedInstances/main.go | 5 + .../ListPerInstanceConfigs/main.go | 5 + .../InstanceGroupManagersClient/Patch/main.go | 5 + .../PatchPerInstanceConfigs/main.go | 5 + .../RecreateInstances/main.go | 5 + .../Resize/main.go | 5 + .../SetInstanceTemplate/main.go | 5 + .../SetTargetPools/main.go | 5 + .../UpdatePerInstanceConfigs/main.go | 5 + .../InstanceGroupsClient/AddInstances/main.go | 5 + .../AggregatedList/main.go | 5 + .../apiv1/InstanceGroupsClient/Delete/main.go | 5 + .../apiv1/InstanceGroupsClient/Get/main.go | 5 + .../apiv1/InstanceGroupsClient/Insert/main.go | 5 + .../apiv1/InstanceGroupsClient/List/main.go | 5 + .../ListInstances/main.go | 5 + .../RemoveInstances/main.go | 5 + .../SetNamedPorts/main.go | 5 + .../InstanceTemplatesClient/Delete/main.go | 5 + .../apiv1/InstanceTemplatesClient/Get/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../InstanceTemplatesClient/Insert/main.go | 5 + .../InstanceTemplatesClient/List/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../InstancesClient/AddAccessConfig/main.go | 5 + .../AddResourcePolicies/main.go | 5 + .../InstancesClient/AggregatedList/main.go | 5 + .../apiv1/InstancesClient/AttachDisk/main.go | 5 + .../apiv1/InstancesClient/BulkInsert/main.go | 5 + .../apiv1/InstancesClient/Delete/main.go | 5 + .../DeleteAccessConfig/main.go | 5 + .../apiv1/InstancesClient/DetachDisk/main.go | 5 + .../compute/apiv1/InstancesClient/Get/main.go | 5 + .../GetEffectiveFirewalls/main.go | 5 + .../GetGuestAttributes/main.go | 5 + .../InstancesClient/GetIamPolicy/main.go | 5 + .../InstancesClient/GetScreenshot/main.go | 5 + .../GetSerialPortOutput/main.go | 5 + .../GetShieldedInstanceIdentity/main.go | 5 + .../apiv1/InstancesClient/Insert/main.go | 5 + .../apiv1/InstancesClient/List/main.go | 5 + .../InstancesClient/ListReferrers/main.go | 5 + .../RemoveResourcePolicies/main.go | 5 + .../apiv1/InstancesClient/Reset/main.go | 5 + .../apiv1/InstancesClient/Resume/main.go | 5 + .../SendDiagnosticInterrupt/main.go | 5 + .../SetDeletionProtection/main.go | 5 + .../InstancesClient/SetDiskAutoDelete/main.go | 5 + .../InstancesClient/SetIamPolicy/main.go | 5 + .../apiv1/InstancesClient/SetLabels/main.go | 5 + .../SetMachineResources/main.go | 5 + .../InstancesClient/SetMachineType/main.go | 5 + .../apiv1/InstancesClient/SetMetadata/main.go | 5 + .../InstancesClient/SetMinCpuPlatform/main.go | 5 + .../InstancesClient/SetScheduling/main.go | 5 + .../InstancesClient/SetServiceAccount/main.go | 5 + .../main.go | 5 + .../apiv1/InstancesClient/SetTags/main.go | 5 + .../SimulateMaintenanceEvent/main.go | 5 + .../apiv1/InstancesClient/Start/main.go | 5 + .../StartWithEncryptionKey/main.go | 5 + .../apiv1/InstancesClient/Stop/main.go | 5 + .../apiv1/InstancesClient/Suspend/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../apiv1/InstancesClient/Update/main.go | 5 + .../UpdateAccessConfig/main.go | 5 + .../UpdateDisplayDevice/main.go | 5 + .../UpdateNetworkInterface/main.go | 5 + .../UpdateShieldedInstanceConfig/main.go | 5 + .../AggregatedList/main.go | 5 + .../Delete/main.go | 5 + .../InterconnectAttachmentsClient/Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../Patch/main.go | 5 + .../InterconnectLocationsClient/Get/main.go | 5 + .../InterconnectLocationsClient/List/main.go | 5 + .../apiv1/InterconnectsClient/Delete/main.go | 5 + .../apiv1/InterconnectsClient/Get/main.go | 5 + .../GetDiagnostics/main.go | 5 + .../apiv1/InterconnectsClient/Insert/main.go | 5 + .../apiv1/InterconnectsClient/List/main.go | 5 + .../apiv1/InterconnectsClient/Patch/main.go | 5 + .../apiv1/LicenseCodesClient/Get/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../apiv1/LicensesClient/Delete/main.go | 5 + .../compute/apiv1/LicensesClient/Get/main.go | 5 + .../apiv1/LicensesClient/GetIamPolicy/main.go | 5 + .../apiv1/LicensesClient/Insert/main.go | 5 + .../compute/apiv1/LicensesClient/List/main.go | 5 + .../apiv1/LicensesClient/SetIamPolicy/main.go | 5 + .../LicensesClient/TestIamPermissions/main.go | 5 + .../apiv1/MachineImagesClient/Delete/main.go | 5 + .../apiv1/MachineImagesClient/Get/main.go | 5 + .../MachineImagesClient/GetIamPolicy/main.go | 5 + .../apiv1/MachineImagesClient/Insert/main.go | 5 + .../apiv1/MachineImagesClient/List/main.go | 5 + .../MachineImagesClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../MachineTypesClient/AggregatedList/main.go | 5 + .../apiv1/MachineTypesClient/Get/main.go | 5 + .../apiv1/MachineTypesClient/List/main.go | 5 + .../AggregatedList/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../Patch/main.go | 5 + .../AggregatedList/main.go | 5 + .../AttachNetworkEndpoints/main.go | 5 + .../Delete/main.go | 5 + .../DetachNetworkEndpoints/main.go | 5 + .../NetworkEndpointGroupsClient/Get/main.go | 5 + .../Insert/main.go | 5 + .../NetworkEndpointGroupsClient/List/main.go | 5 + .../ListNetworkEndpoints/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../AddAssociation/main.go | 5 + .../AddRule/main.go | 5 + .../CloneRules/main.go | 5 + .../Delete/main.go | 5 + .../NetworkFirewallPoliciesClient/Get/main.go | 5 + .../GetAssociation/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../GetRule/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../Patch/main.go | 5 + .../PatchRule/main.go | 5 + .../RemoveAssociation/main.go | 5 + .../RemoveRule/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../apiv1/NetworksClient/AddPeering/main.go | 5 + .../apiv1/NetworksClient/Delete/main.go | 5 + .../compute/apiv1/NetworksClient/Get/main.go | 5 + .../GetEffectiveFirewalls/main.go | 5 + .../apiv1/NetworksClient/Insert/main.go | 5 + .../compute/apiv1/NetworksClient/List/main.go | 5 + .../NetworksClient/ListPeeringRoutes/main.go | 5 + .../apiv1/NetworksClient/Patch/main.go | 5 + .../NetworksClient/RemovePeering/main.go | 5 + .../NetworksClient/SwitchToCustomMode/main.go | 5 + .../NetworksClient/UpdatePeering/main.go | 5 + .../apiv1/NodeGroupsClient/AddNodes/main.go | 5 + .../NodeGroupsClient/AggregatedList/main.go | 5 + .../apiv1/NodeGroupsClient/Delete/main.go | 5 + .../NodeGroupsClient/DeleteNodes/main.go | 5 + .../apiv1/NodeGroupsClient/Get/main.go | 5 + .../NodeGroupsClient/GetIamPolicy/main.go | 5 + .../apiv1/NodeGroupsClient/Insert/main.go | 5 + .../apiv1/NodeGroupsClient/List/main.go | 5 + .../apiv1/NodeGroupsClient/ListNodes/main.go | 5 + .../apiv1/NodeGroupsClient/Patch/main.go | 5 + .../NodeGroupsClient/SetIamPolicy/main.go | 5 + .../NodeGroupsClient/SetNodeTemplate/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../AggregatedList/main.go | 5 + .../apiv1/NodeTemplatesClient/Delete/main.go | 5 + .../apiv1/NodeTemplatesClient/Get/main.go | 5 + .../NodeTemplatesClient/GetIamPolicy/main.go | 5 + .../apiv1/NodeTemplatesClient/Insert/main.go | 5 + .../apiv1/NodeTemplatesClient/List/main.go | 5 + .../NodeTemplatesClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../NodeTypesClient/AggregatedList/main.go | 5 + .../compute/apiv1/NodeTypesClient/Get/main.go | 5 + .../apiv1/NodeTypesClient/List/main.go | 5 + .../AggregatedList/main.go | 5 + .../PacketMirroringsClient/Delete/main.go | 5 + .../apiv1/PacketMirroringsClient/Get/main.go | 5 + .../PacketMirroringsClient/Insert/main.go | 5 + .../apiv1/PacketMirroringsClient/List/main.go | 5 + .../PacketMirroringsClient/Patch/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../ProjectsClient/DisableXpnHost/main.go | 5 + .../ProjectsClient/DisableXpnResource/main.go | 5 + .../ProjectsClient/EnableXpnHost/main.go | 5 + .../ProjectsClient/EnableXpnResource/main.go | 5 + .../compute/apiv1/ProjectsClient/Get/main.go | 5 + .../apiv1/ProjectsClient/GetXpnHost/main.go | 5 + .../ProjectsClient/GetXpnResources/main.go | 5 + .../apiv1/ProjectsClient/ListXpnHosts/main.go | 5 + .../apiv1/ProjectsClient/MoveDisk/main.go | 5 + .../apiv1/ProjectsClient/MoveInstance/main.go | 5 + .../SetCommonInstanceMetadata/main.go | 5 + .../SetDefaultNetworkTier/main.go | 5 + .../SetUsageExportBucket/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../Patch/main.go | 5 + .../AggregatedList/main.go | 5 + .../Delete/main.go | 5 + .../PublicDelegatedPrefixesClient/Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../Patch/main.go | 5 + .../RegionAutoscalersClient/Delete/main.go | 5 + .../apiv1/RegionAutoscalersClient/Get/main.go | 5 + .../RegionAutoscalersClient/Insert/main.go | 5 + .../RegionAutoscalersClient/List/main.go | 5 + .../RegionAutoscalersClient/Patch/main.go | 5 + .../RegionAutoscalersClient/Update/main.go | 5 + .../Delete/main.go | 5 + .../RegionBackendServicesClient/Get/main.go | 5 + .../GetHealth/main.go | 5 + .../Insert/main.go | 5 + .../RegionBackendServicesClient/List/main.go | 5 + .../RegionBackendServicesClient/Patch/main.go | 5 + .../Update/main.go | 5 + .../AggregatedList/main.go | 5 + .../apiv1/RegionCommitmentsClient/Get/main.go | 5 + .../RegionCommitmentsClient/Insert/main.go | 5 + .../RegionCommitmentsClient/List/main.go | 5 + .../RegionCommitmentsClient/Update/main.go | 5 + .../apiv1/RegionDiskTypesClient/Get/main.go | 5 + .../apiv1/RegionDiskTypesClient/List/main.go | 5 + .../AddResourcePolicies/main.go | 5 + .../RegionDisksClient/CreateSnapshot/main.go | 5 + .../apiv1/RegionDisksClient/Delete/main.go | 5 + .../apiv1/RegionDisksClient/Get/main.go | 5 + .../RegionDisksClient/GetIamPolicy/main.go | 5 + .../apiv1/RegionDisksClient/Insert/main.go | 5 + .../apiv1/RegionDisksClient/List/main.go | 5 + .../RemoveResourcePolicies/main.go | 5 + .../apiv1/RegionDisksClient/Resize/main.go | 5 + .../RegionDisksClient/SetIamPolicy/main.go | 5 + .../apiv1/RegionDisksClient/SetLabels/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../Patch/main.go | 5 + .../RegionHealthChecksClient/Delete/main.go | 5 + .../RegionHealthChecksClient/Get/main.go | 5 + .../RegionHealthChecksClient/Insert/main.go | 5 + .../RegionHealthChecksClient/List/main.go | 5 + .../RegionHealthChecksClient/Patch/main.go | 5 + .../RegionHealthChecksClient/Update/main.go | 5 + .../AbandonInstances/main.go | 5 + .../ApplyUpdatesToInstances/main.go | 5 + .../CreateInstances/main.go | 5 + .../Delete/main.go | 5 + .../DeleteInstances/main.go | 5 + .../DeletePerInstanceConfigs/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../ListErrors/main.go | 5 + .../ListManagedInstances/main.go | 5 + .../ListPerInstanceConfigs/main.go | 5 + .../Patch/main.go | 5 + .../PatchPerInstanceConfigs/main.go | 5 + .../RecreateInstances/main.go | 5 + .../Resize/main.go | 5 + .../SetInstanceTemplate/main.go | 5 + .../SetTargetPools/main.go | 5 + .../UpdatePerInstanceConfigs/main.go | 5 + .../RegionInstanceGroupsClient/Get/main.go | 5 + .../RegionInstanceGroupsClient/List/main.go | 5 + .../ListInstances/main.go | 5 + .../SetNamedPorts/main.go | 5 + .../RegionInstancesClient/BulkInsert/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../AddAssociation/main.go | 5 + .../AddRule/main.go | 5 + .../CloneRules/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../GetAssociation/main.go | 5 + .../GetEffectiveFirewalls/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../GetRule/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../Patch/main.go | 5 + .../PatchRule/main.go | 5 + .../RemoveAssociation/main.go | 5 + .../RemoveRule/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../RegionOperationsClient/Delete/main.go | 5 + .../apiv1/RegionOperationsClient/Get/main.go | 5 + .../apiv1/RegionOperationsClient/List/main.go | 5 + .../apiv1/RegionOperationsClient/Wait/main.go | 5 + .../Delete/main.go | 5 + .../RegionSecurityPoliciesClient/Get/main.go | 5 + .../Insert/main.go | 5 + .../RegionSecurityPoliciesClient/List/main.go | 5 + .../Patch/main.go | 5 + .../Delete/main.go | 5 + .../RegionSslCertificatesClient/Get/main.go | 5 + .../Insert/main.go | 5 + .../RegionSslCertificatesClient/List/main.go | 5 + .../Delete/main.go | 5 + .../RegionTargetHttpProxiesClient/Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../SetUrlMap/main.go | 5 + .../Delete/main.go | 5 + .../Get/main.go | 5 + .../Insert/main.go | 5 + .../List/main.go | 5 + .../Patch/main.go | 5 + .../SetSslCertificates/main.go | 5 + .../SetUrlMap/main.go | 5 + .../apiv1/RegionUrlMapsClient/Delete/main.go | 5 + .../apiv1/RegionUrlMapsClient/Get/main.go | 5 + .../apiv1/RegionUrlMapsClient/Insert/main.go | 5 + .../apiv1/RegionUrlMapsClient/List/main.go | 5 + .../apiv1/RegionUrlMapsClient/Patch/main.go | 5 + .../apiv1/RegionUrlMapsClient/Update/main.go | 5 + .../RegionUrlMapsClient/Validate/main.go | 5 + .../compute/apiv1/RegionsClient/Get/main.go | 5 + .../compute/apiv1/RegionsClient/List/main.go | 5 + .../ReservationsClient/AggregatedList/main.go | 5 + .../apiv1/ReservationsClient/Delete/main.go | 5 + .../apiv1/ReservationsClient/Get/main.go | 5 + .../ReservationsClient/GetIamPolicy/main.go | 5 + .../apiv1/ReservationsClient/Insert/main.go | 5 + .../apiv1/ReservationsClient/List/main.go | 5 + .../apiv1/ReservationsClient/Resize/main.go | 5 + .../ReservationsClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../apiv1/ReservationsClient/Update/main.go | 5 + .../AggregatedList/main.go | 5 + .../ResourcePoliciesClient/Delete/main.go | 5 + .../apiv1/ResourcePoliciesClient/Get/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../ResourcePoliciesClient/Insert/main.go | 5 + .../apiv1/ResourcePoliciesClient/List/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../RoutersClient/AggregatedList/main.go | 5 + .../apiv1/RoutersClient/Delete/main.go | 5 + .../compute/apiv1/RoutersClient/Get/main.go | 5 + .../RoutersClient/GetNatMappingInfo/main.go | 5 + .../RoutersClient/GetRouterStatus/main.go | 5 + .../apiv1/RoutersClient/Insert/main.go | 5 + .../compute/apiv1/RoutersClient/List/main.go | 5 + .../compute/apiv1/RoutersClient/Patch/main.go | 5 + .../apiv1/RoutersClient/Preview/main.go | 5 + .../apiv1/RoutersClient/Update/main.go | 5 + .../compute/apiv1/RoutesClient/Delete/main.go | 5 + .../compute/apiv1/RoutesClient/Get/main.go | 5 + .../compute/apiv1/RoutesClient/Insert/main.go | 5 + .../compute/apiv1/RoutesClient/List/main.go | 5 + .../SecurityPoliciesClient/AddRule/main.go | 5 + .../AggregatedList/main.go | 5 + .../SecurityPoliciesClient/Delete/main.go | 5 + .../apiv1/SecurityPoliciesClient/Get/main.go | 5 + .../SecurityPoliciesClient/GetRule/main.go | 5 + .../SecurityPoliciesClient/Insert/main.go | 5 + .../apiv1/SecurityPoliciesClient/List/main.go | 5 + .../ListPreconfiguredExpressionSets/main.go | 5 + .../SecurityPoliciesClient/Patch/main.go | 5 + .../SecurityPoliciesClient/PatchRule/main.go | 5 + .../SecurityPoliciesClient/RemoveRule/main.go | 5 + .../AggregatedList/main.go | 5 + .../ServiceAttachmentsClient/Delete/main.go | 5 + .../ServiceAttachmentsClient/Get/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../ServiceAttachmentsClient/Insert/main.go | 5 + .../ServiceAttachmentsClient/List/main.go | 5 + .../ServiceAttachmentsClient/Patch/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../apiv1/SnapshotsClient/Delete/main.go | 5 + .../compute/apiv1/SnapshotsClient/Get/main.go | 5 + .../SnapshotsClient/GetIamPolicy/main.go | 5 + .../apiv1/SnapshotsClient/Insert/main.go | 5 + .../apiv1/SnapshotsClient/List/main.go | 5 + .../SnapshotsClient/SetIamPolicy/main.go | 5 + .../apiv1/SnapshotsClient/SetLabels/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../AggregatedList/main.go | 5 + .../SslCertificatesClient/Delete/main.go | 5 + .../apiv1/SslCertificatesClient/Get/main.go | 5 + .../SslCertificatesClient/Insert/main.go | 5 + .../apiv1/SslCertificatesClient/List/main.go | 5 + .../apiv1/SslPoliciesClient/Delete/main.go | 5 + .../apiv1/SslPoliciesClient/Get/main.go | 5 + .../apiv1/SslPoliciesClient/Insert/main.go | 5 + .../apiv1/SslPoliciesClient/List/main.go | 5 + .../ListAvailableFeatures/main.go | 5 + .../apiv1/SslPoliciesClient/Patch/main.go | 5 + .../SubnetworksClient/AggregatedList/main.go | 5 + .../apiv1/SubnetworksClient/Delete/main.go | 5 + .../ExpandIpCidrRange/main.go | 5 + .../apiv1/SubnetworksClient/Get/main.go | 5 + .../SubnetworksClient/GetIamPolicy/main.go | 5 + .../apiv1/SubnetworksClient/Insert/main.go | 5 + .../apiv1/SubnetworksClient/List/main.go | 5 + .../SubnetworksClient/ListUsable/main.go | 5 + .../apiv1/SubnetworksClient/Patch/main.go | 5 + .../SubnetworksClient/SetIamPolicy/main.go | 5 + .../SetPrivateIpGoogleAccess/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../TargetGrpcProxiesClient/Delete/main.go | 5 + .../apiv1/TargetGrpcProxiesClient/Get/main.go | 5 + .../TargetGrpcProxiesClient/Insert/main.go | 5 + .../TargetGrpcProxiesClient/List/main.go | 5 + .../TargetGrpcProxiesClient/Patch/main.go | 5 + .../AggregatedList/main.go | 5 + .../TargetHttpProxiesClient/Delete/main.go | 5 + .../apiv1/TargetHttpProxiesClient/Get/main.go | 5 + .../TargetHttpProxiesClient/Insert/main.go | 5 + .../TargetHttpProxiesClient/List/main.go | 5 + .../TargetHttpProxiesClient/Patch/main.go | 5 + .../TargetHttpProxiesClient/SetUrlMap/main.go | 5 + .../AggregatedList/main.go | 5 + .../TargetHttpsProxiesClient/Delete/main.go | 5 + .../TargetHttpsProxiesClient/Get/main.go | 5 + .../TargetHttpsProxiesClient/Insert/main.go | 5 + .../TargetHttpsProxiesClient/List/main.go | 5 + .../TargetHttpsProxiesClient/Patch/main.go | 5 + .../SetCertificateMap/main.go | 5 + .../SetQuicOverride/main.go | 5 + .../SetSslCertificates/main.go | 5 + .../SetSslPolicy/main.go | 5 + .../SetUrlMap/main.go | 5 + .../AggregatedList/main.go | 5 + .../TargetInstancesClient/Delete/main.go | 5 + .../apiv1/TargetInstancesClient/Get/main.go | 5 + .../TargetInstancesClient/Insert/main.go | 5 + .../apiv1/TargetInstancesClient/List/main.go | 5 + .../TargetPoolsClient/AddHealthCheck/main.go | 5 + .../TargetPoolsClient/AddInstance/main.go | 5 + .../TargetPoolsClient/AggregatedList/main.go | 5 + .../apiv1/TargetPoolsClient/Delete/main.go | 5 + .../apiv1/TargetPoolsClient/Get/main.go | 5 + .../apiv1/TargetPoolsClient/GetHealth/main.go | 5 + .../apiv1/TargetPoolsClient/Insert/main.go | 5 + .../apiv1/TargetPoolsClient/List/main.go | 5 + .../RemoveHealthCheck/main.go | 5 + .../TargetPoolsClient/RemoveInstance/main.go | 5 + .../apiv1/TargetPoolsClient/SetBackup/main.go | 5 + .../TargetSslProxiesClient/Delete/main.go | 5 + .../apiv1/TargetSslProxiesClient/Get/main.go | 5 + .../TargetSslProxiesClient/Insert/main.go | 5 + .../apiv1/TargetSslProxiesClient/List/main.go | 5 + .../SetBackendService/main.go | 5 + .../SetCertificateMap/main.go | 5 + .../SetProxyHeader/main.go | 5 + .../SetSslCertificates/main.go | 5 + .../SetSslPolicy/main.go | 5 + .../TargetTcpProxiesClient/Delete/main.go | 5 + .../apiv1/TargetTcpProxiesClient/Get/main.go | 5 + .../TargetTcpProxiesClient/Insert/main.go | 5 + .../apiv1/TargetTcpProxiesClient/List/main.go | 5 + .../SetBackendService/main.go | 5 + .../SetProxyHeader/main.go | 5 + .../AggregatedList/main.go | 5 + .../TargetVpnGatewaysClient/Delete/main.go | 5 + .../apiv1/TargetVpnGatewaysClient/Get/main.go | 5 + .../TargetVpnGatewaysClient/Insert/main.go | 5 + .../TargetVpnGatewaysClient/List/main.go | 5 + .../UrlMapsClient/AggregatedList/main.go | 5 + .../apiv1/UrlMapsClient/Delete/main.go | 5 + .../compute/apiv1/UrlMapsClient/Get/main.go | 5 + .../apiv1/UrlMapsClient/Insert/main.go | 5 + .../UrlMapsClient/InvalidateCache/main.go | 5 + .../compute/apiv1/UrlMapsClient/List/main.go | 5 + .../compute/apiv1/UrlMapsClient/Patch/main.go | 5 + .../apiv1/UrlMapsClient/Update/main.go | 5 + .../apiv1/UrlMapsClient/Validate/main.go | 5 + .../VpnGatewaysClient/AggregatedList/main.go | 5 + .../apiv1/VpnGatewaysClient/Delete/main.go | 5 + .../apiv1/VpnGatewaysClient/Get/main.go | 5 + .../apiv1/VpnGatewaysClient/GetStatus/main.go | 5 + .../apiv1/VpnGatewaysClient/Insert/main.go | 5 + .../apiv1/VpnGatewaysClient/List/main.go | 5 + .../apiv1/VpnGatewaysClient/SetLabels/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../VpnTunnelsClient/AggregatedList/main.go | 5 + .../apiv1/VpnTunnelsClient/Delete/main.go | 5 + .../apiv1/VpnTunnelsClient/Get/main.go | 5 + .../apiv1/VpnTunnelsClient/Insert/main.go | 5 + .../apiv1/VpnTunnelsClient/List/main.go | 5 + .../apiv1/ZoneOperationsClient/Delete/main.go | 5 + .../apiv1/ZoneOperationsClient/Get/main.go | 5 + .../apiv1/ZoneOperationsClient/List/main.go | 5 + .../apiv1/ZoneOperationsClient/Wait/main.go | 5 + .../compute/apiv1/ZonesClient/Get/main.go | 5 + .../compute/apiv1/ZonesClient/List/main.go | 5 + ...ppet_metadata.google.cloud.compute.v1.json | 1292 ++++++++--------- .../Client/CalculateIssueModelStats/main.go | 5 + .../apiv1/Client/CalculateStats/main.go | 5 + .../apiv1/Client/CancelOperation/main.go | 5 + .../apiv1/Client/CreateAnalysis/main.go | 5 + .../apiv1/Client/CreateConversation/main.go | 5 + .../apiv1/Client/CreateIssueModel/main.go | 5 + .../apiv1/Client/CreatePhraseMatcher/main.go | 5 + .../apiv1/Client/CreateView/main.go | 5 + .../apiv1/Client/DeleteAnalysis/main.go | 5 + .../apiv1/Client/DeleteConversation/main.go | 5 + .../apiv1/Client/DeleteIssueModel/main.go | 5 + .../apiv1/Client/DeletePhraseMatcher/main.go | 5 + .../apiv1/Client/DeleteView/main.go | 5 + .../apiv1/Client/DeployIssueModel/main.go | 5 + .../apiv1/Client/ExportInsightsData/main.go | 5 + .../apiv1/Client/GetAnalysis/main.go | 5 + .../apiv1/Client/GetConversation/main.go | 5 + .../apiv1/Client/GetIssue/main.go | 5 + .../apiv1/Client/GetIssueModel/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../apiv1/Client/GetPhraseMatcher/main.go | 5 + .../apiv1/Client/GetSettings/main.go | 5 + .../apiv1/Client/GetView/main.go | 5 + .../apiv1/Client/ListAnalyses/main.go | 5 + .../apiv1/Client/ListConversations/main.go | 5 + .../apiv1/Client/ListIssueModels/main.go | 5 + .../apiv1/Client/ListIssues/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../apiv1/Client/ListPhraseMatchers/main.go | 5 + .../apiv1/Client/ListViews/main.go | 5 + .../apiv1/Client/UndeployIssueModel/main.go | 5 + .../apiv1/Client/UpdateConversation/main.go | 5 + .../apiv1/Client/UpdateIssue/main.go | 5 + .../apiv1/Client/UpdateIssueModel/main.go | 5 + .../apiv1/Client/UpdatePhraseMatcher/main.go | 5 + .../apiv1/Client/UpdateSettings/main.go | 5 + .../apiv1/Client/UpdateView/main.go | 5 + ...google.cloud.contactcenterinsights.v1.json | 74 +- .../CancelOperation/main.go | 5 + .../CompleteIPRotation/main.go | 5 + .../CompleteNodePoolUpgrade/main.go | 5 + .../CreateCluster/main.go | 5 + .../CreateNodePool/main.go | 5 + .../DeleteCluster/main.go | 5 + .../DeleteNodePool/main.go | 5 + .../ClusterManagerClient/GetCluster/main.go | 5 + .../GetJSONWebKeys/main.go | 5 + .../ClusterManagerClient/GetNodePool/main.go | 5 + .../ClusterManagerClient/GetOperation/main.go | 5 + .../GetServerConfig/main.go | 5 + .../ClusterManagerClient/ListClusters/main.go | 5 + .../ListNodePools/main.go | 5 + .../ListOperations/main.go | 5 + .../ListUsableSubnetworks/main.go | 5 + .../RollbackNodePoolUpgrade/main.go | 5 + .../SetAddonsConfig/main.go | 5 + .../ClusterManagerClient/SetLabels/main.go | 5 + .../SetLegacyAbac/main.go | 5 + .../ClusterManagerClient/SetLocations/main.go | 5 + .../SetLoggingService/main.go | 5 + .../SetMaintenancePolicy/main.go | 5 + .../SetMasterAuth/main.go | 5 + .../SetMonitoringService/main.go | 5 + .../SetNetworkPolicy/main.go | 5 + .../SetNodePoolAutoscaling/main.go | 5 + .../SetNodePoolManagement/main.go | 5 + .../SetNodePoolSize/main.go | 5 + .../StartIPRotation/main.go | 5 + .../UpdateCluster/main.go | 5 + .../ClusterManagerClient/UpdateMaster/main.go | 5 + .../UpdateNodePool/main.go | 5 + .../snippet_metadata.google.container.v1.json | 66 +- .../BatchCreateNotes/main.go | 5 + .../BatchCreateOccurrences/main.go | 5 + .../GrafeasV1Beta1Client/CreateNote/main.go | 5 + .../CreateOccurrence/main.go | 5 + .../GrafeasV1Beta1Client/DeleteNote/main.go | 5 + .../DeleteOccurrence/main.go | 5 + .../GrafeasV1Beta1Client/GetNote/main.go | 5 + .../GetOccurrence/main.go | 5 + .../GetOccurrenceNote/main.go | 5 + .../main.go | 5 + .../ListNoteOccurrences/main.go | 5 + .../GrafeasV1Beta1Client/ListNotes/main.go | 5 + .../ListOccurrences/main.go | 5 + .../GrafeasV1Beta1Client/UpdateNote/main.go | 5 + .../UpdateOccurrence/main.go | 5 + .../snippet_metadata.grafeas.v1beta1.json | 30 +- .../apiv1/Client/CreateEntry/main.go | 5 + .../apiv1/Client/CreateEntryGroup/main.go | 5 + .../apiv1/Client/CreateTag/main.go | 5 + .../apiv1/Client/CreateTagTemplate/main.go | 5 + .../Client/CreateTagTemplateField/main.go | 5 + .../apiv1/Client/DeleteEntry/main.go | 5 + .../apiv1/Client/DeleteEntryGroup/main.go | 5 + .../apiv1/Client/DeleteTag/main.go | 5 + .../apiv1/Client/DeleteTagTemplate/main.go | 5 + .../Client/DeleteTagTemplateField/main.go | 5 + .../datacatalog/apiv1/Client/GetEntry/main.go | 5 + .../apiv1/Client/GetEntryGroup/main.go | 5 + .../apiv1/Client/GetIamPolicy/main.go | 5 + .../apiv1/Client/GetTagTemplate/main.go | 5 + .../apiv1/Client/ListEntries/main.go | 5 + .../apiv1/Client/ListEntryGroups/main.go | 5 + .../datacatalog/apiv1/Client/ListTags/main.go | 5 + .../apiv1/Client/LookupEntry/main.go | 5 + .../apiv1/Client/ModifyEntryContacts/main.go | 5 + .../apiv1/Client/ModifyEntryOverview/main.go | 5 + .../Client/RenameTagTemplateField/main.go | 5 + .../RenameTagTemplateFieldEnumValue/main.go | 5 + .../apiv1/Client/SearchCatalog/main.go | 5 + .../apiv1/Client/SetIamPolicy/main.go | 5 + .../apiv1/Client/StarEntry/main.go | 5 + .../apiv1/Client/TestIamPermissions/main.go | 5 + .../apiv1/Client/UnstarEntry/main.go | 5 + .../apiv1/Client/UpdateEntry/main.go | 5 + .../apiv1/Client/UpdateEntryGroup/main.go | 5 + .../apiv1/Client/UpdateTag/main.go | 5 + .../apiv1/Client/UpdateTagTemplate/main.go | 5 + .../Client/UpdateTagTemplateField/main.go | 5 + .../CreatePolicyTag/main.go | 5 + .../CreateTaxonomy/main.go | 5 + .../DeletePolicyTag/main.go | 5 + .../DeleteTaxonomy/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../GetPolicyTag/main.go | 5 + .../GetTaxonomy/main.go | 5 + .../ListPolicyTags/main.go | 5 + .../ListTaxonomies/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdatePolicyTag/main.go | 5 + .../UpdateTaxonomy/main.go | 5 + .../ExportTaxonomies/main.go | 5 + .../ImportTaxonomies/main.go | 5 + .../ReplaceTaxonomy/main.go | 5 + ..._metadata.google.cloud.datacatalog.v1.json | 96 +- .../apiv1beta1/Client/CreateEntry/main.go | 5 + .../Client/CreateEntryGroup/main.go | 5 + .../apiv1beta1/Client/CreateTag/main.go | 5 + .../Client/CreateTagTemplate/main.go | 5 + .../Client/CreateTagTemplateField/main.go | 5 + .../apiv1beta1/Client/DeleteEntry/main.go | 5 + .../Client/DeleteEntryGroup/main.go | 5 + .../apiv1beta1/Client/DeleteTag/main.go | 5 + .../Client/DeleteTagTemplate/main.go | 5 + .../Client/DeleteTagTemplateField/main.go | 5 + .../apiv1beta1/Client/GetEntry/main.go | 5 + .../apiv1beta1/Client/GetEntryGroup/main.go | 5 + .../apiv1beta1/Client/GetIamPolicy/main.go | 5 + .../apiv1beta1/Client/GetTagTemplate/main.go | 5 + .../apiv1beta1/Client/ListEntries/main.go | 5 + .../apiv1beta1/Client/ListEntryGroups/main.go | 5 + .../apiv1beta1/Client/ListTags/main.go | 5 + .../apiv1beta1/Client/LookupEntry/main.go | 5 + .../Client/RenameTagTemplateField/main.go | 5 + .../apiv1beta1/Client/SearchCatalog/main.go | 5 + .../apiv1beta1/Client/SetIamPolicy/main.go | 5 + .../Client/TestIamPermissions/main.go | 5 + .../apiv1beta1/Client/UpdateEntry/main.go | 5 + .../Client/UpdateEntryGroup/main.go | 5 + .../apiv1beta1/Client/UpdateTag/main.go | 5 + .../Client/UpdateTagTemplate/main.go | 5 + .../Client/UpdateTagTemplateField/main.go | 5 + .../CreatePolicyTag/main.go | 5 + .../CreateTaxonomy/main.go | 5 + .../DeletePolicyTag/main.go | 5 + .../DeleteTaxonomy/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../GetPolicyTag/main.go | 5 + .../GetTaxonomy/main.go | 5 + .../ListPolicyTags/main.go | 5 + .../ListTaxonomies/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdatePolicyTag/main.go | 5 + .../UpdateTaxonomy/main.go | 5 + .../ExportTaxonomies/main.go | 5 + .../ImportTaxonomies/main.go | 5 + ...data.google.cloud.datacatalog.v1beta1.json | 84 +- .../LaunchFlexTemplate/main.go | 5 + .../AggregatedListJobs/main.go | 5 + .../JobsV1Beta3Client/CheckActiveJobs/main.go | 5 + .../JobsV1Beta3Client/CreateJob/main.go | 5 + .../JobsV1Beta3Client/GetJob/main.go | 5 + .../JobsV1Beta3Client/ListJobs/main.go | 5 + .../JobsV1Beta3Client/SnapshotJob/main.go | 5 + .../JobsV1Beta3Client/UpdateJob/main.go | 5 + .../ListJobMessages/main.go | 5 + .../GetJobExecutionDetails/main.go | 5 + .../GetJobMetrics/main.go | 5 + .../GetStageExecutionDetails/main.go | 5 + .../DeleteSnapshot/main.go | 5 + .../GetSnapshot/main.go | 5 + .../ListSnapshots/main.go | 5 + .../CreateJobFromTemplate/main.go | 5 + .../TemplatesClient/GetTemplate/main.go | 5 + .../TemplatesClient/LaunchTemplate/main.go | 5 + ...ppet_metadata.google.dataflow.v1beta3.json | 36 +- .../Client/CancelWorkflowInvocation/main.go | 5 + .../Client/CommitWorkspaceChanges/main.go | 5 + .../Client/CreateCompilationResult/main.go | 5 + .../Client/CreateRepository/main.go | 5 + .../Client/CreateWorkflowInvocation/main.go | 5 + .../Client/CreateWorkspace/main.go | 5 + .../Client/DeleteRepository/main.go | 5 + .../Client/DeleteWorkflowInvocation/main.go | 5 + .../Client/DeleteWorkspace/main.go | 5 + .../apiv1alpha2/Client/FetchFileDiff/main.go | 5 + .../Client/FetchFileGitStatuses/main.go | 5 + .../Client/FetchGitAheadBehind/main.go | 5 + .../Client/FetchRemoteBranches/main.go | 5 + .../Client/GetCompilationResult/main.go | 5 + .../apiv1alpha2/Client/GetIamPolicy/main.go | 5 + .../apiv1alpha2/Client/GetLocation/main.go | 5 + .../apiv1alpha2/Client/GetRepository/main.go | 5 + .../Client/GetWorkflowInvocation/main.go | 5 + .../apiv1alpha2/Client/GetWorkspace/main.go | 5 + .../Client/InstallNpmPackages/main.go | 5 + .../Client/ListCompilationResults/main.go | 5 + .../apiv1alpha2/Client/ListLocations/main.go | 5 + .../Client/ListRepositories/main.go | 5 + .../Client/ListWorkflowInvocations/main.go | 5 + .../apiv1alpha2/Client/ListWorkspaces/main.go | 5 + .../apiv1alpha2/Client/MakeDirectory/main.go | 5 + .../apiv1alpha2/Client/MoveDirectory/main.go | 5 + .../apiv1alpha2/Client/MoveFile/main.go | 5 + .../apiv1alpha2/Client/PullGitCommits/main.go | 5 + .../apiv1alpha2/Client/PushGitCommits/main.go | 5 + .../QueryCompilationResultActions/main.go | 5 + .../Client/QueryDirectoryContents/main.go | 5 + .../QueryWorkflowInvocationActions/main.go | 5 + .../apiv1alpha2/Client/ReadFile/main.go | 5 + .../Client/RemoveDirectory/main.go | 5 + .../apiv1alpha2/Client/RemoveFile/main.go | 5 + .../Client/ResetWorkspaceChanges/main.go | 5 + .../apiv1alpha2/Client/SetIamPolicy/main.go | 5 + .../Client/TestIamPermissions/main.go | 5 + .../Client/UpdateRepository/main.go | 5 + .../apiv1alpha2/Client/WriteFile/main.go | 5 + ...tadata.google.cloud.dataform.v1alpha2.json | 82 +- .../apiv1/Client/CreateInstance/main.go | 5 + .../apiv1/Client/DeleteInstance/main.go | 5 + .../apiv1/Client/GetInstance/main.go | 5 + .../Client/ListAvailableVersions/main.go | 5 + .../apiv1/Client/ListInstances/main.go | 5 + .../apiv1/Client/RestartInstance/main.go | 5 + .../apiv1/Client/UpdateInstance/main.go | 5 + ...t_metadata.google.cloud.datafusion.v1.json | 14 +- .../Client/CreateAnnotationSpecSet/main.go | 5 + .../apiv1beta1/Client/CreateDataset/main.go | 5 + .../Client/CreateEvaluationJob/main.go | 5 + .../Client/CreateInstruction/main.go | 5 + .../Client/DeleteAnnotatedDataset/main.go | 5 + .../Client/DeleteAnnotationSpecSet/main.go | 5 + .../apiv1beta1/Client/DeleteDataset/main.go | 5 + .../Client/DeleteEvaluationJob/main.go | 5 + .../Client/DeleteInstruction/main.go | 5 + .../apiv1beta1/Client/ExportData/main.go | 5 + .../Client/GetAnnotatedDataset/main.go | 5 + .../Client/GetAnnotationSpecSet/main.go | 5 + .../apiv1beta1/Client/GetDataItem/main.go | 5 + .../apiv1beta1/Client/GetDataset/main.go | 5 + .../apiv1beta1/Client/GetEvaluation/main.go | 5 + .../Client/GetEvaluationJob/main.go | 5 + .../apiv1beta1/Client/GetExample/main.go | 5 + .../apiv1beta1/Client/GetInstruction/main.go | 5 + .../apiv1beta1/Client/ImportData/main.go | 5 + .../apiv1beta1/Client/LabelImage/main.go | 5 + .../apiv1beta1/Client/LabelText/main.go | 5 + .../apiv1beta1/Client/LabelVideo/main.go | 5 + .../Client/ListAnnotatedDatasets/main.go | 5 + .../Client/ListAnnotationSpecSets/main.go | 5 + .../apiv1beta1/Client/ListDataItems/main.go | 5 + .../apiv1beta1/Client/ListDatasets/main.go | 5 + .../Client/ListEvaluationJobs/main.go | 5 + .../apiv1beta1/Client/ListExamples/main.go | 5 + .../Client/ListInstructions/main.go | 5 + .../Client/PauseEvaluationJob/main.go | 5 + .../Client/ResumeEvaluationJob/main.go | 5 + .../Client/SearchEvaluations/main.go | 5 + .../Client/SearchExampleComparisons/main.go | 5 + .../Client/UpdateEvaluationJob/main.go | 5 + ...ata.google.cloud.datalabeling.v1beta1.json | 68 +- .../dataplex/apiv1/Client/CancelJob/main.go | 5 + .../apiv1/Client/CancelOperation/main.go | 5 + .../dataplex/apiv1/Client/CreateAsset/main.go | 5 + .../apiv1/Client/CreateEnvironment/main.go | 5 + .../dataplex/apiv1/Client/CreateLake/main.go | 5 + .../dataplex/apiv1/Client/CreateTask/main.go | 5 + .../dataplex/apiv1/Client/CreateZone/main.go | 5 + .../dataplex/apiv1/Client/DeleteAsset/main.go | 5 + .../apiv1/Client/DeleteEnvironment/main.go | 5 + .../dataplex/apiv1/Client/DeleteLake/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../dataplex/apiv1/Client/DeleteTask/main.go | 5 + .../dataplex/apiv1/Client/DeleteZone/main.go | 5 + .../dataplex/apiv1/Client/GetAsset/main.go | 5 + .../apiv1/Client/GetEnvironment/main.go | 5 + .../dataplex/apiv1/Client/GetJob/main.go | 5 + .../dataplex/apiv1/Client/GetLake/main.go | 5 + .../dataplex/apiv1/Client/GetLocation/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../dataplex/apiv1/Client/GetTask/main.go | 5 + .../dataplex/apiv1/Client/GetZone/main.go | 5 + .../apiv1/Client/ListAssetActions/main.go | 5 + .../dataplex/apiv1/Client/ListAssets/main.go | 5 + .../apiv1/Client/ListEnvironments/main.go | 5 + .../dataplex/apiv1/Client/ListJobs/main.go | 5 + .../apiv1/Client/ListLakeActions/main.go | 5 + .../dataplex/apiv1/Client/ListLakes/main.go | 5 + .../apiv1/Client/ListLocations/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../apiv1/Client/ListSessions/main.go | 5 + .../dataplex/apiv1/Client/ListTasks/main.go | 5 + .../apiv1/Client/ListZoneActions/main.go | 5 + .../dataplex/apiv1/Client/ListZones/main.go | 5 + .../dataplex/apiv1/Client/UpdateAsset/main.go | 5 + .../apiv1/Client/UpdateEnvironment/main.go | 5 + .../dataplex/apiv1/Client/UpdateLake/main.go | 5 + .../dataplex/apiv1/Client/UpdateTask/main.go | 5 + .../dataplex/apiv1/Client/UpdateZone/main.go | 5 + .../ContentClient/CancelOperation/main.go | 5 + .../apiv1/ContentClient/CreateContent/main.go | 5 + .../apiv1/ContentClient/DeleteContent/main.go | 5 + .../ContentClient/DeleteOperation/main.go | 5 + .../apiv1/ContentClient/GetContent/main.go | 5 + .../apiv1/ContentClient/GetIamPolicy/main.go | 5 + .../apiv1/ContentClient/GetLocation/main.go | 5 + .../apiv1/ContentClient/GetOperation/main.go | 5 + .../apiv1/ContentClient/ListContent/main.go | 5 + .../apiv1/ContentClient/ListLocations/main.go | 5 + .../ContentClient/ListOperations/main.go | 5 + .../apiv1/ContentClient/SetIamPolicy/main.go | 5 + .../ContentClient/TestIamPermissions/main.go | 5 + .../apiv1/ContentClient/UpdateContent/main.go | 5 + .../MetadataClient/CancelOperation/main.go | 5 + .../apiv1/MetadataClient/CreateEntity/main.go | 5 + .../MetadataClient/CreatePartition/main.go | 5 + .../apiv1/MetadataClient/DeleteEntity/main.go | 5 + .../MetadataClient/DeleteOperation/main.go | 5 + .../MetadataClient/DeletePartition/main.go | 5 + .../apiv1/MetadataClient/GetEntity/main.go | 5 + .../apiv1/MetadataClient/GetLocation/main.go | 5 + .../apiv1/MetadataClient/GetOperation/main.go | 5 + .../apiv1/MetadataClient/GetPartition/main.go | 5 + .../apiv1/MetadataClient/ListEntities/main.go | 5 + .../MetadataClient/ListLocations/main.go | 5 + .../MetadataClient/ListOperations/main.go | 5 + .../MetadataClient/ListPartitions/main.go | 5 + .../apiv1/MetadataClient/UpdateEntity/main.go | 5 + ...pet_metadata.google.cloud.dataplex.v1.json | 134 +- .../CreateAutoscalingPolicy/main.go | 5 + .../DeleteAutoscalingPolicy/main.go | 5 + .../GetAutoscalingPolicy/main.go | 5 + .../ListAutoscalingPolicies/main.go | 5 + .../UpdateAutoscalingPolicy/main.go | 5 + .../BatchControllerClient/CreateBatch/main.go | 5 + .../BatchControllerClient/DeleteBatch/main.go | 5 + .../BatchControllerClient/GetBatch/main.go | 5 + .../BatchControllerClient/ListBatches/main.go | 5 + .../CreateCluster/main.go | 5 + .../DeleteCluster/main.go | 5 + .../DiagnoseCluster/main.go | 5 + .../GetCluster/main.go | 5 + .../ListClusters/main.go | 5 + .../StartCluster/main.go | 5 + .../StopCluster/main.go | 5 + .../UpdateCluster/main.go | 5 + .../JobControllerClient/CancelJob/main.go | 5 + .../JobControllerClient/DeleteJob/main.go | 5 + .../apiv1/JobControllerClient/GetJob/main.go | 5 + .../JobControllerClient/ListJobs/main.go | 5 + .../JobControllerClient/SubmitJob/main.go | 5 + .../SubmitJobAsOperation/main.go | 5 + .../JobControllerClient/UpdateJob/main.go | 5 + .../CreateWorkflowTemplate/main.go | 5 + .../DeleteWorkflowTemplate/main.go | 5 + .../GetWorkflowTemplate/main.go | 5 + .../InstantiateInlineWorkflowTemplate/main.go | 5 + .../InstantiateWorkflowTemplate/main.go | 5 + .../ListWorkflowTemplates/main.go | 5 + .../UpdateWorkflowTemplate/main.go | 5 + ...pet_metadata.google.cloud.dataproc.v1.json | 62 +- .../SuggestQueries/main.go | 5 + .../QuestionClient/CreateQuestion/main.go | 5 + .../QuestionClient/ExecuteQuestion/main.go | 5 + .../QuestionClient/GetQuestion/main.go | 5 + .../QuestionClient/GetUserFeedback/main.go | 5 + .../QuestionClient/UpdateUserFeedback/main.go | 5 + ...metadata.google.cloud.dataqna.v1alpha.json | 12 +- .../CancelOperation/main.go | 5 + .../DatastoreAdminClient/CreateIndex/main.go | 5 + .../DatastoreAdminClient/DeleteIndex/main.go | 5 + .../DeleteOperation/main.go | 5 + .../ExportEntities/main.go | 5 + .../DatastoreAdminClient/GetIndex/main.go | 5 + .../DatastoreAdminClient/GetOperation/main.go | 5 + .../ImportEntities/main.go | 5 + .../DatastoreAdminClient/ListIndexes/main.go | 5 + .../ListOperations/main.go | 5 + ...et_metadata.google.datastore.admin.v1.json | 20 +- .../apiv1/Client/CancelOperation/main.go | 5 + .../Client/CreateConnectionProfile/main.go | 5 + .../Client/CreatePrivateConnection/main.go | 5 + .../apiv1/Client/CreateRoute/main.go | 5 + .../apiv1/Client/CreateStream/main.go | 5 + .../Client/DeleteConnectionProfile/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../Client/DeletePrivateConnection/main.go | 5 + .../apiv1/Client/DeleteRoute/main.go | 5 + .../apiv1/Client/DeleteStream/main.go | 5 + .../Client/DiscoverConnectionProfile/main.go | 5 + .../apiv1/Client/FetchStaticIps/main.go | 5 + .../apiv1/Client/GetConnectionProfile/main.go | 5 + .../apiv1/Client/GetLocation/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../apiv1/Client/GetPrivateConnection/main.go | 5 + .../datastream/apiv1/Client/GetRoute/main.go | 5 + .../datastream/apiv1/Client/GetStream/main.go | 5 + .../apiv1/Client/GetStreamObject/main.go | 5 + .../Client/ListConnectionProfiles/main.go | 5 + .../apiv1/Client/ListLocations/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../Client/ListPrivateConnections/main.go | 5 + .../apiv1/Client/ListRoutes/main.go | 5 + .../apiv1/Client/ListStreamObjects/main.go | 5 + .../apiv1/Client/ListStreams/main.go | 5 + .../apiv1/Client/LookupStreamObject/main.go | 5 + .../apiv1/Client/StartBackfillJob/main.go | 5 + .../apiv1/Client/StopBackfillJob/main.go | 5 + .../Client/UpdateConnectionProfile/main.go | 5 + .../apiv1/Client/UpdateStream/main.go | 5 + ...t_metadata.google.cloud.datastream.v1.json | 64 +- .../Client/CreateConnectionProfile/main.go | 5 + .../Client/CreatePrivateConnection/main.go | 5 + .../apiv1alpha1/Client/CreateRoute/main.go | 5 + .../apiv1alpha1/Client/CreateStream/main.go | 5 + .../Client/DeleteConnectionProfile/main.go | 5 + .../Client/DeletePrivateConnection/main.go | 5 + .../apiv1alpha1/Client/DeleteRoute/main.go | 5 + .../apiv1alpha1/Client/DeleteStream/main.go | 5 + .../Client/DiscoverConnectionProfile/main.go | 5 + .../apiv1alpha1/Client/FetchErrors/main.go | 5 + .../apiv1alpha1/Client/FetchStaticIps/main.go | 5 + .../Client/GetConnectionProfile/main.go | 5 + .../Client/GetPrivateConnection/main.go | 5 + .../apiv1alpha1/Client/GetRoute/main.go | 5 + .../apiv1alpha1/Client/GetStream/main.go | 5 + .../Client/ListConnectionProfiles/main.go | 5 + .../Client/ListPrivateConnections/main.go | 5 + .../apiv1alpha1/Client/ListRoutes/main.go | 5 + .../apiv1alpha1/Client/ListStreams/main.go | 5 + .../Client/UpdateConnectionProfile/main.go | 5 + .../apiv1alpha1/Client/UpdateStream/main.go | 5 + ...data.google.cloud.datastream.v1alpha1.json | 44 +- .../CloudDeployClient/ApproveRollout/main.go | 5 + .../CreateDeliveryPipeline/main.go | 5 + .../CloudDeployClient/CreateRelease/main.go | 5 + .../CloudDeployClient/CreateRollout/main.go | 5 + .../CloudDeployClient/CreateTarget/main.go | 5 + .../DeleteDeliveryPipeline/main.go | 5 + .../CloudDeployClient/DeleteTarget/main.go | 5 + .../apiv1/CloudDeployClient/GetConfig/main.go | 5 + .../GetDeliveryPipeline/main.go | 5 + .../CloudDeployClient/GetRelease/main.go | 5 + .../CloudDeployClient/GetRollout/main.go | 5 + .../apiv1/CloudDeployClient/GetTarget/main.go | 5 + .../ListDeliveryPipelines/main.go | 5 + .../CloudDeployClient/ListReleases/main.go | 5 + .../CloudDeployClient/ListRollouts/main.go | 5 + .../CloudDeployClient/ListTargets/main.go | 5 + .../UpdateDeliveryPipeline/main.go | 5 + .../CloudDeployClient/UpdateTarget/main.go | 5 + ...ippet_metadata.google.cloud.deploy.v1.json | 36 +- .../AgentsClient/CancelOperation/main.go | 5 + .../apiv2/AgentsClient/DeleteAgent/main.go | 5 + .../apiv2/AgentsClient/ExportAgent/main.go | 5 + .../apiv2/AgentsClient/GetAgent/main.go | 5 + .../apiv2/AgentsClient/GetLocation/main.go | 5 + .../apiv2/AgentsClient/GetOperation/main.go | 5 + .../AgentsClient/GetValidationResult/main.go | 5 + .../apiv2/AgentsClient/ImportAgent/main.go | 5 + .../apiv2/AgentsClient/ListLocations/main.go | 5 + .../apiv2/AgentsClient/ListOperations/main.go | 5 + .../apiv2/AgentsClient/RestoreAgent/main.go | 5 + .../apiv2/AgentsClient/SearchAgents/main.go | 5 + .../apiv2/AgentsClient/SetAgent/main.go | 5 + .../apiv2/AgentsClient/TrainAgent/main.go | 5 + .../CancelOperation/main.go | 5 + .../AnswerRecordsClient/GetLocation/main.go | 5 + .../AnswerRecordsClient/GetOperation/main.go | 5 + .../ListAnswerRecords/main.go | 5 + .../AnswerRecordsClient/ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../UpdateAnswerRecord/main.go | 5 + .../ContextsClient/CancelOperation/main.go | 5 + .../ContextsClient/CreateContext/main.go | 5 + .../ContextsClient/DeleteAllContexts/main.go | 5 + .../ContextsClient/DeleteContext/main.go | 5 + .../apiv2/ContextsClient/GetContext/main.go | 5 + .../apiv2/ContextsClient/GetLocation/main.go | 5 + .../apiv2/ContextsClient/GetOperation/main.go | 5 + .../apiv2/ContextsClient/ListContexts/main.go | 5 + .../ContextsClient/ListLocations/main.go | 5 + .../ContextsClient/ListOperations/main.go | 5 + .../ContextsClient/UpdateContext/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateConversationDataset/main.go | 5 + .../DeleteConversationDataset/main.go | 5 + .../GetConversationDataset/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../ImportConversationData/main.go | 5 + .../ListConversationDatasets/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateConversationModel/main.go | 5 + .../CreateConversationModelEvaluation/main.go | 5 + .../DeleteConversationModel/main.go | 5 + .../DeployConversationModel/main.go | 5 + .../GetConversationModel/main.go | 5 + .../GetConversationModelEvaluation/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../ListConversationModelEvaluations/main.go | 5 + .../ListConversationModels/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../UndeployConversationModel/main.go | 5 + .../CancelOperation/main.go | 5 + .../ClearSuggestionFeatureConfig/main.go | 5 + .../CreateConversationProfile/main.go | 5 + .../DeleteConversationProfile/main.go | 5 + .../GetConversationProfile/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../ListConversationProfiles/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../SetSuggestionFeatureConfig/main.go | 5 + .../UpdateConversationProfile/main.go | 5 + .../CancelOperation/main.go | 5 + .../CompleteConversation/main.go | 5 + .../CreateConversation/main.go | 5 + .../GetConversation/main.go | 5 + .../ConversationsClient/GetLocation/main.go | 5 + .../ConversationsClient/GetOperation/main.go | 5 + .../ListConversations/main.go | 5 + .../ConversationsClient/ListLocations/main.go | 5 + .../ConversationsClient/ListMessages/main.go | 5 + .../ListOperations/main.go | 5 + .../DocumentsClient/CancelOperation/main.go | 5 + .../DocumentsClient/CreateDocument/main.go | 5 + .../DocumentsClient/DeleteDocument/main.go | 5 + .../DocumentsClient/ExportDocument/main.go | 5 + .../apiv2/DocumentsClient/GetDocument/main.go | 5 + .../apiv2/DocumentsClient/GetLocation/main.go | 5 + .../DocumentsClient/GetOperation/main.go | 5 + .../DocumentsClient/ImportDocuments/main.go | 5 + .../DocumentsClient/ListDocuments/main.go | 5 + .../DocumentsClient/ListLocations/main.go | 5 + .../DocumentsClient/ListOperations/main.go | 5 + .../DocumentsClient/ReloadDocument/main.go | 5 + .../DocumentsClient/UpdateDocument/main.go | 5 + .../BatchCreateEntities/main.go | 5 + .../BatchDeleteEntities/main.go | 5 + .../BatchDeleteEntityTypes/main.go | 5 + .../BatchUpdateEntities/main.go | 5 + .../BatchUpdateEntityTypes/main.go | 5 + .../EntityTypesClient/CancelOperation/main.go | 5 + .../CreateEntityType/main.go | 5 + .../DeleteEntityType/main.go | 5 + .../EntityTypesClient/GetEntityType/main.go | 5 + .../EntityTypesClient/GetLocation/main.go | 5 + .../EntityTypesClient/GetOperation/main.go | 5 + .../EntityTypesClient/ListEntityTypes/main.go | 5 + .../EntityTypesClient/ListLocations/main.go | 5 + .../EntityTypesClient/ListOperations/main.go | 5 + .../UpdateEntityType/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateEnvironment/main.go | 5 + .../DeleteEnvironment/main.go | 5 + .../EnvironmentsClient/GetEnvironment/main.go | 5 + .../GetEnvironmentHistory/main.go | 5 + .../EnvironmentsClient/GetLocation/main.go | 5 + .../EnvironmentsClient/GetOperation/main.go | 5 + .../ListEnvironments/main.go | 5 + .../EnvironmentsClient/ListLocations/main.go | 5 + .../EnvironmentsClient/ListOperations/main.go | 5 + .../UpdateEnvironment/main.go | 5 + .../CancelOperation/main.go | 5 + .../FulfillmentsClient/GetFulfillment/main.go | 5 + .../FulfillmentsClient/GetLocation/main.go | 5 + .../FulfillmentsClient/GetOperation/main.go | 5 + .../FulfillmentsClient/ListLocations/main.go | 5 + .../FulfillmentsClient/ListOperations/main.go | 5 + .../UpdateFulfillment/main.go | 5 + .../IntentsClient/BatchDeleteIntents/main.go | 5 + .../IntentsClient/BatchUpdateIntents/main.go | 5 + .../IntentsClient/CancelOperation/main.go | 5 + .../apiv2/IntentsClient/CreateIntent/main.go | 5 + .../apiv2/IntentsClient/DeleteIntent/main.go | 5 + .../apiv2/IntentsClient/GetIntent/main.go | 5 + .../apiv2/IntentsClient/GetLocation/main.go | 5 + .../apiv2/IntentsClient/GetOperation/main.go | 5 + .../apiv2/IntentsClient/ListIntents/main.go | 5 + .../apiv2/IntentsClient/ListLocations/main.go | 5 + .../IntentsClient/ListOperations/main.go | 5 + .../apiv2/IntentsClient/UpdateIntent/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateKnowledgeBase/main.go | 5 + .../DeleteKnowledgeBase/main.go | 5 + .../GetKnowledgeBase/main.go | 5 + .../KnowledgeBasesClient/GetLocation/main.go | 5 + .../KnowledgeBasesClient/GetOperation/main.go | 5 + .../ListKnowledgeBases/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../UpdateKnowledgeBase/main.go | 5 + .../ParticipantsClient/AnalyzeContent/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateParticipant/main.go | 5 + .../ParticipantsClient/GetLocation/main.go | 5 + .../ParticipantsClient/GetOperation/main.go | 5 + .../ParticipantsClient/GetParticipant/main.go | 5 + .../ParticipantsClient/ListLocations/main.go | 5 + .../ParticipantsClient/ListOperations/main.go | 5 + .../ListParticipants/main.go | 5 + .../SuggestArticles/main.go | 5 + .../SuggestFaqAnswers/main.go | 5 + .../SuggestSmartReplies/main.go | 5 + .../UpdateParticipant/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateSessionEntityType/main.go | 5 + .../DeleteSessionEntityType/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetSessionEntityType/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListSessionEntityTypes/main.go | 5 + .../UpdateSessionEntityType/main.go | 5 + .../SessionsClient/CancelOperation/main.go | 5 + .../apiv2/SessionsClient/DetectIntent/main.go | 5 + .../apiv2/SessionsClient/GetLocation/main.go | 5 + .../apiv2/SessionsClient/GetOperation/main.go | 5 + .../SessionsClient/ListLocations/main.go | 5 + .../SessionsClient/ListOperations/main.go | 5 + .../StreamingDetectIntent/main.go | 5 + .../VersionsClient/CancelOperation/main.go | 5 + .../VersionsClient/CreateVersion/main.go | 5 + .../VersionsClient/DeleteVersion/main.go | 5 + .../apiv2/VersionsClient/GetLocation/main.go | 5 + .../apiv2/VersionsClient/GetOperation/main.go | 5 + .../apiv2/VersionsClient/GetVersion/main.go | 5 + .../VersionsClient/ListLocations/main.go | 5 + .../VersionsClient/ListOperations/main.go | 5 + .../apiv2/VersionsClient/ListVersions/main.go | 5 + .../VersionsClient/UpdateVersion/main.go | 5 + ...t_metadata.google.cloud.dialogflow.v2.json | 374 ++--- .../AgentsClient/CancelOperation/main.go | 5 + .../AgentsClient/DeleteAgent/main.go | 5 + .../AgentsClient/ExportAgent/main.go | 5 + .../apiv2beta1/AgentsClient/GetAgent/main.go | 5 + .../AgentsClient/GetLocation/main.go | 5 + .../AgentsClient/GetOperation/main.go | 5 + .../AgentsClient/GetValidationResult/main.go | 5 + .../AgentsClient/ImportAgent/main.go | 5 + .../AgentsClient/ListLocations/main.go | 5 + .../AgentsClient/ListOperations/main.go | 5 + .../AgentsClient/RestoreAgent/main.go | 5 + .../AgentsClient/SearchAgents/main.go | 5 + .../apiv2beta1/AgentsClient/SetAgent/main.go | 5 + .../AgentsClient/TrainAgent/main.go | 5 + .../CancelOperation/main.go | 5 + .../GetAnswerRecord/main.go | 5 + .../AnswerRecordsClient/GetLocation/main.go | 5 + .../AnswerRecordsClient/GetOperation/main.go | 5 + .../ListAnswerRecords/main.go | 5 + .../AnswerRecordsClient/ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../UpdateAnswerRecord/main.go | 5 + .../ContextsClient/CancelOperation/main.go | 5 + .../ContextsClient/CreateContext/main.go | 5 + .../ContextsClient/DeleteAllContexts/main.go | 5 + .../ContextsClient/DeleteContext/main.go | 5 + .../ContextsClient/GetContext/main.go | 5 + .../ContextsClient/GetLocation/main.go | 5 + .../ContextsClient/GetOperation/main.go | 5 + .../ContextsClient/ListContexts/main.go | 5 + .../ContextsClient/ListLocations/main.go | 5 + .../ContextsClient/ListOperations/main.go | 5 + .../ContextsClient/UpdateContext/main.go | 5 + .../CancelOperation/main.go | 5 + .../ClearSuggestionFeatureConfig/main.go | 5 + .../CreateConversationProfile/main.go | 5 + .../DeleteConversationProfile/main.go | 5 + .../GetConversationProfile/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../ListConversationProfiles/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../SetSuggestionFeatureConfig/main.go | 5 + .../UpdateConversationProfile/main.go | 5 + .../BatchCreateMessages/main.go | 5 + .../CancelOperation/main.go | 5 + .../CompleteConversation/main.go | 5 + .../CreateConversation/main.go | 5 + .../GetConversation/main.go | 5 + .../ConversationsClient/GetLocation/main.go | 5 + .../ConversationsClient/GetOperation/main.go | 5 + .../ListConversations/main.go | 5 + .../ConversationsClient/ListLocations/main.go | 5 + .../ConversationsClient/ListMessages/main.go | 5 + .../ListOperations/main.go | 5 + .../DocumentsClient/CancelOperation/main.go | 5 + .../DocumentsClient/CreateDocument/main.go | 5 + .../DocumentsClient/DeleteDocument/main.go | 5 + .../DocumentsClient/GetDocument/main.go | 5 + .../DocumentsClient/GetLocation/main.go | 5 + .../DocumentsClient/GetOperation/main.go | 5 + .../DocumentsClient/ImportDocuments/main.go | 5 + .../DocumentsClient/ListDocuments/main.go | 5 + .../DocumentsClient/ListLocations/main.go | 5 + .../DocumentsClient/ListOperations/main.go | 5 + .../DocumentsClient/ReloadDocument/main.go | 5 + .../DocumentsClient/UpdateDocument/main.go | 5 + .../BatchCreateEntities/main.go | 5 + .../BatchDeleteEntities/main.go | 5 + .../BatchDeleteEntityTypes/main.go | 5 + .../BatchUpdateEntities/main.go | 5 + .../BatchUpdateEntityTypes/main.go | 5 + .../EntityTypesClient/CancelOperation/main.go | 5 + .../CreateEntityType/main.go | 5 + .../DeleteEntityType/main.go | 5 + .../EntityTypesClient/GetEntityType/main.go | 5 + .../EntityTypesClient/GetLocation/main.go | 5 + .../EntityTypesClient/GetOperation/main.go | 5 + .../EntityTypesClient/ListEntityTypes/main.go | 5 + .../EntityTypesClient/ListLocations/main.go | 5 + .../EntityTypesClient/ListOperations/main.go | 5 + .../UpdateEntityType/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateEnvironment/main.go | 5 + .../DeleteEnvironment/main.go | 5 + .../EnvironmentsClient/GetEnvironment/main.go | 5 + .../GetEnvironmentHistory/main.go | 5 + .../EnvironmentsClient/GetLocation/main.go | 5 + .../EnvironmentsClient/GetOperation/main.go | 5 + .../ListEnvironments/main.go | 5 + .../EnvironmentsClient/ListLocations/main.go | 5 + .../EnvironmentsClient/ListOperations/main.go | 5 + .../UpdateEnvironment/main.go | 5 + .../CancelOperation/main.go | 5 + .../FulfillmentsClient/GetFulfillment/main.go | 5 + .../FulfillmentsClient/GetLocation/main.go | 5 + .../FulfillmentsClient/GetOperation/main.go | 5 + .../FulfillmentsClient/ListLocations/main.go | 5 + .../FulfillmentsClient/ListOperations/main.go | 5 + .../UpdateFulfillment/main.go | 5 + .../IntentsClient/BatchDeleteIntents/main.go | 5 + .../IntentsClient/BatchUpdateIntents/main.go | 5 + .../IntentsClient/CancelOperation/main.go | 5 + .../IntentsClient/CreateIntent/main.go | 5 + .../IntentsClient/DeleteIntent/main.go | 5 + .../IntentsClient/GetIntent/main.go | 5 + .../IntentsClient/GetLocation/main.go | 5 + .../IntentsClient/GetOperation/main.go | 5 + .../IntentsClient/ListIntents/main.go | 5 + .../IntentsClient/ListLocations/main.go | 5 + .../IntentsClient/ListOperations/main.go | 5 + .../IntentsClient/UpdateIntent/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateKnowledgeBase/main.go | 5 + .../DeleteKnowledgeBase/main.go | 5 + .../GetKnowledgeBase/main.go | 5 + .../KnowledgeBasesClient/GetLocation/main.go | 5 + .../KnowledgeBasesClient/GetOperation/main.go | 5 + .../ListKnowledgeBases/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../UpdateKnowledgeBase/main.go | 5 + .../ParticipantsClient/AnalyzeContent/main.go | 5 + .../CancelOperation/main.go | 5 + .../CompileSuggestion/main.go | 5 + .../CreateParticipant/main.go | 5 + .../ParticipantsClient/GetLocation/main.go | 5 + .../ParticipantsClient/GetOperation/main.go | 5 + .../ParticipantsClient/GetParticipant/main.go | 5 + .../ParticipantsClient/ListLocations/main.go | 5 + .../ParticipantsClient/ListOperations/main.go | 5 + .../ListParticipants/main.go | 5 + .../ListSuggestions/main.go | 5 + .../StreamingAnalyzeContent/main.go | 5 + .../SuggestArticles/main.go | 5 + .../SuggestFaqAnswers/main.go | 5 + .../SuggestSmartReplies/main.go | 5 + .../UpdateParticipant/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateSessionEntityType/main.go | 5 + .../DeleteSessionEntityType/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetSessionEntityType/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListSessionEntityTypes/main.go | 5 + .../UpdateSessionEntityType/main.go | 5 + .../SessionsClient/CancelOperation/main.go | 5 + .../SessionsClient/DetectIntent/main.go | 5 + .../SessionsClient/GetLocation/main.go | 5 + .../SessionsClient/GetOperation/main.go | 5 + .../SessionsClient/ListLocations/main.go | 5 + .../SessionsClient/ListOperations/main.go | 5 + .../StreamingDetectIntent/main.go | 5 + .../VersionsClient/CancelOperation/main.go | 5 + .../VersionsClient/CreateVersion/main.go | 5 + .../VersionsClient/DeleteVersion/main.go | 5 + .../VersionsClient/GetLocation/main.go | 5 + .../VersionsClient/GetOperation/main.go | 5 + .../VersionsClient/GetVersion/main.go | 5 + .../VersionsClient/ListLocations/main.go | 5 + .../VersionsClient/ListOperations/main.go | 5 + .../VersionsClient/ListVersions/main.go | 5 + .../VersionsClient/UpdateVersion/main.go | 5 + ...adata.google.cloud.dialogflow.v2beta1.json | 334 ++--- .../AgentsClient/CancelOperation/main.go | 5 + .../cx/apiv3/AgentsClient/CreateAgent/main.go | 5 + .../cx/apiv3/AgentsClient/DeleteAgent/main.go | 5 + .../cx/apiv3/AgentsClient/ExportAgent/main.go | 5 + .../cx/apiv3/AgentsClient/GetAgent/main.go | 5 + .../GetAgentValidationResult/main.go | 5 + .../cx/apiv3/AgentsClient/GetLocation/main.go | 5 + .../apiv3/AgentsClient/GetOperation/main.go | 5 + .../cx/apiv3/AgentsClient/ListAgents/main.go | 5 + .../apiv3/AgentsClient/ListLocations/main.go | 5 + .../apiv3/AgentsClient/ListOperations/main.go | 5 + .../apiv3/AgentsClient/RestoreAgent/main.go | 5 + .../cx/apiv3/AgentsClient/UpdateAgent/main.go | 5 + .../apiv3/AgentsClient/ValidateAgent/main.go | 5 + .../ChangelogsClient/CancelOperation/main.go | 5 + .../ChangelogsClient/GetChangelog/main.go | 5 + .../ChangelogsClient/GetLocation/main.go | 5 + .../ChangelogsClient/GetOperation/main.go | 5 + .../ChangelogsClient/ListChangelogs/main.go | 5 + .../ChangelogsClient/ListLocations/main.go | 5 + .../ChangelogsClient/ListOperations/main.go | 5 + .../DeploymentsClient/CancelOperation/main.go | 5 + .../DeploymentsClient/GetDeployment/main.go | 5 + .../DeploymentsClient/GetLocation/main.go | 5 + .../DeploymentsClient/GetOperation/main.go | 5 + .../DeploymentsClient/ListDeployments/main.go | 5 + .../DeploymentsClient/ListLocations/main.go | 5 + .../DeploymentsClient/ListOperations/main.go | 5 + .../EntityTypesClient/CancelOperation/main.go | 5 + .../CreateEntityType/main.go | 5 + .../DeleteEntityType/main.go | 5 + .../EntityTypesClient/GetEntityType/main.go | 5 + .../EntityTypesClient/GetLocation/main.go | 5 + .../EntityTypesClient/GetOperation/main.go | 5 + .../EntityTypesClient/ListEntityTypes/main.go | 5 + .../EntityTypesClient/ListLocations/main.go | 5 + .../EntityTypesClient/ListOperations/main.go | 5 + .../UpdateEntityType/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateEnvironment/main.go | 5 + .../DeleteEnvironment/main.go | 5 + .../EnvironmentsClient/DeployFlow/main.go | 5 + .../EnvironmentsClient/GetEnvironment/main.go | 5 + .../EnvironmentsClient/GetLocation/main.go | 5 + .../EnvironmentsClient/GetOperation/main.go | 5 + .../ListContinuousTestResults/main.go | 5 + .../ListEnvironments/main.go | 5 + .../EnvironmentsClient/ListLocations/main.go | 5 + .../EnvironmentsClient/ListOperations/main.go | 5 + .../LookupEnvironmentHistory/main.go | 5 + .../RunContinuousTest/main.go | 5 + .../UpdateEnvironment/main.go | 5 + .../ExperimentsClient/CancelOperation/main.go | 5 + .../CreateExperiment/main.go | 5 + .../DeleteExperiment/main.go | 5 + .../ExperimentsClient/GetExperiment/main.go | 5 + .../ExperimentsClient/GetLocation/main.go | 5 + .../ExperimentsClient/GetOperation/main.go | 5 + .../ExperimentsClient/ListExperiments/main.go | 5 + .../ExperimentsClient/ListLocations/main.go | 5 + .../ExperimentsClient/ListOperations/main.go | 5 + .../ExperimentsClient/StartExperiment/main.go | 5 + .../ExperimentsClient/StopExperiment/main.go | 5 + .../UpdateExperiment/main.go | 5 + .../apiv3/FlowsClient/CancelOperation/main.go | 5 + .../cx/apiv3/FlowsClient/CreateFlow/main.go | 5 + .../cx/apiv3/FlowsClient/DeleteFlow/main.go | 5 + .../cx/apiv3/FlowsClient/ExportFlow/main.go | 5 + .../cx/apiv3/FlowsClient/GetFlow/main.go | 5 + .../GetFlowValidationResult/main.go | 5 + .../cx/apiv3/FlowsClient/GetLocation/main.go | 5 + .../cx/apiv3/FlowsClient/GetOperation/main.go | 5 + .../cx/apiv3/FlowsClient/ImportFlow/main.go | 5 + .../cx/apiv3/FlowsClient/ListFlows/main.go | 5 + .../apiv3/FlowsClient/ListLocations/main.go | 5 + .../apiv3/FlowsClient/ListOperations/main.go | 5 + .../cx/apiv3/FlowsClient/TrainFlow/main.go | 5 + .../cx/apiv3/FlowsClient/UpdateFlow/main.go | 5 + .../cx/apiv3/FlowsClient/ValidateFlow/main.go | 5 + .../IntentsClient/CancelOperation/main.go | 5 + .../apiv3/IntentsClient/CreateIntent/main.go | 5 + .../apiv3/IntentsClient/DeleteIntent/main.go | 5 + .../cx/apiv3/IntentsClient/GetIntent/main.go | 5 + .../apiv3/IntentsClient/GetLocation/main.go | 5 + .../apiv3/IntentsClient/GetOperation/main.go | 5 + .../apiv3/IntentsClient/ListIntents/main.go | 5 + .../apiv3/IntentsClient/ListLocations/main.go | 5 + .../IntentsClient/ListOperations/main.go | 5 + .../apiv3/IntentsClient/UpdateIntent/main.go | 5 + .../apiv3/PagesClient/CancelOperation/main.go | 5 + .../cx/apiv3/PagesClient/CreatePage/main.go | 5 + .../cx/apiv3/PagesClient/DeletePage/main.go | 5 + .../cx/apiv3/PagesClient/GetLocation/main.go | 5 + .../cx/apiv3/PagesClient/GetOperation/main.go | 5 + .../cx/apiv3/PagesClient/GetPage/main.go | 5 + .../apiv3/PagesClient/ListLocations/main.go | 5 + .../apiv3/PagesClient/ListOperations/main.go | 5 + .../cx/apiv3/PagesClient/ListPages/main.go | 5 + .../cx/apiv3/PagesClient/UpdatePage/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateSecuritySettings/main.go | 5 + .../DeleteSecuritySettings/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetSecuritySettings/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListSecuritySettings/main.go | 5 + .../UpdateSecuritySettings/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateSessionEntityType/main.go | 5 + .../DeleteSessionEntityType/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetSessionEntityType/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListSessionEntityTypes/main.go | 5 + .../UpdateSessionEntityType/main.go | 5 + .../SessionsClient/CancelOperation/main.go | 5 + .../apiv3/SessionsClient/DetectIntent/main.go | 5 + .../SessionsClient/FulfillIntent/main.go | 5 + .../apiv3/SessionsClient/GetLocation/main.go | 5 + .../apiv3/SessionsClient/GetOperation/main.go | 5 + .../SessionsClient/ListLocations/main.go | 5 + .../SessionsClient/ListOperations/main.go | 5 + .../apiv3/SessionsClient/MatchIntent/main.go | 5 + .../StreamingDetectIntent/main.go | 5 + .../BatchDeleteTestCases/main.go | 5 + .../TestCasesClient/BatchRunTestCases/main.go | 5 + .../TestCasesClient/CalculateCoverage/main.go | 5 + .../TestCasesClient/CancelOperation/main.go | 5 + .../TestCasesClient/CreateTestCase/main.go | 5 + .../TestCasesClient/ExportTestCases/main.go | 5 + .../apiv3/TestCasesClient/GetLocation/main.go | 5 + .../TestCasesClient/GetOperation/main.go | 5 + .../apiv3/TestCasesClient/GetTestCase/main.go | 5 + .../TestCasesClient/GetTestCaseResult/main.go | 5 + .../TestCasesClient/ImportTestCases/main.go | 5 + .../TestCasesClient/ListLocations/main.go | 5 + .../TestCasesClient/ListOperations/main.go | 5 + .../ListTestCaseResults/main.go | 5 + .../TestCasesClient/ListTestCases/main.go | 5 + .../apiv3/TestCasesClient/RunTestCase/main.go | 5 + .../TestCasesClient/UpdateTestCase/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateTransitionRouteGroup/main.go | 5 + .../DeleteTransitionRouteGroup/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetTransitionRouteGroup/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListTransitionRouteGroups/main.go | 5 + .../UpdateTransitionRouteGroup/main.go | 5 + .../VersionsClient/CancelOperation/main.go | 5 + .../VersionsClient/CompareVersions/main.go | 5 + .../VersionsClient/CreateVersion/main.go | 5 + .../VersionsClient/DeleteVersion/main.go | 5 + .../apiv3/VersionsClient/GetLocation/main.go | 5 + .../apiv3/VersionsClient/GetOperation/main.go | 5 + .../apiv3/VersionsClient/GetVersion/main.go | 5 + .../VersionsClient/ListLocations/main.go | 5 + .../VersionsClient/ListOperations/main.go | 5 + .../apiv3/VersionsClient/ListVersions/main.go | 5 + .../apiv3/VersionsClient/LoadVersion/main.go | 5 + .../VersionsClient/UpdateVersion/main.go | 5 + .../WebhooksClient/CancelOperation/main.go | 5 + .../WebhooksClient/CreateWebhook/main.go | 5 + .../WebhooksClient/DeleteWebhook/main.go | 5 + .../apiv3/WebhooksClient/GetLocation/main.go | 5 + .../apiv3/WebhooksClient/GetOperation/main.go | 5 + .../apiv3/WebhooksClient/GetWebhook/main.go | 5 + .../WebhooksClient/ListLocations/main.go | 5 + .../WebhooksClient/ListOperations/main.go | 5 + .../apiv3/WebhooksClient/ListWebhooks/main.go | 5 + .../WebhooksClient/UpdateWebhook/main.go | 5 + ...etadata.google.cloud.dialogflow.cx.v3.json | 356 ++--- .../AgentsClient/CancelOperation/main.go | 5 + .../AgentsClient/CreateAgent/main.go | 5 + .../AgentsClient/DeleteAgent/main.go | 5 + .../AgentsClient/ExportAgent/main.go | 5 + .../apiv3beta1/AgentsClient/GetAgent/main.go | 5 + .../GetAgentValidationResult/main.go | 5 + .../AgentsClient/GetLocation/main.go | 5 + .../AgentsClient/GetOperation/main.go | 5 + .../AgentsClient/ListAgents/main.go | 5 + .../AgentsClient/ListLocations/main.go | 5 + .../AgentsClient/ListOperations/main.go | 5 + .../AgentsClient/RestoreAgent/main.go | 5 + .../AgentsClient/UpdateAgent/main.go | 5 + .../AgentsClient/ValidateAgent/main.go | 5 + .../ChangelogsClient/CancelOperation/main.go | 5 + .../ChangelogsClient/GetChangelog/main.go | 5 + .../ChangelogsClient/GetLocation/main.go | 5 + .../ChangelogsClient/GetOperation/main.go | 5 + .../ChangelogsClient/ListChangelogs/main.go | 5 + .../ChangelogsClient/ListLocations/main.go | 5 + .../ChangelogsClient/ListOperations/main.go | 5 + .../DeploymentsClient/CancelOperation/main.go | 5 + .../DeploymentsClient/GetDeployment/main.go | 5 + .../DeploymentsClient/GetLocation/main.go | 5 + .../DeploymentsClient/GetOperation/main.go | 5 + .../DeploymentsClient/ListDeployments/main.go | 5 + .../DeploymentsClient/ListLocations/main.go | 5 + .../DeploymentsClient/ListOperations/main.go | 5 + .../EntityTypesClient/CancelOperation/main.go | 5 + .../CreateEntityType/main.go | 5 + .../DeleteEntityType/main.go | 5 + .../EntityTypesClient/GetEntityType/main.go | 5 + .../EntityTypesClient/GetLocation/main.go | 5 + .../EntityTypesClient/GetOperation/main.go | 5 + .../EntityTypesClient/ListEntityTypes/main.go | 5 + .../EntityTypesClient/ListLocations/main.go | 5 + .../EntityTypesClient/ListOperations/main.go | 5 + .../UpdateEntityType/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateEnvironment/main.go | 5 + .../DeleteEnvironment/main.go | 5 + .../EnvironmentsClient/DeployFlow/main.go | 5 + .../EnvironmentsClient/GetEnvironment/main.go | 5 + .../EnvironmentsClient/GetLocation/main.go | 5 + .../EnvironmentsClient/GetOperation/main.go | 5 + .../ListContinuousTestResults/main.go | 5 + .../ListEnvironments/main.go | 5 + .../EnvironmentsClient/ListLocations/main.go | 5 + .../EnvironmentsClient/ListOperations/main.go | 5 + .../LookupEnvironmentHistory/main.go | 5 + .../RunContinuousTest/main.go | 5 + .../UpdateEnvironment/main.go | 5 + .../ExperimentsClient/CancelOperation/main.go | 5 + .../CreateExperiment/main.go | 5 + .../DeleteExperiment/main.go | 5 + .../ExperimentsClient/GetExperiment/main.go | 5 + .../ExperimentsClient/GetLocation/main.go | 5 + .../ExperimentsClient/GetOperation/main.go | 5 + .../ExperimentsClient/ListExperiments/main.go | 5 + .../ExperimentsClient/ListLocations/main.go | 5 + .../ExperimentsClient/ListOperations/main.go | 5 + .../ExperimentsClient/StartExperiment/main.go | 5 + .../ExperimentsClient/StopExperiment/main.go | 5 + .../UpdateExperiment/main.go | 5 + .../FlowsClient/CancelOperation/main.go | 5 + .../apiv3beta1/FlowsClient/CreateFlow/main.go | 5 + .../apiv3beta1/FlowsClient/DeleteFlow/main.go | 5 + .../apiv3beta1/FlowsClient/ExportFlow/main.go | 5 + .../cx/apiv3beta1/FlowsClient/GetFlow/main.go | 5 + .../GetFlowValidationResult/main.go | 5 + .../FlowsClient/GetLocation/main.go | 5 + .../FlowsClient/GetOperation/main.go | 5 + .../apiv3beta1/FlowsClient/ImportFlow/main.go | 5 + .../apiv3beta1/FlowsClient/ListFlows/main.go | 5 + .../FlowsClient/ListLocations/main.go | 5 + .../FlowsClient/ListOperations/main.go | 5 + .../apiv3beta1/FlowsClient/TrainFlow/main.go | 5 + .../apiv3beta1/FlowsClient/UpdateFlow/main.go | 5 + .../FlowsClient/ValidateFlow/main.go | 5 + .../IntentsClient/CancelOperation/main.go | 5 + .../IntentsClient/CreateIntent/main.go | 5 + .../IntentsClient/DeleteIntent/main.go | 5 + .../IntentsClient/GetIntent/main.go | 5 + .../IntentsClient/GetLocation/main.go | 5 + .../IntentsClient/GetOperation/main.go | 5 + .../IntentsClient/ListIntents/main.go | 5 + .../IntentsClient/ListLocations/main.go | 5 + .../IntentsClient/ListOperations/main.go | 5 + .../IntentsClient/UpdateIntent/main.go | 5 + .../PagesClient/CancelOperation/main.go | 5 + .../apiv3beta1/PagesClient/CreatePage/main.go | 5 + .../apiv3beta1/PagesClient/DeletePage/main.go | 5 + .../PagesClient/GetLocation/main.go | 5 + .../PagesClient/GetOperation/main.go | 5 + .../cx/apiv3beta1/PagesClient/GetPage/main.go | 5 + .../PagesClient/ListLocations/main.go | 5 + .../PagesClient/ListOperations/main.go | 5 + .../apiv3beta1/PagesClient/ListPages/main.go | 5 + .../apiv3beta1/PagesClient/UpdatePage/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateSecuritySettings/main.go | 5 + .../DeleteSecuritySettings/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetSecuritySettings/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListSecuritySettings/main.go | 5 + .../UpdateSecuritySettings/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateSessionEntityType/main.go | 5 + .../DeleteSessionEntityType/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetSessionEntityType/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListSessionEntityTypes/main.go | 5 + .../UpdateSessionEntityType/main.go | 5 + .../SessionsClient/CancelOperation/main.go | 5 + .../SessionsClient/DetectIntent/main.go | 5 + .../SessionsClient/FulfillIntent/main.go | 5 + .../SessionsClient/GetLocation/main.go | 5 + .../SessionsClient/GetOperation/main.go | 5 + .../SessionsClient/ListLocations/main.go | 5 + .../SessionsClient/ListOperations/main.go | 5 + .../SessionsClient/MatchIntent/main.go | 5 + .../StreamingDetectIntent/main.go | 5 + .../BatchDeleteTestCases/main.go | 5 + .../TestCasesClient/BatchRunTestCases/main.go | 5 + .../TestCasesClient/CalculateCoverage/main.go | 5 + .../TestCasesClient/CancelOperation/main.go | 5 + .../TestCasesClient/CreateTestCase/main.go | 5 + .../TestCasesClient/ExportTestCases/main.go | 5 + .../TestCasesClient/GetLocation/main.go | 5 + .../TestCasesClient/GetOperation/main.go | 5 + .../TestCasesClient/GetTestCase/main.go | 5 + .../TestCasesClient/GetTestCaseResult/main.go | 5 + .../TestCasesClient/ImportTestCases/main.go | 5 + .../TestCasesClient/ListLocations/main.go | 5 + .../TestCasesClient/ListOperations/main.go | 5 + .../ListTestCaseResults/main.go | 5 + .../TestCasesClient/ListTestCases/main.go | 5 + .../TestCasesClient/RunTestCase/main.go | 5 + .../TestCasesClient/UpdateTestCase/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateTransitionRouteGroup/main.go | 5 + .../DeleteTransitionRouteGroup/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetTransitionRouteGroup/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListTransitionRouteGroups/main.go | 5 + .../UpdateTransitionRouteGroup/main.go | 5 + .../VersionsClient/CancelOperation/main.go | 5 + .../VersionsClient/CompareVersions/main.go | 5 + .../VersionsClient/CreateVersion/main.go | 5 + .../VersionsClient/DeleteVersion/main.go | 5 + .../VersionsClient/GetLocation/main.go | 5 + .../VersionsClient/GetOperation/main.go | 5 + .../VersionsClient/GetVersion/main.go | 5 + .../VersionsClient/ListLocations/main.go | 5 + .../VersionsClient/ListOperations/main.go | 5 + .../VersionsClient/ListVersions/main.go | 5 + .../VersionsClient/LoadVersion/main.go | 5 + .../VersionsClient/UpdateVersion/main.go | 5 + .../WebhooksClient/CancelOperation/main.go | 5 + .../WebhooksClient/CreateWebhook/main.go | 5 + .../WebhooksClient/DeleteWebhook/main.go | 5 + .../WebhooksClient/GetLocation/main.go | 5 + .../WebhooksClient/GetOperation/main.go | 5 + .../WebhooksClient/GetWebhook/main.go | 5 + .../WebhooksClient/ListLocations/main.go | 5 + .../WebhooksClient/ListOperations/main.go | 5 + .../WebhooksClient/ListWebhooks/main.go | 5 + .../WebhooksClient/UpdateWebhook/main.go | 5 + ...ta.google.cloud.dialogflow.cx.v3beta1.json | 356 ++--- .../apiv2/Client/ActivateJobTrigger/main.go | 5 + .../dlp/apiv2/Client/CancelDlpJob/main.go | 5 + .../Client/CreateDeidentifyTemplate/main.go | 5 + .../dlp/apiv2/Client/CreateDlpJob/main.go | 5 + .../Client/CreateInspectTemplate/main.go | 5 + .../dlp/apiv2/Client/CreateJobTrigger/main.go | 5 + .../apiv2/Client/CreateStoredInfoType/main.go | 5 + .../apiv2/Client/DeidentifyContent/main.go | 5 + .../Client/DeleteDeidentifyTemplate/main.go | 5 + .../dlp/apiv2/Client/DeleteDlpJob/main.go | 5 + .../Client/DeleteInspectTemplate/main.go | 5 + .../dlp/apiv2/Client/DeleteJobTrigger/main.go | 5 + .../apiv2/Client/DeleteStoredInfoType/main.go | 5 + .../dlp/apiv2/Client/FinishDlpJob/main.go | 5 + .../Client/GetDeidentifyTemplate/main.go | 5 + .../dlp/apiv2/Client/GetDlpJob/main.go | 5 + .../apiv2/Client/GetInspectTemplate/main.go | 5 + .../dlp/apiv2/Client/GetJobTrigger/main.go | 5 + .../apiv2/Client/GetStoredInfoType/main.go | 5 + .../apiv2/Client/HybridInspectDlpJob/main.go | 5 + .../Client/HybridInspectJobTrigger/main.go | 5 + .../dlp/apiv2/Client/InspectContent/main.go | 5 + .../Client/ListDeidentifyTemplates/main.go | 5 + .../dlp/apiv2/Client/ListDlpJobs/main.go | 5 + .../dlp/apiv2/Client/ListInfoTypes/main.go | 5 + .../apiv2/Client/ListInspectTemplates/main.go | 5 + .../dlp/apiv2/Client/ListJobTriggers/main.go | 5 + .../apiv2/Client/ListStoredInfoTypes/main.go | 5 + .../dlp/apiv2/Client/RedactImage/main.go | 5 + .../apiv2/Client/ReidentifyContent/main.go | 5 + .../Client/UpdateDeidentifyTemplate/main.go | 5 + .../Client/UpdateInspectTemplate/main.go | 5 + .../dlp/apiv2/Client/UpdateJobTrigger/main.go | 5 + .../apiv2/Client/UpdateStoredInfoType/main.go | 5 + ...nippet_metadata.google.privacy.dlp.v2.json | 76 +- .../BatchProcessDocuments/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateProcessor/main.go | 5 + .../DeleteProcessor/main.go | 5 + .../DeleteProcessorVersion/main.go | 5 + .../DeployProcessorVersion/main.go | 5 + .../DisableProcessor/main.go | 5 + .../EnableProcessor/main.go | 5 + .../FetchProcessorTypes/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetProcessor/main.go | 5 + .../GetProcessorVersion/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListProcessorTypes/main.go | 5 + .../ListProcessorVersions/main.go | 5 + .../ListProcessors/main.go | 5 + .../ProcessDocument/main.go | 5 + .../ReviewDocument/main.go | 5 + .../SetDefaultProcessorVersion/main.go | 5 + .../UndeployProcessorVersion/main.go | 5 + ...t_metadata.google.cloud.documentai.v1.json | 44 +- .../BatchProcessDocuments/main.go | 5 + .../CancelOperation/main.go | 5 + .../CreateProcessor/main.go | 5 + .../DeleteProcessor/main.go | 5 + .../DeleteProcessorVersion/main.go | 5 + .../DeployProcessorVersion/main.go | 5 + .../DisableProcessor/main.go | 5 + .../EnableProcessor/main.go | 5 + .../FetchProcessorTypes/main.go | 5 + .../GetLocation/main.go | 5 + .../GetOperation/main.go | 5 + .../GetProcessor/main.go | 5 + .../GetProcessorVersion/main.go | 5 + .../ListLocations/main.go | 5 + .../ListOperations/main.go | 5 + .../ListProcessorTypes/main.go | 5 + .../ListProcessorVersions/main.go | 5 + .../ListProcessors/main.go | 5 + .../ProcessDocument/main.go | 5 + .../ReviewDocument/main.go | 5 + .../SetDefaultProcessorVersion/main.go | 5 + .../UndeployProcessorVersion/main.go | 5 + ...adata.google.cloud.documentai.v1beta3.json | 44 +- .../Client/ConfigureContactSettings/main.go | 5 + .../Client/ConfigureDnsSettings/main.go | 5 + .../ConfigureManagementSettings/main.go | 5 + .../Client/DeleteRegistration/main.go | 5 + .../Client/ExportRegistration/main.go | 5 + .../apiv1beta1/Client/GetRegistration/main.go | 5 + .../Client/ListRegistrations/main.go | 5 + .../apiv1beta1/Client/RegisterDomain/main.go | 5 + .../Client/ResetAuthorizationCode/main.go | 5 + .../Client/RetrieveAuthorizationCode/main.go | 5 + .../Client/RetrieveRegisterParameters/main.go | 5 + .../Client/RetrieveTransferParameters/main.go | 5 + .../apiv1beta1/Client/SearchDomains/main.go | 5 + .../apiv1beta1/Client/TransferDomain/main.go | 5 + .../Client/UpdateRegistration/main.go | 5 + ...metadata.google.cloud.domains.v1beta1.json | 30 +- .../ErrorGroupClient/GetGroup/main.go | 5 + .../ErrorGroupClient/UpdateGroup/main.go | 5 + .../ErrorStatsClient/DeleteEvents/main.go | 5 + .../ErrorStatsClient/ListEvents/main.go | 5 + .../ErrorStatsClient/ListGroupStats/main.go | 5 + .../ReportErrorEvent/main.go | 5 + ....devtools.clouderrorreporting.v1beta1.json | 12 +- .../apiv1/Client/ComputeContacts/main.go | 5 + .../apiv1/Client/CreateContact/main.go | 5 + .../apiv1/Client/DeleteContact/main.go | 5 + .../apiv1/Client/GetContact/main.go | 5 + .../apiv1/Client/ListContacts/main.go | 5 + .../apiv1/Client/SendTestMessage/main.go | 5 + .../apiv1/Client/UpdateContact/main.go | 5 + ...ata.google.cloud.essentialcontacts.v1.json | 14 +- .../apiv1/Client/CreateChannel/main.go | 5 + .../Client/CreateChannelConnection/main.go | 5 + .../apiv1/Client/CreateTrigger/main.go | 5 + .../apiv1/Client/DeleteChannel/main.go | 5 + .../Client/DeleteChannelConnection/main.go | 5 + .../apiv1/Client/DeleteTrigger/main.go | 5 + .../eventarc/apiv1/Client/GetChannel/main.go | 5 + .../apiv1/Client/GetChannelConnection/main.go | 5 + .../eventarc/apiv1/Client/GetProvider/main.go | 5 + .../eventarc/apiv1/Client/GetTrigger/main.go | 5 + .../Client/ListChannelConnections/main.go | 5 + .../apiv1/Client/ListChannels/main.go | 5 + .../apiv1/Client/ListProviders/main.go | 5 + .../apiv1/Client/ListTriggers/main.go | 5 + .../apiv1/Client/UpdateChannel/main.go | 5 + .../apiv1/Client/UpdateTrigger/main.go | 5 + ...pet_metadata.google.cloud.eventarc.v1.json | 32 +- .../PublishChannelConnectionEvents/main.go | 5 + .../PublisherClient/PublishEvents/main.go | 5 + ...a.google.cloud.eventarc.publishing.v1.json | 4 +- .../CreateBackup/main.go | 5 + .../CreateInstance/main.go | 5 + .../DeleteBackup/main.go | 5 + .../DeleteInstance/main.go | 5 + .../GetBackup/main.go | 5 + .../GetInstance/main.go | 5 + .../ListBackups/main.go | 5 + .../ListInstances/main.go | 5 + .../RestoreInstance/main.go | 5 + .../UpdateBackup/main.go | 5 + .../UpdateInstance/main.go | 5 + ...et_metadata.google.cloud.filestore.v1.json | 22 +- .../firestore/apiv1/Client/BatchWrite/main.go | 5 + .../apiv1/Client/BeginTransaction/main.go | 5 + .../apiv1/Client/CancelOperation/main.go | 5 + .../firestore/apiv1/Client/Commit/main.go | 5 + .../apiv1/Client/CreateDocument/main.go | 5 + .../apiv1/Client/DeleteDocument/main.go | 5 + .../apiv1/Client/DeleteOperation/main.go | 5 + .../apiv1/Client/GetDocument/main.go | 5 + .../apiv1/Client/GetOperation/main.go | 5 + .../apiv1/Client/ListCollectionIds/main.go | 5 + .../apiv1/Client/ListDocuments/main.go | 5 + .../apiv1/Client/ListOperations/main.go | 5 + .../firestore/apiv1/Client/Listen/main.go | 5 + .../apiv1/Client/PartitionQuery/main.go | 5 + .../firestore/apiv1/Client/Rollback/main.go | 5 + .../apiv1/Client/UpdateDocument/main.go | 5 + .../firestore/apiv1/Client/Write/main.go | 5 + .../CancelOperation/main.go | 5 + .../FirestoreAdminClient/CreateIndex/main.go | 5 + .../FirestoreAdminClient/DeleteIndex/main.go | 5 + .../DeleteOperation/main.go | 5 + .../ExportDocuments/main.go | 5 + .../FirestoreAdminClient/GetDatabase/main.go | 5 + .../FirestoreAdminClient/GetField/main.go | 5 + .../FirestoreAdminClient/GetIndex/main.go | 5 + .../FirestoreAdminClient/GetOperation/main.go | 5 + .../ImportDocuments/main.go | 5 + .../ListDatabases/main.go | 5 + .../FirestoreAdminClient/ListFields/main.go | 5 + .../FirestoreAdminClient/ListIndexes/main.go | 5 + .../ListOperations/main.go | 5 + .../UpdateDatabase/main.go | 5 + .../FirestoreAdminClient/UpdateField/main.go | 5 + ...et_metadata.google.firestore.admin.v1.json | 32 +- .../snippet_metadata.google.firestore.v1.json | 34 +- .../CloudFunctionsClient/CallFunction/main.go | 5 + .../CreateFunction/main.go | 5 + .../DeleteFunction/main.go | 5 + .../GenerateDownloadUrl/main.go | 5 + .../GenerateUploadUrl/main.go | 5 + .../CloudFunctionsClient/GetFunction/main.go | 5 + .../CloudFunctionsClient/GetIamPolicy/main.go | 5 + .../ListFunctions/main.go | 5 + .../CloudFunctionsClient/SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateFunction/main.go | 5 + ...et_metadata.google.cloud.functions.v1.json | 22 +- .../FunctionClient/CreateFunction/main.go | 5 + .../FunctionClient/DeleteFunction/main.go | 5 + .../GenerateDownloadUrl/main.go | 5 + .../FunctionClient/GenerateUploadUrl/main.go | 5 + .../apiv2/FunctionClient/GetFunction/main.go | 5 + .../apiv2/FunctionClient/GetIamPolicy/main.go | 5 + .../apiv2/FunctionClient/GetOperation/main.go | 5 + .../FunctionClient/ListFunctions/main.go | 5 + .../FunctionClient/ListLocations/main.go | 5 + .../FunctionClient/ListOperations/main.go | 5 + .../apiv2/FunctionClient/ListRuntimes/main.go | 5 + .../apiv2/FunctionClient/SetIamPolicy/main.go | 5 + .../FunctionClient/TestIamPermissions/main.go | 5 + .../FunctionClient/UpdateFunction/main.go | 5 + ...et_metadata.google.cloud.functions.v2.json | 28 +- .../FunctionClient/CreateFunction/main.go | 5 + .../FunctionClient/DeleteFunction/main.go | 5 + .../GenerateDownloadUrl/main.go | 5 + .../FunctionClient/GenerateUploadUrl/main.go | 5 + .../FunctionClient/GetFunction/main.go | 5 + .../FunctionClient/GetIamPolicy/main.go | 5 + .../FunctionClient/GetOperation/main.go | 5 + .../FunctionClient/ListFunctions/main.go | 5 + .../FunctionClient/ListLocations/main.go | 5 + .../FunctionClient/ListOperations/main.go | 5 + .../FunctionClient/ListRuntimes/main.go | 5 + .../FunctionClient/SetIamPolicy/main.go | 5 + .../FunctionClient/TestIamPermissions/main.go | 5 + .../FunctionClient/UpdateFunction/main.go | 5 + ...etadata.google.cloud.functions.v2beta.json | 28 +- .../CreateGameServerCluster/main.go | 5 + .../DeleteGameServerCluster/main.go | 5 + .../GetGameServerCluster/main.go | 5 + .../ListGameServerClusters/main.go | 5 + .../PreviewCreateGameServerCluster/main.go | 5 + .../PreviewDeleteGameServerCluster/main.go | 5 + .../PreviewUpdateGameServerCluster/main.go | 5 + .../UpdateGameServerCluster/main.go | 5 + .../CreateGameServerConfig/main.go | 5 + .../DeleteGameServerConfig/main.go | 5 + .../GetGameServerConfig/main.go | 5 + .../ListGameServerConfigs/main.go | 5 + .../CreateGameServerDeployment/main.go | 5 + .../DeleteGameServerDeployment/main.go | 5 + .../FetchDeploymentState/main.go | 5 + .../GetGameServerDeployment/main.go | 5 + .../GetGameServerDeploymentRollout/main.go | 5 + .../ListGameServerDeployments/main.go | 5 + .../main.go | 5 + .../UpdateGameServerDeployment/main.go | 5 + .../UpdateGameServerDeploymentRollout/main.go | 5 + .../apiv1/RealmsClient/CreateRealm/main.go | 5 + .../apiv1/RealmsClient/DeleteRealm/main.go | 5 + .../apiv1/RealmsClient/GetRealm/main.go | 5 + .../apiv1/RealmsClient/ListRealms/main.go | 5 + .../RealmsClient/PreviewRealmUpdate/main.go | 5 + .../apiv1/RealmsClient/UpdateRealm/main.go | 5 + ...ippet_metadata.google.cloud.gaming.v1.json | 54 +- .../CreateGameServerCluster/main.go | 5 + .../DeleteGameServerCluster/main.go | 5 + .../GetGameServerCluster/main.go | 5 + .../ListGameServerClusters/main.go | 5 + .../PreviewCreateGameServerCluster/main.go | 5 + .../PreviewDeleteGameServerCluster/main.go | 5 + .../PreviewUpdateGameServerCluster/main.go | 5 + .../UpdateGameServerCluster/main.go | 5 + .../CreateGameServerConfig/main.go | 5 + .../DeleteGameServerConfig/main.go | 5 + .../GetGameServerConfig/main.go | 5 + .../ListGameServerConfigs/main.go | 5 + .../CreateGameServerDeployment/main.go | 5 + .../DeleteGameServerDeployment/main.go | 5 + .../FetchDeploymentState/main.go | 5 + .../GetGameServerDeployment/main.go | 5 + .../GetGameServerDeploymentRollout/main.go | 5 + .../ListGameServerDeployments/main.go | 5 + .../main.go | 5 + .../UpdateGameServerDeployment/main.go | 5 + .../UpdateGameServerDeploymentRollout/main.go | 5 + .../RealmsClient/CreateRealm/main.go | 5 + .../RealmsClient/DeleteRealm/main.go | 5 + .../apiv1beta/RealmsClient/GetRealm/main.go | 5 + .../apiv1beta/RealmsClient/ListRealms/main.go | 5 + .../RealmsClient/PreviewRealmUpdate/main.go | 5 + .../RealmsClient/UpdateRealm/main.go | 5 + ...t_metadata.google.cloud.gaming.v1beta.json | 54 +- .../BackupForGKEClient/CreateBackup/main.go | 5 + .../CreateBackupPlan/main.go | 5 + .../BackupForGKEClient/CreateRestore/main.go | 5 + .../CreateRestorePlan/main.go | 5 + .../BackupForGKEClient/DeleteBackup/main.go | 5 + .../DeleteBackupPlan/main.go | 5 + .../BackupForGKEClient/DeleteRestore/main.go | 5 + .../DeleteRestorePlan/main.go | 5 + .../BackupForGKEClient/GetBackup/main.go | 5 + .../BackupForGKEClient/GetBackupPlan/main.go | 5 + .../BackupForGKEClient/GetRestore/main.go | 5 + .../BackupForGKEClient/GetRestorePlan/main.go | 5 + .../GetVolumeBackup/main.go | 5 + .../GetVolumeRestore/main.go | 5 + .../ListBackupPlans/main.go | 5 + .../BackupForGKEClient/ListBackups/main.go | 5 + .../ListRestorePlans/main.go | 5 + .../BackupForGKEClient/ListRestores/main.go | 5 + .../ListVolumeBackups/main.go | 5 + .../ListVolumeRestores/main.go | 5 + .../BackupForGKEClient/UpdateBackup/main.go | 5 + .../UpdateBackupPlan/main.go | 5 + .../BackupForGKEClient/UpdateRestore/main.go | 5 + .../UpdateRestorePlan/main.go | 5 + ...et_metadata.google.cloud.gkebackup.v1.json | 48 +- .../apiv1beta1/Client/DeleteResource/main.go | 5 + .../apiv1beta1/Client/GetResource/main.go | 5 + .../apiv1beta1/Client/PatchResource/main.go | 5 + .../apiv1beta1/Client/PostResource/main.go | 5 + .../apiv1beta1/Client/PutResource/main.go | 5 + ...ogle.cloud.gkeconnect.gateway.v1beta1.json | 10 +- .../CancelOperation/main.go | 5 + .../CreateMembership/main.go | 5 + .../DeleteMembership/main.go | 5 + .../DeleteOperation/main.go | 5 + .../GenerateConnectManifest/main.go | 5 + .../GenerateExclusivityManifest/main.go | 5 + .../GetIamPolicy/main.go | 5 + .../GetLocation/main.go | 5 + .../GetMembership/main.go | 5 + .../GetOperation/main.go | 5 + .../ListLocations/main.go | 5 + .../ListMemberships/main.go | 5 + .../ListOperations/main.go | 5 + .../SetIamPolicy/main.go | 5 + .../TestIamPermissions/main.go | 5 + .../UpdateMembership/main.go | 5 + .../ValidateExclusivity/main.go | 5 + ..._metadata.google.cloud.gkehub.v1beta1.json | 34 +- .../CreateAwsCluster/main.go | 5 + .../CreateAwsNodePool/main.go | 5 + .../DeleteAwsCluster/main.go | 5 + .../DeleteAwsNodePool/main.go | 5 + .../GenerateAwsAccessToken/main.go | 5 + .../AwsClustersClient/GetAwsCluster/main.go | 5 + .../AwsClustersClient/GetAwsNodePool/main.go | 5 + .../GetAwsServerConfig/main.go | 5 + .../AwsClustersClient/ListAwsClusters/main.go | 5 + .../ListAwsNodePools/main.go | 5 + .../UpdateAwsCluster/main.go | 5 + .../UpdateAwsNodePool/main.go | 5 + .../CreateAzureClient/main.go | 5 + .../CreateAzureCluster/main.go | 5 + .../CreateAzureNodePool/main.go | 5 + .../DeleteAzureClient/main.go | 5 + .../DeleteAzureCluster/main.go | 5 + .../DeleteAzureNodePool/main.go | 5 + .../GenerateAzureAccessToken/main.go | 5 + .../GetAzureClient/main.go | 5 + .../GetAzureCluster/main.go | 5 + .../GetAzureNodePool/main.go | 5 + .../GetAzureServerConfig/main.go | 5 + .../ListAzureClients/main.go | 5 + .../ListAzureClusters/main.go | 5 + .../ListAzureNodePools/main.go | 5 + .../UpdateAzureCluster/main.go | 5 + .../UpdateAzureNodePool/main.go | 5 + ...etadata.google.cloud.gkemulticloud.v1.json | 56 +- internal/generated/snippets/go.mod | 10 +- internal/generated/snippets/go.sum | 23 +- internal/godocfx/go.mod | 4 +- internal/godocfx/go.sum | 7 +- iot/apiv1/device_manager_client.go | 6 +- .../device_manager_client_example_test.go | 100 ++ iot/apiv1/doc.go | 10 + iot/go.mod | 6 +- iot/go.sum | 9 +- kms/apiv1/doc.go | 10 + kms/apiv1/ekm_client.go | 6 +- kms/apiv1/ekm_client_example_test.go | 40 + kms/apiv1/key_management_client.go | 6 +- .../key_management_client_example_test.go | 150 ++ kms/go.mod | 6 +- kms/go.sum | 9 +- language/apiv1/doc.go | 10 + language/apiv1/language_client.go | 6 +- .../apiv1/language_client_example_test.go | 35 + language/apiv1beta2/doc.go | 10 + language/apiv1beta2/language_client.go | 8 +- .../language_client_example_test.go | 40 + language/go.mod | 12 +- language/go.sum | 20 +- lifesciences/apiv2beta/doc.go | 10 + .../workflows_service_v2_beta_client.go | 8 +- ...ows_service_v2_beta_client_example_test.go | 15 + lifesciences/go.mod | 4 +- lifesciences/go.sum | 9 +- logging/apiv2/config_client.go | 6 +- logging/apiv2/config_client_example_test.go | 135 ++ logging/apiv2/doc.go | 10 + logging/apiv2/logging_client.go | 6 +- logging/apiv2/logging_client_example_test.go | 35 + logging/apiv2/metrics_client.go | 6 +- logging/apiv2/metrics_client_example_test.go | 30 + logging/go.mod | 10 +- logging/go.sum | 17 +- longrunning/autogen/doc.go | 10 + longrunning/autogen/operations_client.go | 19 +- .../autogen/operations_client_example_test.go | 35 + managedidentities/apiv1/doc.go | 10 + .../apiv1/managed_identities_client.go | 6 +- .../managed_identities_client_example_test.go | 55 + managedidentities/go.mod | 10 +- managedidentities/go.sum | 20 +- mediatranslation/apiv1beta1/doc.go | 10 + .../apiv1beta1/speech_translation_client.go | 6 +- .../speech_translation_client_example_test.go | 10 + mediatranslation/go.mod | 4 +- mediatranslation/go.sum | 9 +- memcache/apiv1/cloud_memcache_client.go | 6 +- .../cloud_memcache_client_example_test.go | 40 + memcache/apiv1/doc.go | 10 + memcache/apiv1beta2/cloud_memcache_client.go | 16 +- .../cloud_memcache_client_example_test.go | 50 + memcache/apiv1beta2/doc.go | 10 + memcache/go.mod | 4 +- memcache/go.sum | 9 +- metastore/apiv1/dataproc_metastore_client.go | 6 +- .../dataproc_metastore_client_example_test.go | 80 + metastore/apiv1/doc.go | 10 + .../apiv1alpha/dataproc_metastore_client.go | 6 +- .../dataproc_metastore_client_example_test.go | 80 + metastore/apiv1alpha/doc.go | 10 + .../apiv1beta/dataproc_metastore_client.go | 24 +- .../dataproc_metastore_client_example_test.go | 85 ++ metastore/apiv1beta/doc.go | 10 + metastore/go.mod | 4 +- metastore/go.sum | 9 +- monitoring/apiv3/v2/alert_policy_client.go | 6 +- .../v2/alert_policy_client_example_test.go | 30 + monitoring/apiv3/v2/doc.go | 10 + monitoring/apiv3/v2/group_client.go | 6 +- .../apiv3/v2/group_client_example_test.go | 35 + monitoring/apiv3/v2/metric_client.go | 6 +- .../apiv3/v2/metric_client_example_test.go | 50 + .../apiv3/v2/notification_channel_client.go | 6 +- ...otification_channel_client_example_test.go | 55 + monitoring/apiv3/v2/query_client.go | 6 +- .../apiv3/v2/query_client_example_test.go | 10 + .../apiv3/v2/service_monitoring_client.go | 6 +- .../service_monitoring_client_example_test.go | 55 + monitoring/apiv3/v2/uptime_check_client.go | 6 +- .../v2/uptime_check_client_example_test.go | 35 + .../dashboard/apiv1/dashboards_client.go | 6 +- .../apiv1/dashboards_client_example_test.go | 30 + monitoring/dashboard/apiv1/doc.go | 10 + monitoring/go.mod | 4 +- monitoring/go.sum | 9 +- monitoring/metricsscope/apiv1/doc.go | 10 + .../apiv1/metrics_scopes_client.go | 6 +- .../metrics_scopes_client_example_test.go | 25 + networkconnectivity/apiv1/doc.go | 10 + networkconnectivity/apiv1/hub_client.go | 6 +- .../apiv1/hub_client_example_test.go | 55 + networkconnectivity/apiv1alpha1/doc.go | 10 + networkconnectivity/apiv1alpha1/hub_client.go | 6 +- .../apiv1alpha1/hub_client_example_test.go | 55 + networkconnectivity/go.mod | 4 +- networkconnectivity/go.sum | 9 +- networkmanagement/apiv1/doc.go | 10 + .../apiv1/reachability_client.go | 6 +- .../apiv1/reachability_client_example_test.go | 35 + networkmanagement/go.mod | 4 +- networkmanagement/go.sum | 9 +- networksecurity/apiv1beta1/doc.go | 10 + .../apiv1beta1/network_security_client.go | 6 +- .../network_security_client_example_test.go | 125 ++ networksecurity/go.mod | 4 +- networksecurity/go.sum | 9 +- notebooks/apiv1/doc.go | 10 + notebooks/apiv1/managed_notebook_client.go | 6 +- .../managed_notebook_client_example_test.go | 55 + notebooks/apiv1/notebook_client.go | 6 +- .../apiv1/notebook_client_example_test.go | 170 +++ notebooks/apiv1beta1/doc.go | 10 + notebooks/apiv1beta1/notebook_client.go | 6 +- .../notebook_client_example_test.go | 100 ++ notebooks/go.mod | 4 +- notebooks/go.sum | 9 +- optimization/apiv1/doc.go | 10 + optimization/apiv1/fleet_routing_client.go | 6 +- .../fleet_routing_client_example_test.go | 15 + optimization/go.mod | 4 +- optimization/go.sum | 9 +- orchestration/airflow/service/apiv1/doc.go | 10 + .../service/apiv1/environments_client.go | 6 +- .../apiv1/environments_client_example_test.go | 30 + .../service/apiv1/image_versions_client.go | 6 +- .../image_versions_client_example_test.go | 10 + orchestration/go.mod | 4 +- orchestration/go.sum | 9 +- orgpolicy/apiv2/doc.go | 10 + orgpolicy/apiv2/org_policy_client.go | 6 +- .../apiv2/org_policy_client_example_test.go | 40 + orgpolicy/go.mod | 10 +- orgpolicy/go.sum | 21 +- .../apiv1/agent_endpoint_client.go | 6 +- .../agent_endpoint_client_example_test.go | 30 + osconfig/agentendpoint/apiv1/doc.go | 5 + .../apiv1beta/agent_endpoint_client.go | 8 +- .../agent_endpoint_client_example_test.go | 35 + osconfig/agentendpoint/apiv1beta/doc.go | 5 + osconfig/apiv1/doc.go | 10 + osconfig/apiv1/os_config_client.go | 6 +- .../apiv1/os_config_client_example_test.go | 65 + osconfig/apiv1/os_config_zonal_client.go | 6 +- .../os_config_zonal_client_example_test.go | 65 + osconfig/apiv1alpha/doc.go | 10 + osconfig/apiv1alpha/os_config_zonal_client.go | 16 +- .../os_config_zonal_client_example_test.go | 80 + osconfig/apiv1beta/doc.go | 10 + osconfig/apiv1beta/os_config_client.go | 24 +- .../os_config_client_example_test.go | 100 ++ osconfig/go.mod | 4 +- osconfig/go.sum | 9 +- oslogin/apiv1/doc.go | 10 + oslogin/apiv1/os_login_client.go | 6 +- oslogin/apiv1/os_login_client_example_test.go | 35 + oslogin/apiv1beta/doc.go | 10 + oslogin/apiv1beta/os_login_client.go | 16 +- .../apiv1beta/os_login_client_example_test.go | 40 + oslogin/go.mod | 12 +- oslogin/go.sum | 29 +- phishingprotection/apiv1beta1/doc.go | 10 + ...hing_protection_service_v1_beta1_client.go | 8 +- ...on_service_v1_beta1_client_example_test.go | 15 + phishingprotection/go.mod | 6 +- phishingprotection/go.sum | 9 +- policytroubleshooter/apiv1/doc.go | 10 + .../apiv1/iam_checker_client.go | 6 +- .../apiv1/iam_checker_client_example_test.go | 10 + policytroubleshooter/go.mod | 4 +- policytroubleshooter/go.sum | 9 +- privatecatalog/apiv1beta1/doc.go | 10 + .../apiv1beta1/private_catalog_client.go | 8 +- .../private_catalog_client_example_test.go | 25 + privatecatalog/go.mod | 10 +- privatecatalog/go.sum | 21 +- profiler/go.mod | 10 +- profiler/go.sum | 17 +- pubsub/apiv1/doc.go | 10 + pubsub/apiv1/publisher_client.go | 6 +- pubsub/apiv1/publisher_client_example_test.go | 65 + pubsub/apiv1/schema_client.go | 6 +- pubsub/apiv1/schema_client_example_test.go | 50 + pubsub/apiv1/subscriber_client.go | 6 +- .../apiv1/subscriber_client_example_test.go | 100 ++ pubsub/go.mod | 4 +- pubsub/go.sum | 7 +- pubsublite/apiv1/admin_client.go | 6 +- pubsublite/apiv1/admin_client_example_test.go | 120 ++ pubsublite/apiv1/cursor_client.go | 6 +- .../apiv1/cursor_client_example_test.go | 40 + pubsublite/apiv1/doc.go | 10 + .../apiv1/partition_assignment_client.go | 6 +- ...artition_assignment_client_example_test.go | 30 + pubsublite/apiv1/publisher_client.go | 6 +- .../apiv1/publisher_client_example_test.go | 30 + pubsublite/apiv1/subscriber_client.go | 6 +- .../apiv1/subscriber_client_example_test.go | 30 + pubsublite/apiv1/topic_stats_client.go | 6 +- .../apiv1/topic_stats_client_example_test.go | 40 + pubsublite/go.mod | 4 +- pubsublite/go.sum | 7 +- recaptchaenterprise/apiv1beta1/doc.go | 10 + ...tcha_enterprise_service_v1_beta1_client.go | 8 +- ...se_service_v1_beta1_client_example_test.go | 20 + recaptchaenterprise/go.mod | 4 +- recaptchaenterprise/go.sum | 9 +- recaptchaenterprise/v2/apiv1/doc.go | 10 + .../v2/apiv1/recaptcha_enterprise_client.go | 6 +- ...ecaptcha_enterprise_client_example_test.go | 65 + recaptchaenterprise/v2/go.mod | 10 +- recaptchaenterprise/v2/go.sum | 21 +- .../apiv1beta1/catalog_client.go | 6 +- .../apiv1beta1/catalog_client_example_test.go | 35 + recommendationengine/apiv1beta1/doc.go | 10 + .../prediction_api_key_registry_client.go | 6 +- ...on_api_key_registry_client_example_test.go | 20 + .../apiv1beta1/prediction_client.go | 6 +- .../prediction_client_example_test.go | 10 + .../apiv1beta1/user_event_client.go | 6 +- .../user_event_client_example_test.go | 30 + recommendationengine/go.mod | 4 +- recommendationengine/go.sum | 9 +- recommender/apiv1/doc.go | 10 + recommender/apiv1/recommender_client.go | 6 +- .../apiv1/recommender_client_example_test.go | 65 + recommender/apiv1beta1/doc.go | 10 + recommender/apiv1beta1/recommender_client.go | 24 +- .../recommender_client_example_test.go | 70 + recommender/go.mod | 6 +- recommender/go.sum | 9 +- redis/apiv1/cloud_redis_client.go | 6 +- .../apiv1/cloud_redis_client_example_test.go | 60 + redis/apiv1/doc.go | 10 + redis/apiv1beta1/cloud_redis_client.go | 16 +- .../cloud_redis_client_example_test.go | 65 + redis/apiv1beta1/doc.go | 10 + redis/go.mod | 4 +- redis/go.sum | 9 +- resourcemanager/apiv2/doc.go | 10 + resourcemanager/apiv2/folders_client.go | 6 +- .../apiv2/folders_client_example_test.go | 60 + resourcemanager/apiv3/doc.go | 10 + resourcemanager/apiv3/folders_client.go | 6 +- .../apiv3/folders_client_example_test.go | 60 + resourcemanager/apiv3/organizations_client.go | 6 +- .../organizations_client_example_test.go | 30 + resourcemanager/apiv3/projects_client.go | 6 +- .../apiv3/projects_client_example_test.go | 60 + resourcemanager/apiv3/tag_bindings_client.go | 6 +- .../apiv3/tag_bindings_client_example_test.go | 20 + resourcemanager/apiv3/tag_keys_client.go | 6 +- .../apiv3/tag_keys_client_example_test.go | 45 + resourcemanager/apiv3/tag_values_client.go | 6 +- .../apiv3/tag_values_client_example_test.go | 45 + resourcemanager/go.mod | 4 +- resourcemanager/go.sum | 9 +- resourcesettings/apiv1/doc.go | 10 + .../apiv1/resource_settings_client.go | 6 +- .../resource_settings_client_example_test.go | 20 + resourcesettings/go.mod | 10 +- resourcesettings/go.sum | 21 +- retail/apiv2/catalog_client.go | 6 +- retail/apiv2/catalog_client_example_test.go | 70 + retail/apiv2/completion_client.go | 6 +- .../apiv2/completion_client_example_test.go | 25 + retail/apiv2/control_client.go | 6 +- retail/apiv2/control_client_example_test.go | 40 + retail/apiv2/doc.go | 10 + retail/apiv2/prediction_client.go | 6 +- .../apiv2/prediction_client_example_test.go | 20 + retail/apiv2/product_client.go | 6 +- retail/apiv2/product_client_example_test.go | 70 + retail/apiv2/search_client.go | 6 +- retail/apiv2/search_client_example_test.go | 20 + retail/apiv2/serving_config_client.go | 6 +- .../serving_config_client_example_test.go | 50 + retail/apiv2/user_event_client.go | 6 +- .../apiv2/user_event_client_example_test.go | 40 + retail/apiv2alpha/catalog_client.go | 6 +- .../apiv2alpha/catalog_client_example_test.go | 70 + retail/apiv2alpha/completion_client.go | 6 +- .../completion_client_example_test.go | 25 + retail/apiv2alpha/control_client.go | 6 +- .../apiv2alpha/control_client_example_test.go | 40 + retail/apiv2alpha/doc.go | 10 + retail/apiv2alpha/model_client.go | 6 +- .../apiv2alpha/model_client_example_test.go | 50 + retail/apiv2alpha/prediction_client.go | 6 +- .../prediction_client_example_test.go | 20 + retail/apiv2alpha/product_client.go | 6 +- .../apiv2alpha/product_client_example_test.go | 75 + retail/apiv2alpha/search_client.go | 6 +- .../apiv2alpha/search_client_example_test.go | 20 + retail/apiv2alpha/serving_config_client.go | 6 +- .../serving_config_client_example_test.go | 50 + retail/apiv2alpha/user_event_client.go | 6 +- .../user_event_client_example_test.go | 40 + retail/apiv2beta/catalog_client.go | 75 +- .../apiv2beta/catalog_client_example_test.go | 95 ++ retail/apiv2beta/completion_client.go | 14 +- .../completion_client_example_test.go | 25 + retail/apiv2beta/control_client.go | 11 +- .../apiv2beta/control_client_example_test.go | 40 + retail/apiv2beta/doc.go | 10 + retail/apiv2beta/gapic_metadata.json | 59 + retail/apiv2beta/model_client.go | 731 ++++++++++ retail/apiv2beta/model_client_example_test.go | 288 ++++ retail/apiv2beta/prediction_client.go | 6 +- .../prediction_client_example_test.go | 20 + retail/apiv2beta/product_client.go | 77 +- .../apiv2beta/product_client_example_test.go | 70 + retail/apiv2beta/search_client.go | 12 +- .../apiv2beta/search_client_example_test.go | 20 + retail/apiv2beta/serving_config_client.go | 6 +- .../serving_config_client_example_test.go | 50 + retail/apiv2beta/user_event_client.go | 22 +- .../user_event_client_example_test.go | 40 + retail/go.mod | 6 +- retail/go.sum | 16 +- run/apiv2/doc.go | 10 + run/apiv2/revisions_client.go | 6 +- run/apiv2/revisions_client_example_test.go | 20 + run/apiv2/services_client.go | 6 +- run/apiv2/services_client_example_test.go | 45 + run/go.mod | 4 +- run/go.sum | 9 +- scheduler/apiv1/cloud_scheduler_client.go | 6 +- .../cloud_scheduler_client_example_test.go | 45 + scheduler/apiv1/doc.go | 10 + .../apiv1beta1/cloud_scheduler_client.go | 16 +- .../cloud_scheduler_client_example_test.go | 50 + scheduler/apiv1beta1/doc.go | 10 + scheduler/go.mod | 6 +- scheduler/go.sum | 9 +- secretmanager/apiv1/doc.go | 10 + secretmanager/apiv1/secret_manager_client.go | 6 +- .../secret_manager_client_example_test.go | 80 + secretmanager/apiv1beta1/doc.go | 10 + .../apiv1beta1/secret_manager_client.go | 16 +- .../secret_manager_client_example_test.go | 85 ++ secretmanager/go.mod | 10 +- secretmanager/go.sum | 21 +- security/go.mod | 4 +- security/go.sum | 9 +- .../apiv1/certificate_authority_client.go | 6 +- ...rtificate_authority_client_example_test.go | 175 +++ security/privateca/apiv1/doc.go | 10 + .../certificate_authority_client.go | 6 +- ...rtificate_authority_client_example_test.go | 105 ++ security/privateca/apiv1beta1/doc.go | 10 + securitycenter/apiv1/doc.go | 10 + .../apiv1/security_center_client.go | 6 +- .../security_center_client_example_test.go | 205 +++ securitycenter/apiv1beta1/doc.go | 10 + .../apiv1beta1/security_center_client.go | 6 +- .../security_center_client_example_test.go | 95 ++ securitycenter/apiv1p1beta1/doc.go | 10 + .../apiv1p1beta1/security_center_client.go | 6 +- .../security_center_client_example_test.go | 120 ++ securitycenter/go.mod | 4 +- securitycenter/go.sum | 7 +- securitycenter/settings/apiv1beta1/doc.go | 10 + .../security_center_settings_client.go | 6 +- ...ity_center_settings_client_example_test.go | 70 + servicecontrol/apiv1/doc.go | 10 + .../apiv1/quota_controller_client.go | 6 +- .../quota_controller_client_example_test.go | 10 + .../apiv1/service_controller_client.go | 6 +- .../service_controller_client_example_test.go | 15 + servicecontrol/go.mod | 4 +- servicecontrol/go.sum | 9 +- servicedirectory/apiv1/doc.go | 10 + servicedirectory/apiv1/lookup_client.go | 6 +- .../apiv1/lookup_client_example_test.go | 10 + servicedirectory/apiv1/registration_client.go | 6 +- .../apiv1/registration_client_example_test.go | 95 ++ servicedirectory/apiv1beta1/doc.go | 10 + servicedirectory/apiv1beta1/lookup_client.go | 8 +- .../apiv1beta1/lookup_client_example_test.go | 15 + .../apiv1beta1/registration_client.go | 32 +- .../registration_client_example_test.go | 100 ++ servicedirectory/go.mod | 4 +- servicedirectory/go.sum | 9 +- servicemanagement/apiv1/doc.go | 10 + .../apiv1/service_manager_client.go | 6 +- .../service_manager_client_example_test.go | 70 + servicemanagement/go.mod | 4 +- servicemanagement/go.sum | 9 +- serviceusage/apiv1/doc.go | 10 + serviceusage/apiv1/service_usage_client.go | 6 +- .../service_usage_client_example_test.go | 35 + serviceusage/go.mod | 10 +- serviceusage/go.sum | 20 +- shell/apiv1/cloud_shell_client.go | 6 +- .../apiv1/cloud_shell_client_example_test.go | 30 + shell/apiv1/doc.go | 10 + shell/go.mod | 4 +- shell/go.sum | 9 +- .../database/apiv1/database_admin_client.go | 6 +- .../database_admin_client_example_test.go | 120 ++ spanner/admin/database/apiv1/doc.go | 10 + spanner/admin/instance/apiv1/doc.go | 10 + .../instance/apiv1/instance_admin_client.go | 6 +- .../instance_admin_client_example_test.go | 55 + spanner/apiv1/doc.go | 10 + spanner/apiv1/spanner_client.go | 6 +- spanner/apiv1/spanner_client_example_test.go | 70 + spanner/go.mod | 4 +- spanner/go.sum | 7 +- speech/apiv1/adaptation_client.go | 6 +- .../apiv1/adaptation_client_example_test.go | 55 + speech/apiv1/doc.go | 10 + speech/apiv1/speech_client.go | 6 +- speech/apiv1/speech_client_example_test.go | 20 + speech/apiv1p1beta1/adaptation_client.go | 24 +- .../adaptation_client_example_test.go | 60 + speech/apiv1p1beta1/doc.go | 10 + speech/apiv1p1beta1/speech_client.go | 8 +- .../speech_client_example_test.go | 25 + speech/go.mod | 12 +- speech/go.sum | 20 +- storage/go.mod | 4 +- storage/go.sum | 7 +- storage/internal/apiv2/doc.go | 10 + storage/internal/apiv2/storage_client.go | 6 +- .../apiv2/storage_client_example_test.go | 145 ++ storagetransfer/apiv1/doc.go | 10 + .../apiv1/storage_transfer_client.go | 6 +- .../storage_transfer_client_example_test.go | 70 + storagetransfer/go.mod | 10 +- storagetransfer/go.sum | 20 +- talent/apiv4/company_client.go | 6 +- talent/apiv4/company_client_example_test.go | 35 + talent/apiv4/completion_client.go | 6 +- .../apiv4/completion_client_example_test.go | 15 + talent/apiv4/doc.go | 10 + talent/apiv4/event_client.go | 6 +- talent/apiv4/event_client_example_test.go | 15 + talent/apiv4/job_client.go | 6 +- talent/apiv4/job_client_example_test.go | 60 + talent/apiv4/tenant_client.go | 6 +- talent/apiv4/tenant_client_example_test.go | 35 + talent/apiv4beta1/company_client.go | 8 +- .../apiv4beta1/company_client_example_test.go | 40 + talent/apiv4beta1/completion_client.go | 8 +- .../completion_client_example_test.go | 20 + talent/apiv4beta1/doc.go | 10 + talent/apiv4beta1/event_client.go | 8 +- .../apiv4beta1/event_client_example_test.go | 20 + talent/apiv4beta1/job_client.go | 8 +- talent/apiv4beta1/job_client_example_test.go | 65 + talent/apiv4beta1/tenant_client.go | 8 +- .../apiv4beta1/tenant_client_example_test.go | 40 + talent/go.mod | 4 +- talent/go.sum | 9 +- texttospeech/apiv1/doc.go | 10 + texttospeech/apiv1/text_to_speech_client.go | 6 +- .../text_to_speech_client_example_test.go | 15 + texttospeech/go.mod | 12 +- texttospeech/go.sum | 20 +- tpu/apiv1/doc.go | 10 + tpu/apiv1/tpu_client.go | 6 +- tpu/apiv1/tpu_client_example_test.go | 60 + tpu/go.mod | 10 +- tpu/go.sum | 20 +- trace/apiv1/doc.go | 10 + trace/apiv1/trace_client.go | 6 +- trace/apiv1/trace_client_example_test.go | 20 + trace/apiv2/doc.go | 10 + trace/apiv2/trace_client.go | 6 +- trace/apiv2/trace_client_example_test.go | 15 + trace/go.mod | 6 +- trace/go.sum | 9 +- translate/apiv3/doc.go | 10 + translate/apiv3/translation_client.go | 6 +- .../apiv3/translation_client_example_test.go | 55 + translate/go.mod | 6 +- translate/go.sum | 9 +- video/go.mod | 4 +- video/go.sum | 9 +- video/livestream/apiv1/doc.go | 10 + video/livestream/apiv1/livestream_client.go | 6 +- .../apiv1/livestream_client_example_test.go | 85 ++ video/stitcher/apiv1/doc.go | 10 + video/stitcher/apiv1/video_stitcher_client.go | 6 +- .../video_stitcher_client_example_test.go | 105 ++ video/transcoder/apiv1/doc.go | 10 + video/transcoder/apiv1/transcoder_client.go | 6 +- .../apiv1/transcoder_client_example_test.go | 45 + videointelligence/apiv1/doc.go | 10 + .../apiv1/video_intelligence_client.go | 6 +- .../video_intelligence_client_example_test.go | 10 + videointelligence/apiv1beta2/doc.go | 10 + .../apiv1beta2/video_intelligence_client.go | 8 +- .../video_intelligence_client_example_test.go | 15 + videointelligence/apiv1p3beta1/doc.go | 10 + .../streaming_video_intelligence_client.go | 6 +- ..._video_intelligence_client_example_test.go | 10 + .../apiv1p3beta1/video_intelligence_client.go | 6 +- .../video_intelligence_client_example_test.go | 10 + videointelligence/go.mod | 12 +- videointelligence/go.sum | 21 +- vision/apiv1p1beta1/doc.go | 10 + vision/apiv1p1beta1/image_annotator_client.go | 8 +- .../image_annotator_client_example_test.go | 15 + vision/go.mod | 4 +- vision/go.sum | 9 +- vision/v2/apiv1/doc.go | 10 + vision/v2/apiv1/image_annotator_client.go | 6 +- .../image_annotator_client_example_test.go | 25 + vision/v2/apiv1/product_search_client.go | 6 +- .../product_search_client_example_test.go | 100 ++ vision/v2/go.mod | 4 +- vision/v2/go.sum | 9 +- vmmigration/apiv1/doc.go | 10 + vmmigration/apiv1/vm_migration_client.go | 6 +- .../apiv1/vm_migration_client_example_test.go | 225 +++ vmmigration/go.mod | 4 +- vmmigration/go.sum | 9 +- vpcaccess/apiv1/doc.go | 10 + vpcaccess/apiv1/vpc_access_client.go | 6 +- .../apiv1/vpc_access_client_example_test.go | 40 + vpcaccess/go.mod | 4 +- vpcaccess/go.sum | 7 +- webrisk/apiv1/doc.go | 10 + webrisk/apiv1/web_risk_client.go | 6 +- webrisk/apiv1/web_risk_client_example_test.go | 25 + webrisk/apiv1beta1/doc.go | 10 + .../web_risk_service_v1_beta1_client.go | 8 +- ...sk_service_v1_beta1_client_example_test.go | 25 + webrisk/go.mod | 6 +- webrisk/go.sum | 9 +- websecurityscanner/apiv1/doc.go | 10 + .../apiv1/web_security_scanner_client.go | 6 +- ...eb_security_scanner_client_example_test.go | 70 + websecurityscanner/go.mod | 6 +- websecurityscanner/go.sum | 22 +- workflows/apiv1/doc.go | 10 + workflows/apiv1/workflows_client.go | 6 +- .../apiv1/workflows_client_example_test.go | 30 + workflows/apiv1beta/doc.go | 10 + workflows/apiv1beta/workflows_client.go | 16 +- .../workflows_client_example_test.go | 35 + workflows/executions/apiv1/doc.go | 10 + .../executions/apiv1/executions_client.go | 6 +- .../apiv1/executions_client_example_test.go | 25 + workflows/executions/apiv1beta/doc.go | 10 + .../executions/apiv1beta/executions_client.go | 8 +- .../executions_client_example_test.go | 30 + workflows/go.mod | 10 +- workflows/go.sum | 20 +- 5165 files changed, 57805 insertions(+), 6137 deletions(-) create mode 100644 retail/apiv2beta/model_client.go create mode 100644 retail/apiv2beta/model_client_example_test.go diff --git a/accessapproval/apiv1/access_approval_client.go b/accessapproval/apiv1/access_approval_client.go index 82fcd943262..30761818248 100644 --- a/accessapproval/apiv1/access_approval_client.go +++ b/accessapproval/apiv1/access_approval_client.go @@ -184,7 +184,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -355,7 +356,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/accessapproval/apiv1/access_approval_client_example_test.go b/accessapproval/apiv1/access_approval_client_example_test.go index 69286e9906b..40c1fdc260e 100644 --- a/accessapproval/apiv1/access_approval_client_example_test.go +++ b/accessapproval/apiv1/access_approval_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListApprovalRequests() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListApprovalRequests() { func ExampleClient_GetApprovalRequest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetApprovalRequest() { func ExampleClient_ApproveApprovalRequest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_ApproveApprovalRequest() { func ExampleClient_DismissApprovalRequest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleClient_DismissApprovalRequest() { func ExampleClient_InvalidateApprovalRequest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleClient_InvalidateApprovalRequest() { func ExampleClient_GetAccessApprovalSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleClient_GetAccessApprovalSettings() { func ExampleClient_UpdateAccessApprovalSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +224,11 @@ func ExampleClient_UpdateAccessApprovalSettings() { func ExampleClient_DeleteAccessApprovalSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleClient_DeleteAccessApprovalSettings() { func ExampleClient_GetAccessApprovalServiceAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/accessapproval/apiv1/doc.go b/accessapproval/apiv1/doc.go index 53d562bdba8..5a252e38960 100644 --- a/accessapproval/apiv1/doc.go +++ b/accessapproval/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := accessapproval.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := accessapproval.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/accessapproval/go.mod b/accessapproval/go.mod index 12adb73c59a..d112adcf37e 100644 --- a/accessapproval/go.mod +++ b/accessapproval/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/accessapproval/go.sum b/accessapproval/go.sum index e7f67e0edd5..19676af53bd 100644 --- a/accessapproval/go.sum +++ b/accessapproval/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/accesscontextmanager/apiv1/access_context_manager_client.go b/accesscontextmanager/apiv1/access_context_manager_client.go index d6055465031..b602404cad2 100644 --- a/accesscontextmanager/apiv1/access_context_manager_client.go +++ b/accesscontextmanager/apiv1/access_context_manager_client.go @@ -195,7 +195,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -616,7 +617,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/accesscontextmanager/apiv1/access_context_manager_client_example_test.go b/accesscontextmanager/apiv1/access_context_manager_client_example_test.go index 5502de9161e..31e6465700a 100644 --- a/accesscontextmanager/apiv1/access_context_manager_client_example_test.go +++ b/accesscontextmanager/apiv1/access_context_manager_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListAccessPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListAccessPolicies() { func ExampleClient_GetAccessPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetAccessPolicy() { func ExampleClient_CreateAccessPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_CreateAccessPolicy() { func ExampleClient_UpdateAccessPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleClient_UpdateAccessPolicy() { func ExampleClient_DeleteAccessPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleClient_DeleteAccessPolicy() { func ExampleClient_ListAccessLevels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleClient_ListAccessLevels() { func ExampleClient_GetAccessLevel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleClient_GetAccessLevel() { func ExampleClient_CreateAccessLevel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleClient_CreateAccessLevel() { func ExampleClient_UpdateAccessLevel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleClient_UpdateAccessLevel() { func ExampleClient_DeleteAccessLevel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleClient_DeleteAccessLevel() { func ExampleClient_ReplaceAccessLevels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +361,11 @@ func ExampleClient_ReplaceAccessLevels() { func ExampleClient_ListServicePerimeters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -327,6 +392,11 @@ func ExampleClient_ListServicePerimeters() { func ExampleClient_GetServicePerimeter() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +417,11 @@ func ExampleClient_GetServicePerimeter() { func ExampleClient_CreateServicePerimeter() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +447,11 @@ func ExampleClient_CreateServicePerimeter() { func ExampleClient_UpdateServicePerimeter() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -397,6 +477,11 @@ func ExampleClient_UpdateServicePerimeter() { func ExampleClient_DeleteServicePerimeter() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -420,6 +505,11 @@ func ExampleClient_DeleteServicePerimeter() { func ExampleClient_ReplaceServicePerimeters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -445,6 +535,11 @@ func ExampleClient_ReplaceServicePerimeters() { func ExampleClient_CommitServicePerimeters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -470,6 +565,11 @@ func ExampleClient_CommitServicePerimeters() { func ExampleClient_ListGcpUserAccessBindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -496,6 +596,11 @@ func ExampleClient_ListGcpUserAccessBindings() { func ExampleClient_GetGcpUserAccessBinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -516,6 +621,11 @@ func ExampleClient_GetGcpUserAccessBinding() { func ExampleClient_CreateGcpUserAccessBinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -541,6 +651,11 @@ func ExampleClient_CreateGcpUserAccessBinding() { func ExampleClient_UpdateGcpUserAccessBinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -566,6 +681,11 @@ func ExampleClient_UpdateGcpUserAccessBinding() { func ExampleClient_DeleteGcpUserAccessBinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/accesscontextmanager/apiv1/doc.go b/accesscontextmanager/apiv1/doc.go index f595212d86c..2f10cb3fd2c 100644 --- a/accesscontextmanager/apiv1/doc.go +++ b/accesscontextmanager/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := accesscontextmanager.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := accesscontextmanager.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/accesscontextmanager/go.mod b/accesscontextmanager/go.mod index 11d8f66e47c..e197a04c9eb 100644 --- a/accesscontextmanager/go.mod +++ b/accesscontextmanager/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/accesscontextmanager/go.sum b/accesscontextmanager/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/accesscontextmanager/go.sum +++ b/accesscontextmanager/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/aiplatform/apiv1/dataset_client.go b/aiplatform/apiv1/dataset_client.go index 51b6a7a5383..3e9f1ee0cce 100644 --- a/aiplatform/apiv1/dataset_client.go +++ b/aiplatform/apiv1/dataset_client.go @@ -171,7 +171,8 @@ func (c *DatasetClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DatasetClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -402,7 +403,8 @@ func NewDatasetClient(ctx context.Context, opts ...option.ClientOption) (*Datase // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *datasetGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/dataset_client_example_test.go b/aiplatform/apiv1/dataset_client_example_test.go index b94f366c3f2..31ebf428c85 100644 --- a/aiplatform/apiv1/dataset_client_example_test.go +++ b/aiplatform/apiv1/dataset_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewDatasetClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewDatasetClient() { func ExampleDatasetClient_CreateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleDatasetClient_CreateDataset() { func ExampleDatasetClient_GetDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleDatasetClient_GetDataset() { func ExampleDatasetClient_UpdateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleDatasetClient_UpdateDataset() { func ExampleDatasetClient_ListDatasets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleDatasetClient_ListDatasets() { func ExampleDatasetClient_DeleteDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleDatasetClient_DeleteDataset() { func ExampleDatasetClient_ImportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleDatasetClient_ImportData() { func ExampleDatasetClient_ExportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleDatasetClient_ExportData() { func ExampleDatasetClient_ListDataItems() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +276,11 @@ func ExampleDatasetClient_ListDataItems() { func ExampleDatasetClient_ListSavedQueries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -257,6 +307,11 @@ func ExampleDatasetClient_ListSavedQueries() { func ExampleDatasetClient_GetAnnotationSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -277,6 +332,11 @@ func ExampleDatasetClient_GetAnnotationSpec() { func ExampleDatasetClient_ListAnnotations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -303,6 +363,11 @@ func ExampleDatasetClient_ListAnnotations() { func ExampleDatasetClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -323,6 +388,11 @@ func ExampleDatasetClient_GetLocation() { func ExampleDatasetClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +419,11 @@ func ExampleDatasetClient_ListLocations() { func ExampleDatasetClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -369,6 +444,11 @@ func ExampleDatasetClient_GetIamPolicy() { func ExampleDatasetClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -389,6 +469,11 @@ func ExampleDatasetClient_SetIamPolicy() { func ExampleDatasetClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -409,6 +494,11 @@ func ExampleDatasetClient_TestIamPermissions() { func ExampleDatasetClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -427,6 +517,11 @@ func ExampleDatasetClient_CancelOperation() { func ExampleDatasetClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -445,6 +540,11 @@ func ExampleDatasetClient_DeleteOperation() { func ExampleDatasetClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -465,6 +565,11 @@ func ExampleDatasetClient_GetOperation() { func ExampleDatasetClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -491,6 +596,11 @@ func ExampleDatasetClient_ListOperations() { func ExampleDatasetClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/doc.go b/aiplatform/apiv1/doc.go index 7f0c0e8aa08..bcf4432db43 100644 --- a/aiplatform/apiv1/doc.go +++ b/aiplatform/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := aiplatform.NewDatasetClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := aiplatform.NewDatasetClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/aiplatform/apiv1/endpoint_client.go b/aiplatform/apiv1/endpoint_client.go index 7e2a7caef1e..ee5a6f2f6aa 100644 --- a/aiplatform/apiv1/endpoint_client.go +++ b/aiplatform/apiv1/endpoint_client.go @@ -158,7 +158,8 @@ func (c *EndpointClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EndpointClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -369,7 +370,8 @@ func NewEndpointClient(ctx context.Context, opts ...option.ClientOption) (*Endpo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *endpointGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/endpoint_client_example_test.go b/aiplatform/apiv1/endpoint_client_example_test.go index a3853c78dce..333e312e1f7 100644 --- a/aiplatform/apiv1/endpoint_client_example_test.go +++ b/aiplatform/apiv1/endpoint_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewEndpointClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewEndpointClient() { func ExampleEndpointClient_CreateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleEndpointClient_CreateEndpoint() { func ExampleEndpointClient_GetEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleEndpointClient_GetEndpoint() { func ExampleEndpointClient_ListEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleEndpointClient_ListEndpoints() { func ExampleEndpointClient_UpdateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleEndpointClient_UpdateEndpoint() { func ExampleEndpointClient_DeleteEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleEndpointClient_DeleteEndpoint() { func ExampleEndpointClient_DeployModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleEndpointClient_DeployModel() { func ExampleEndpointClient_UndeployModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleEndpointClient_UndeployModel() { func ExampleEndpointClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleEndpointClient_GetLocation() { func ExampleEndpointClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +301,11 @@ func ExampleEndpointClient_ListLocations() { func ExampleEndpointClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleEndpointClient_GetIamPolicy() { func ExampleEndpointClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -291,6 +351,11 @@ func ExampleEndpointClient_SetIamPolicy() { func ExampleEndpointClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -311,6 +376,11 @@ func ExampleEndpointClient_TestIamPermissions() { func ExampleEndpointClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -329,6 +399,11 @@ func ExampleEndpointClient_CancelOperation() { func ExampleEndpointClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +422,11 @@ func ExampleEndpointClient_DeleteOperation() { func ExampleEndpointClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -367,6 +447,11 @@ func ExampleEndpointClient_GetOperation() { func ExampleEndpointClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -393,6 +478,11 @@ func ExampleEndpointClient_ListOperations() { func ExampleEndpointClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/featurestore_client.go b/aiplatform/apiv1/featurestore_client.go index ce6973f9c0b..f3d1e94c6e9 100644 --- a/aiplatform/apiv1/featurestore_client.go +++ b/aiplatform/apiv1/featurestore_client.go @@ -204,7 +204,8 @@ func (c *FeaturestoreClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FeaturestoreClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -549,7 +550,8 @@ func NewFeaturestoreClient(ctx context.Context, opts ...option.ClientOption) (*F // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *featurestoreGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/featurestore_client_example_test.go b/aiplatform/apiv1/featurestore_client_example_test.go index c99c22cc723..cfab953fbfb 100644 --- a/aiplatform/apiv1/featurestore_client_example_test.go +++ b/aiplatform/apiv1/featurestore_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewFeaturestoreClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewFeaturestoreClient() { func ExampleFeaturestoreClient_CreateFeaturestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleFeaturestoreClient_CreateFeaturestore() { func ExampleFeaturestoreClient_GetFeaturestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleFeaturestoreClient_GetFeaturestore() { func ExampleFeaturestoreClient_ListFeaturestores() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleFeaturestoreClient_ListFeaturestores() { func ExampleFeaturestoreClient_UpdateFeaturestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleFeaturestoreClient_UpdateFeaturestore() { func ExampleFeaturestoreClient_DeleteFeaturestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleFeaturestoreClient_DeleteFeaturestore() { func ExampleFeaturestoreClient_CreateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -185,6 +220,11 @@ func ExampleFeaturestoreClient_CreateEntityType() { func ExampleFeaturestoreClient_GetEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleFeaturestoreClient_GetEntityType() { func ExampleFeaturestoreClient_ListEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +276,11 @@ func ExampleFeaturestoreClient_ListEntityTypes() { func ExampleFeaturestoreClient_UpdateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +301,11 @@ func ExampleFeaturestoreClient_UpdateEntityType() { func ExampleFeaturestoreClient_DeleteEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +329,11 @@ func ExampleFeaturestoreClient_DeleteEntityType() { func ExampleFeaturestoreClient_CreateFeature() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -299,6 +359,11 @@ func ExampleFeaturestoreClient_CreateFeature() { func ExampleFeaturestoreClient_BatchCreateFeatures() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -324,6 +389,11 @@ func ExampleFeaturestoreClient_BatchCreateFeatures() { func ExampleFeaturestoreClient_GetFeature() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -344,6 +414,11 @@ func ExampleFeaturestoreClient_GetFeature() { func ExampleFeaturestoreClient_ListFeatures() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -370,6 +445,11 @@ func ExampleFeaturestoreClient_ListFeatures() { func ExampleFeaturestoreClient_UpdateFeature() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -390,6 +470,11 @@ func ExampleFeaturestoreClient_UpdateFeature() { func ExampleFeaturestoreClient_DeleteFeature() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -413,6 +498,11 @@ func ExampleFeaturestoreClient_DeleteFeature() { func ExampleFeaturestoreClient_ImportFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +528,11 @@ func ExampleFeaturestoreClient_ImportFeatureValues() { func ExampleFeaturestoreClient_BatchReadFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -463,6 +558,11 @@ func ExampleFeaturestoreClient_BatchReadFeatureValues() { func ExampleFeaturestoreClient_ExportFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -488,6 +588,11 @@ func ExampleFeaturestoreClient_ExportFeatureValues() { func ExampleFeaturestoreClient_SearchFeatures() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -514,6 +619,11 @@ func ExampleFeaturestoreClient_SearchFeatures() { func ExampleFeaturestoreClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -534,6 +644,11 @@ func ExampleFeaturestoreClient_GetLocation() { func ExampleFeaturestoreClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -560,6 +675,11 @@ func ExampleFeaturestoreClient_ListLocations() { func ExampleFeaturestoreClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -580,6 +700,11 @@ func ExampleFeaturestoreClient_GetIamPolicy() { func ExampleFeaturestoreClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -600,6 +725,11 @@ func ExampleFeaturestoreClient_SetIamPolicy() { func ExampleFeaturestoreClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -620,6 +750,11 @@ func ExampleFeaturestoreClient_TestIamPermissions() { func ExampleFeaturestoreClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -638,6 +773,11 @@ func ExampleFeaturestoreClient_CancelOperation() { func ExampleFeaturestoreClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -656,6 +796,11 @@ func ExampleFeaturestoreClient_DeleteOperation() { func ExampleFeaturestoreClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -676,6 +821,11 @@ func ExampleFeaturestoreClient_GetOperation() { func ExampleFeaturestoreClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -702,6 +852,11 @@ func ExampleFeaturestoreClient_ListOperations() { func ExampleFeaturestoreClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/featurestore_online_serving_client.go b/aiplatform/apiv1/featurestore_online_serving_client.go index b1846f41305..4e09adb7984 100644 --- a/aiplatform/apiv1/featurestore_online_serving_client.go +++ b/aiplatform/apiv1/featurestore_online_serving_client.go @@ -131,7 +131,8 @@ func (c *FeaturestoreOnlineServingClient) setGoogleClientInfo(keyval ...string) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FeaturestoreOnlineServingClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -280,7 +281,8 @@ func NewFeaturestoreOnlineServingClient(ctx context.Context, opts ...option.Clie // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *featurestoreOnlineServingGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/featurestore_online_serving_client_example_test.go b/aiplatform/apiv1/featurestore_online_serving_client_example_test.go index 2e0df3b54b1..3d7fe7891eb 100644 --- a/aiplatform/apiv1/featurestore_online_serving_client_example_test.go +++ b/aiplatform/apiv1/featurestore_online_serving_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewFeaturestoreOnlineServingClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewFeaturestoreOnlineServingClient() { func ExampleFeaturestoreOnlineServingClient_ReadFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleFeaturestoreOnlineServingClient_ReadFeatureValues() { func ExampleFeaturestoreOnlineServingClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleFeaturestoreOnlineServingClient_GetLocation() { func ExampleFeaturestoreOnlineServingClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleFeaturestoreOnlineServingClient_ListLocations() { func ExampleFeaturestoreOnlineServingClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleFeaturestoreOnlineServingClient_GetIamPolicy() { func ExampleFeaturestoreOnlineServingClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleFeaturestoreOnlineServingClient_SetIamPolicy() { func ExampleFeaturestoreOnlineServingClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -167,6 +202,11 @@ func ExampleFeaturestoreOnlineServingClient_TestIamPermissions() { func ExampleFeaturestoreOnlineServingClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -185,6 +225,11 @@ func ExampleFeaturestoreOnlineServingClient_CancelOperation() { func ExampleFeaturestoreOnlineServingClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleFeaturestoreOnlineServingClient_DeleteOperation() { func ExampleFeaturestoreOnlineServingClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleFeaturestoreOnlineServingClient_GetOperation() { func ExampleFeaturestoreOnlineServingClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +304,11 @@ func ExampleFeaturestoreOnlineServingClient_ListOperations() { func ExampleFeaturestoreOnlineServingClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/index_client.go b/aiplatform/apiv1/index_client.go index e3f8914d7b8..fc7426c0fee 100644 --- a/aiplatform/apiv1/index_client.go +++ b/aiplatform/apiv1/index_client.go @@ -157,7 +157,8 @@ func (c *IndexClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IndexClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -363,7 +364,8 @@ func NewIndexClient(ctx context.Context, opts ...option.ClientOption) (*IndexCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *indexGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/index_client_example_test.go b/aiplatform/apiv1/index_client_example_test.go index c2573b2a3b9..2797f884878 100644 --- a/aiplatform/apiv1/index_client_example_test.go +++ b/aiplatform/apiv1/index_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewIndexClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewIndexClient() { func ExampleIndexClient_CreateIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleIndexClient_CreateIndex() { func ExampleIndexClient_GetIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleIndexClient_GetIndex() { func ExampleIndexClient_ListIndexes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleIndexClient_ListIndexes() { func ExampleIndexClient_UpdateIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleIndexClient_UpdateIndex() { func ExampleIndexClient_DeleteIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleIndexClient_DeleteIndex() { func ExampleIndexClient_UpsertDatapoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleIndexClient_UpsertDatapoints() { func ExampleIndexClient_RemoveDatapoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleIndexClient_RemoveDatapoints() { func ExampleIndexClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +265,11 @@ func ExampleIndexClient_GetLocation() { func ExampleIndexClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleIndexClient_ListLocations() { func ExampleIndexClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +321,11 @@ func ExampleIndexClient_GetIamPolicy() { func ExampleIndexClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +346,11 @@ func ExampleIndexClient_SetIamPolicy() { func ExampleIndexClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +371,11 @@ func ExampleIndexClient_TestIamPermissions() { func ExampleIndexClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -324,6 +394,11 @@ func ExampleIndexClient_CancelOperation() { func ExampleIndexClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -342,6 +417,11 @@ func ExampleIndexClient_DeleteOperation() { func ExampleIndexClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -362,6 +442,11 @@ func ExampleIndexClient_GetOperation() { func ExampleIndexClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -388,6 +473,11 @@ func ExampleIndexClient_ListOperations() { func ExampleIndexClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/index_endpoint_client.go b/aiplatform/apiv1/index_endpoint_client.go index de41bc7e636..a24decc1a55 100644 --- a/aiplatform/apiv1/index_endpoint_client.go +++ b/aiplatform/apiv1/index_endpoint_client.go @@ -162,7 +162,8 @@ func (c *IndexEndpointClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IndexEndpointClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -386,7 +387,8 @@ func NewIndexEndpointClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *indexEndpointGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/index_endpoint_client_example_test.go b/aiplatform/apiv1/index_endpoint_client_example_test.go index fceedf95a52..130a723c733 100644 --- a/aiplatform/apiv1/index_endpoint_client_example_test.go +++ b/aiplatform/apiv1/index_endpoint_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewIndexEndpointClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewIndexEndpointClient() { func ExampleIndexEndpointClient_CreateIndexEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleIndexEndpointClient_CreateIndexEndpoint() { func ExampleIndexEndpointClient_GetIndexEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleIndexEndpointClient_GetIndexEndpoint() { func ExampleIndexEndpointClient_ListIndexEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleIndexEndpointClient_ListIndexEndpoints() { func ExampleIndexEndpointClient_UpdateIndexEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleIndexEndpointClient_UpdateIndexEndpoint() { func ExampleIndexEndpointClient_DeleteIndexEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleIndexEndpointClient_DeleteIndexEndpoint() { func ExampleIndexEndpointClient_DeployIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleIndexEndpointClient_DeployIndex() { func ExampleIndexEndpointClient_UndeployIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleIndexEndpointClient_UndeployIndex() { func ExampleIndexEndpointClient_MutateDeployedIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -230,6 +275,11 @@ func ExampleIndexEndpointClient_MutateDeployedIndex() { func ExampleIndexEndpointClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -250,6 +300,11 @@ func ExampleIndexEndpointClient_GetLocation() { func ExampleIndexEndpointClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleIndexEndpointClient_ListLocations() { func ExampleIndexEndpointClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -296,6 +356,11 @@ func ExampleIndexEndpointClient_GetIamPolicy() { func ExampleIndexEndpointClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -316,6 +381,11 @@ func ExampleIndexEndpointClient_SetIamPolicy() { func ExampleIndexEndpointClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -336,6 +406,11 @@ func ExampleIndexEndpointClient_TestIamPermissions() { func ExampleIndexEndpointClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -354,6 +429,11 @@ func ExampleIndexEndpointClient_CancelOperation() { func ExampleIndexEndpointClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +452,11 @@ func ExampleIndexEndpointClient_DeleteOperation() { func ExampleIndexEndpointClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -392,6 +477,11 @@ func ExampleIndexEndpointClient_GetOperation() { func ExampleIndexEndpointClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +508,11 @@ func ExampleIndexEndpointClient_ListOperations() { func ExampleIndexEndpointClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/job_client.go b/aiplatform/apiv1/job_client.go index e90ba2984df..9f4467953a9 100644 --- a/aiplatform/apiv1/job_client.go +++ b/aiplatform/apiv1/job_client.go @@ -223,7 +223,8 @@ func (c *JobClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *JobClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -585,7 +586,8 @@ func NewJobClient(ctx context.Context, opts ...option.ClientOption) (*JobClient, // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *jobGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/job_client_example_test.go b/aiplatform/apiv1/job_client_example_test.go index eea5671cdf1..07576a1c4a2 100644 --- a/aiplatform/apiv1/job_client_example_test.go +++ b/aiplatform/apiv1/job_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewJobClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewJobClient() { func ExampleJobClient_CreateCustomJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleJobClient_CreateCustomJob() { func ExampleJobClient_GetCustomJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleJobClient_GetCustomJob() { func ExampleJobClient_ListCustomJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleJobClient_ListCustomJobs() { func ExampleJobClient_DeleteCustomJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleJobClient_DeleteCustomJob() { func ExampleJobClient_CancelCustomJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +178,11 @@ func ExampleJobClient_CancelCustomJob() { func ExampleJobClient_CreateDataLabelingJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleJobClient_CreateDataLabelingJob() { func ExampleJobClient_GetDataLabelingJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleJobClient_GetDataLabelingJob() { func ExampleJobClient_ListDataLabelingJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +259,11 @@ func ExampleJobClient_ListDataLabelingJobs() { func ExampleJobClient_DeleteDataLabelingJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -237,6 +287,11 @@ func ExampleJobClient_DeleteDataLabelingJob() { func ExampleJobClient_CancelDataLabelingJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +310,11 @@ func ExampleJobClient_CancelDataLabelingJob() { func ExampleJobClient_CreateHyperparameterTuningJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +335,11 @@ func ExampleJobClient_CreateHyperparameterTuningJob() { func ExampleJobClient_GetHyperparameterTuningJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -295,6 +360,11 @@ func ExampleJobClient_GetHyperparameterTuningJob() { func ExampleJobClient_ListHyperparameterTuningJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +391,11 @@ func ExampleJobClient_ListHyperparameterTuningJobs() { func ExampleJobClient_DeleteHyperparameterTuningJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -344,6 +419,11 @@ func ExampleJobClient_DeleteHyperparameterTuningJob() { func ExampleJobClient_CancelHyperparameterTuningJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -362,6 +442,11 @@ func ExampleJobClient_CancelHyperparameterTuningJob() { func ExampleJobClient_CreateBatchPredictionJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -382,6 +467,11 @@ func ExampleJobClient_CreateBatchPredictionJob() { func ExampleJobClient_GetBatchPredictionJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -402,6 +492,11 @@ func ExampleJobClient_GetBatchPredictionJob() { func ExampleJobClient_ListBatchPredictionJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -428,6 +523,11 @@ func ExampleJobClient_ListBatchPredictionJobs() { func ExampleJobClient_DeleteBatchPredictionJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -451,6 +551,11 @@ func ExampleJobClient_DeleteBatchPredictionJob() { func ExampleJobClient_CancelBatchPredictionJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -469,6 +574,11 @@ func ExampleJobClient_CancelBatchPredictionJob() { func ExampleJobClient_CreateModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -489,6 +599,11 @@ func ExampleJobClient_CreateModelDeploymentMonitoringJob() { func ExampleJobClient_SearchModelDeploymentMonitoringStatsAnomalies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -515,6 +630,11 @@ func ExampleJobClient_SearchModelDeploymentMonitoringStatsAnomalies() { func ExampleJobClient_GetModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -535,6 +655,11 @@ func ExampleJobClient_GetModelDeploymentMonitoringJob() { func ExampleJobClient_ListModelDeploymentMonitoringJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -561,6 +686,11 @@ func ExampleJobClient_ListModelDeploymentMonitoringJobs() { func ExampleJobClient_UpdateModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -586,6 +716,11 @@ func ExampleJobClient_UpdateModelDeploymentMonitoringJob() { func ExampleJobClient_DeleteModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -609,6 +744,11 @@ func ExampleJobClient_DeleteModelDeploymentMonitoringJob() { func ExampleJobClient_PauseModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -627,6 +767,11 @@ func ExampleJobClient_PauseModelDeploymentMonitoringJob() { func ExampleJobClient_ResumeModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -645,6 +790,11 @@ func ExampleJobClient_ResumeModelDeploymentMonitoringJob() { func ExampleJobClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -665,6 +815,11 @@ func ExampleJobClient_GetLocation() { func ExampleJobClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -691,6 +846,11 @@ func ExampleJobClient_ListLocations() { func ExampleJobClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -711,6 +871,11 @@ func ExampleJobClient_GetIamPolicy() { func ExampleJobClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -731,6 +896,11 @@ func ExampleJobClient_SetIamPolicy() { func ExampleJobClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -751,6 +921,11 @@ func ExampleJobClient_TestIamPermissions() { func ExampleJobClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -769,6 +944,11 @@ func ExampleJobClient_CancelOperation() { func ExampleJobClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -787,6 +967,11 @@ func ExampleJobClient_DeleteOperation() { func ExampleJobClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -807,6 +992,11 @@ func ExampleJobClient_GetOperation() { func ExampleJobClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -833,6 +1023,11 @@ func ExampleJobClient_ListOperations() { func ExampleJobClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/metadata_client.go b/aiplatform/apiv1/metadata_client.go index f1e131c49cd..a351d459508 100644 --- a/aiplatform/apiv1/metadata_client.go +++ b/aiplatform/apiv1/metadata_client.go @@ -234,7 +234,8 @@ func (c *MetadataClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MetadataClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -602,7 +603,8 @@ func NewMetadataClient(ctx context.Context, opts ...option.ClientOption) (*Metad // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *metadataGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/metadata_client_example_test.go b/aiplatform/apiv1/metadata_client_example_test.go index 151f4026b65..4d8b1b5bd9a 100644 --- a/aiplatform/apiv1/metadata_client_example_test.go +++ b/aiplatform/apiv1/metadata_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewMetadataClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewMetadataClient() { func ExampleMetadataClient_CreateMetadataStore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleMetadataClient_CreateMetadataStore() { func ExampleMetadataClient_GetMetadataStore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleMetadataClient_GetMetadataStore() { func ExampleMetadataClient_ListMetadataStores() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleMetadataClient_ListMetadataStores() { func ExampleMetadataClient_DeleteMetadataStore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleMetadataClient_DeleteMetadataStore() { func ExampleMetadataClient_CreateArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleMetadataClient_CreateArtifact() { func ExampleMetadataClient_GetArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -175,6 +210,11 @@ func ExampleMetadataClient_GetArtifact() { func ExampleMetadataClient_ListArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +241,11 @@ func ExampleMetadataClient_ListArtifacts() { func ExampleMetadataClient_UpdateArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +266,11 @@ func ExampleMetadataClient_UpdateArtifact() { func ExampleMetadataClient_DeleteArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -244,6 +294,11 @@ func ExampleMetadataClient_DeleteArtifact() { func ExampleMetadataClient_PurgeArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +324,11 @@ func ExampleMetadataClient_PurgeArtifacts() { func ExampleMetadataClient_CreateContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +349,11 @@ func ExampleMetadataClient_CreateContext() { func ExampleMetadataClient_GetContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -309,6 +374,11 @@ func ExampleMetadataClient_GetContext() { func ExampleMetadataClient_ListContexts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -335,6 +405,11 @@ func ExampleMetadataClient_ListContexts() { func ExampleMetadataClient_UpdateContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -355,6 +430,11 @@ func ExampleMetadataClient_UpdateContext() { func ExampleMetadataClient_DeleteContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -378,6 +458,11 @@ func ExampleMetadataClient_DeleteContext() { func ExampleMetadataClient_PurgeContexts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -403,6 +488,11 @@ func ExampleMetadataClient_PurgeContexts() { func ExampleMetadataClient_AddContextArtifactsAndExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -423,6 +513,11 @@ func ExampleMetadataClient_AddContextArtifactsAndExecutions() { func ExampleMetadataClient_AddContextChildren() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +538,11 @@ func ExampleMetadataClient_AddContextChildren() { func ExampleMetadataClient_QueryContextLineageSubgraph() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -463,6 +563,11 @@ func ExampleMetadataClient_QueryContextLineageSubgraph() { func ExampleMetadataClient_CreateExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -483,6 +588,11 @@ func ExampleMetadataClient_CreateExecution() { func ExampleMetadataClient_GetExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -503,6 +613,11 @@ func ExampleMetadataClient_GetExecution() { func ExampleMetadataClient_ListExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -529,6 +644,11 @@ func ExampleMetadataClient_ListExecutions() { func ExampleMetadataClient_UpdateExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -549,6 +669,11 @@ func ExampleMetadataClient_UpdateExecution() { func ExampleMetadataClient_DeleteExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -572,6 +697,11 @@ func ExampleMetadataClient_DeleteExecution() { func ExampleMetadataClient_PurgeExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -597,6 +727,11 @@ func ExampleMetadataClient_PurgeExecutions() { func ExampleMetadataClient_AddExecutionEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -617,6 +752,11 @@ func ExampleMetadataClient_AddExecutionEvents() { func ExampleMetadataClient_QueryExecutionInputsAndOutputs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -637,6 +777,11 @@ func ExampleMetadataClient_QueryExecutionInputsAndOutputs() { func ExampleMetadataClient_CreateMetadataSchema() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -657,6 +802,11 @@ func ExampleMetadataClient_CreateMetadataSchema() { func ExampleMetadataClient_GetMetadataSchema() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -677,6 +827,11 @@ func ExampleMetadataClient_GetMetadataSchema() { func ExampleMetadataClient_ListMetadataSchemas() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -703,6 +858,11 @@ func ExampleMetadataClient_ListMetadataSchemas() { func ExampleMetadataClient_QueryArtifactLineageSubgraph() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -723,6 +883,11 @@ func ExampleMetadataClient_QueryArtifactLineageSubgraph() { func ExampleMetadataClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -743,6 +908,11 @@ func ExampleMetadataClient_GetLocation() { func ExampleMetadataClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -769,6 +939,11 @@ func ExampleMetadataClient_ListLocations() { func ExampleMetadataClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -789,6 +964,11 @@ func ExampleMetadataClient_GetIamPolicy() { func ExampleMetadataClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -809,6 +989,11 @@ func ExampleMetadataClient_SetIamPolicy() { func ExampleMetadataClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -829,6 +1014,11 @@ func ExampleMetadataClient_TestIamPermissions() { func ExampleMetadataClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -847,6 +1037,11 @@ func ExampleMetadataClient_CancelOperation() { func ExampleMetadataClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -865,6 +1060,11 @@ func ExampleMetadataClient_DeleteOperation() { func ExampleMetadataClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -885,6 +1085,11 @@ func ExampleMetadataClient_GetOperation() { func ExampleMetadataClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -911,6 +1116,11 @@ func ExampleMetadataClient_ListOperations() { func ExampleMetadataClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/migration_client.go b/aiplatform/apiv1/migration_client.go index ad8248a244e..2cbb9d7aa5e 100644 --- a/aiplatform/apiv1/migration_client.go +++ b/aiplatform/apiv1/migration_client.go @@ -141,7 +141,8 @@ func (c *MigrationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MigrationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -312,7 +313,8 @@ func NewMigrationClient(ctx context.Context, opts ...option.ClientOption) (*Migr // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *migrationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/migration_client_example_test.go b/aiplatform/apiv1/migration_client_example_test.go index 32d6b362169..c6b7a46c415 100644 --- a/aiplatform/apiv1/migration_client_example_test.go +++ b/aiplatform/apiv1/migration_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewMigrationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewMigrationClient() { func ExampleMigrationClient_SearchMigratableResources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleMigrationClient_SearchMigratableResources() { func ExampleMigrationClient_BatchMigrateResources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -92,6 +107,11 @@ func ExampleMigrationClient_BatchMigrateResources() { func ExampleMigrationClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleMigrationClient_GetLocation() { func ExampleMigrationClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +163,11 @@ func ExampleMigrationClient_ListLocations() { func ExampleMigrationClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -158,6 +188,11 @@ func ExampleMigrationClient_GetIamPolicy() { func ExampleMigrationClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -178,6 +213,11 @@ func ExampleMigrationClient_SetIamPolicy() { func ExampleMigrationClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -198,6 +238,11 @@ func ExampleMigrationClient_TestIamPermissions() { func ExampleMigrationClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +261,11 @@ func ExampleMigrationClient_CancelOperation() { func ExampleMigrationClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +284,11 @@ func ExampleMigrationClient_DeleteOperation() { func ExampleMigrationClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +309,11 @@ func ExampleMigrationClient_GetOperation() { func ExampleMigrationClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +340,11 @@ func ExampleMigrationClient_ListOperations() { func ExampleMigrationClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/model_client.go b/aiplatform/apiv1/model_client.go index 6b1865eba97..8e897965c9e 100644 --- a/aiplatform/apiv1/model_client.go +++ b/aiplatform/apiv1/model_client.go @@ -182,7 +182,8 @@ func (c *ModelClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ModelClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -442,7 +443,8 @@ func NewModelClient(ctx context.Context, opts ...option.ClientOption) (*ModelCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *modelGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/model_client_example_test.go b/aiplatform/apiv1/model_client_example_test.go index 5084f87ea0b..5363df34ff4 100644 --- a/aiplatform/apiv1/model_client_example_test.go +++ b/aiplatform/apiv1/model_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewModelClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewModelClient() { func ExampleModelClient_UploadModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleModelClient_UploadModel() { func ExampleModelClient_GetModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleModelClient_GetModel() { func ExampleModelClient_ListModels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleModelClient_ListModels() { func ExampleModelClient_ListModelVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +163,11 @@ func ExampleModelClient_ListModelVersions() { func ExampleModelClient_UpdateModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -158,6 +188,11 @@ func ExampleModelClient_UpdateModel() { func ExampleModelClient_DeleteModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +216,11 @@ func ExampleModelClient_DeleteModel() { func ExampleModelClient_DeleteModelVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -204,6 +244,11 @@ func ExampleModelClient_DeleteModelVersion() { func ExampleModelClient_MergeVersionAliases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -224,6 +269,11 @@ func ExampleModelClient_MergeVersionAliases() { func ExampleModelClient_ExportModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +299,11 @@ func ExampleModelClient_ExportModel() { func ExampleModelClient_ImportModelEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +324,11 @@ func ExampleModelClient_ImportModelEvaluation() { func ExampleModelClient_BatchImportModelEvaluationSlices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +349,11 @@ func ExampleModelClient_BatchImportModelEvaluationSlices() { func ExampleModelClient_GetModelEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -309,6 +374,11 @@ func ExampleModelClient_GetModelEvaluation() { func ExampleModelClient_ListModelEvaluations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -335,6 +405,11 @@ func ExampleModelClient_ListModelEvaluations() { func ExampleModelClient_GetModelEvaluationSlice() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -355,6 +430,11 @@ func ExampleModelClient_GetModelEvaluationSlice() { func ExampleModelClient_ListModelEvaluationSlices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -381,6 +461,11 @@ func ExampleModelClient_ListModelEvaluationSlices() { func ExampleModelClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -401,6 +486,11 @@ func ExampleModelClient_GetLocation() { func ExampleModelClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -427,6 +517,11 @@ func ExampleModelClient_ListLocations() { func ExampleModelClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -447,6 +542,11 @@ func ExampleModelClient_GetIamPolicy() { func ExampleModelClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -467,6 +567,11 @@ func ExampleModelClient_SetIamPolicy() { func ExampleModelClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -487,6 +592,11 @@ func ExampleModelClient_TestIamPermissions() { func ExampleModelClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -505,6 +615,11 @@ func ExampleModelClient_CancelOperation() { func ExampleModelClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -523,6 +638,11 @@ func ExampleModelClient_DeleteOperation() { func ExampleModelClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -543,6 +663,11 @@ func ExampleModelClient_GetOperation() { func ExampleModelClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -569,6 +694,11 @@ func ExampleModelClient_ListOperations() { func ExampleModelClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/pipeline_client.go b/aiplatform/apiv1/pipeline_client.go index 6668af5f76e..c9db75fd673 100644 --- a/aiplatform/apiv1/pipeline_client.go +++ b/aiplatform/apiv1/pipeline_client.go @@ -167,7 +167,8 @@ func (c *PipelineClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PipelineClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -401,7 +402,8 @@ func NewPipelineClient(ctx context.Context, opts ...option.ClientOption) (*Pipel // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *pipelineGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/pipeline_client_example_test.go b/aiplatform/apiv1/pipeline_client_example_test.go index f67d14e9bc1..c3e6b8eecac 100644 --- a/aiplatform/apiv1/pipeline_client_example_test.go +++ b/aiplatform/apiv1/pipeline_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewPipelineClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewPipelineClient() { func ExamplePipelineClient_CreateTrainingPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExamplePipelineClient_CreateTrainingPipeline() { func ExamplePipelineClient_GetTrainingPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExamplePipelineClient_GetTrainingPipeline() { func ExamplePipelineClient_ListTrainingPipelines() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExamplePipelineClient_ListTrainingPipelines() { func ExamplePipelineClient_DeleteTrainingPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExamplePipelineClient_DeleteTrainingPipeline() { func ExamplePipelineClient_CancelTrainingPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +178,11 @@ func ExamplePipelineClient_CancelTrainingPipeline() { func ExamplePipelineClient_CreatePipelineJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExamplePipelineClient_CreatePipelineJob() { func ExamplePipelineClient_GetPipelineJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExamplePipelineClient_GetPipelineJob() { func ExamplePipelineClient_ListPipelineJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +259,11 @@ func ExamplePipelineClient_ListPipelineJobs() { func ExamplePipelineClient_DeletePipelineJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -237,6 +287,11 @@ func ExamplePipelineClient_DeletePipelineJob() { func ExamplePipelineClient_CancelPipelineJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +310,11 @@ func ExamplePipelineClient_CancelPipelineJob() { func ExamplePipelineClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +335,11 @@ func ExamplePipelineClient_GetLocation() { func ExamplePipelineClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +366,11 @@ func ExamplePipelineClient_ListLocations() { func ExamplePipelineClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +391,11 @@ func ExamplePipelineClient_GetIamPolicy() { func ExamplePipelineClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +416,11 @@ func ExamplePipelineClient_SetIamPolicy() { func ExamplePipelineClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -361,6 +441,11 @@ func ExamplePipelineClient_TestIamPermissions() { func ExamplePipelineClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -379,6 +464,11 @@ func ExamplePipelineClient_CancelOperation() { func ExamplePipelineClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -397,6 +487,11 @@ func ExamplePipelineClient_DeleteOperation() { func ExamplePipelineClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -417,6 +512,11 @@ func ExamplePipelineClient_GetOperation() { func ExamplePipelineClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +543,11 @@ func ExamplePipelineClient_ListOperations() { func ExamplePipelineClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/prediction_client.go b/aiplatform/apiv1/prediction_client.go index 4a165e7d2b8..cb8c1efc0b2 100644 --- a/aiplatform/apiv1/prediction_client.go +++ b/aiplatform/apiv1/prediction_client.go @@ -135,7 +135,8 @@ func (c *PredictionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -302,7 +303,8 @@ func NewPredictionClient(ctx context.Context, opts ...option.ClientOption) (*Pre // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/prediction_client_example_test.go b/aiplatform/apiv1/prediction_client_example_test.go index e19866fe1b2..369ebfa477d 100644 --- a/aiplatform/apiv1/prediction_client_example_test.go +++ b/aiplatform/apiv1/prediction_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewPredictionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewPredictionClient() { func ExamplePredictionClient_Predict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExamplePredictionClient_Predict() { func ExamplePredictionClient_RawPredict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExamplePredictionClient_RawPredict() { func ExamplePredictionClient_Explain() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExamplePredictionClient_Explain() { func ExamplePredictionClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -121,6 +146,11 @@ func ExamplePredictionClient_GetLocation() { func ExamplePredictionClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExamplePredictionClient_ListLocations() { func ExamplePredictionClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -167,6 +202,11 @@ func ExamplePredictionClient_GetIamPolicy() { func ExamplePredictionClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -187,6 +227,11 @@ func ExamplePredictionClient_SetIamPolicy() { func ExamplePredictionClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -207,6 +252,11 @@ func ExamplePredictionClient_TestIamPermissions() { func ExamplePredictionClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +275,11 @@ func ExamplePredictionClient_CancelOperation() { func ExamplePredictionClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +298,11 @@ func ExamplePredictionClient_DeleteOperation() { func ExamplePredictionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +323,11 @@ func ExamplePredictionClient_GetOperation() { func ExamplePredictionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +354,11 @@ func ExamplePredictionClient_ListOperations() { func ExamplePredictionClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/specialist_pool_client.go b/aiplatform/apiv1/specialist_pool_client.go index 8e4e0d389c0..2d5c6951698 100644 --- a/aiplatform/apiv1/specialist_pool_client.go +++ b/aiplatform/apiv1/specialist_pool_client.go @@ -156,7 +156,8 @@ func (c *SpecialistPoolClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SpecialistPoolClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -355,7 +356,8 @@ func NewSpecialistPoolClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *specialistPoolGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/specialist_pool_client_example_test.go b/aiplatform/apiv1/specialist_pool_client_example_test.go index db4a3da8e00..b3075e005ad 100644 --- a/aiplatform/apiv1/specialist_pool_client_example_test.go +++ b/aiplatform/apiv1/specialist_pool_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewSpecialistPoolClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewSpecialistPoolClient() { func ExampleSpecialistPoolClient_CreateSpecialistPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleSpecialistPoolClient_CreateSpecialistPool() { func ExampleSpecialistPoolClient_GetSpecialistPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleSpecialistPoolClient_GetSpecialistPool() { func ExampleSpecialistPoolClient_ListSpecialistPools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleSpecialistPoolClient_ListSpecialistPools() { func ExampleSpecialistPoolClient_DeleteSpecialistPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleSpecialistPoolClient_DeleteSpecialistPool() { func ExampleSpecialistPoolClient_UpdateSpecialistPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleSpecialistPoolClient_UpdateSpecialistPool() { func ExampleSpecialistPoolClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleSpecialistPoolClient_GetLocation() { func ExampleSpecialistPoolClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +246,11 @@ func ExampleSpecialistPoolClient_ListLocations() { func ExampleSpecialistPoolClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +271,11 @@ func ExampleSpecialistPoolClient_GetIamPolicy() { func ExampleSpecialistPoolClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleSpecialistPoolClient_SetIamPolicy() { func ExampleSpecialistPoolClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +321,11 @@ func ExampleSpecialistPoolClient_TestIamPermissions() { func ExampleSpecialistPoolClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -284,6 +344,11 @@ func ExampleSpecialistPoolClient_CancelOperation() { func ExampleSpecialistPoolClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleSpecialistPoolClient_DeleteOperation() { func ExampleSpecialistPoolClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +392,11 @@ func ExampleSpecialistPoolClient_GetOperation() { func ExampleSpecialistPoolClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -348,6 +423,11 @@ func ExampleSpecialistPoolClient_ListOperations() { func ExampleSpecialistPoolClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/tensorboard_client.go b/aiplatform/apiv1/tensorboard_client.go index 05486cd9f45..009dec35b8a 100644 --- a/aiplatform/apiv1/tensorboard_client.go +++ b/aiplatform/apiv1/tensorboard_client.go @@ -223,7 +223,8 @@ func (c *TensorboardClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TensorboardClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -566,7 +567,8 @@ func NewTensorboardClient(ctx context.Context, opts ...option.ClientOption) (*Te // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *tensorboardGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/tensorboard_client_example_test.go b/aiplatform/apiv1/tensorboard_client_example_test.go index 54b14991443..5cc67bafb83 100644 --- a/aiplatform/apiv1/tensorboard_client_example_test.go +++ b/aiplatform/apiv1/tensorboard_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewTensorboardClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewTensorboardClient() { func ExampleTensorboardClient_CreateTensorboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleTensorboardClient_CreateTensorboard() { func ExampleTensorboardClient_GetTensorboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleTensorboardClient_GetTensorboard() { func ExampleTensorboardClient_UpdateTensorboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleTensorboardClient_UpdateTensorboard() { func ExampleTensorboardClient_ListTensorboards() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleTensorboardClient_ListTensorboards() { func ExampleTensorboardClient_DeleteTensorboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleTensorboardClient_DeleteTensorboard() { func ExampleTensorboardClient_CreateTensorboardExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleTensorboardClient_CreateTensorboardExperiment() { func ExampleTensorboardClient_GetTensorboardExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleTensorboardClient_GetTensorboardExperiment() { func ExampleTensorboardClient_UpdateTensorboardExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +265,11 @@ func ExampleTensorboardClient_UpdateTensorboardExperiment() { func ExampleTensorboardClient_ListTensorboardExperiments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleTensorboardClient_ListTensorboardExperiments() { func ExampleTensorboardClient_DeleteTensorboardExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +324,11 @@ func ExampleTensorboardClient_DeleteTensorboardExperiment() { func ExampleTensorboardClient_CreateTensorboardRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +349,11 @@ func ExampleTensorboardClient_CreateTensorboardRun() { func ExampleTensorboardClient_BatchCreateTensorboardRuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -309,6 +374,11 @@ func ExampleTensorboardClient_BatchCreateTensorboardRuns() { func ExampleTensorboardClient_GetTensorboardRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -329,6 +399,11 @@ func ExampleTensorboardClient_GetTensorboardRun() { func ExampleTensorboardClient_UpdateTensorboardRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +424,11 @@ func ExampleTensorboardClient_UpdateTensorboardRun() { func ExampleTensorboardClient_ListTensorboardRuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -375,6 +455,11 @@ func ExampleTensorboardClient_ListTensorboardRuns() { func ExampleTensorboardClient_DeleteTensorboardRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -398,6 +483,11 @@ func ExampleTensorboardClient_DeleteTensorboardRun() { func ExampleTensorboardClient_BatchCreateTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +508,11 @@ func ExampleTensorboardClient_BatchCreateTensorboardTimeSeries() { func ExampleTensorboardClient_CreateTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +533,11 @@ func ExampleTensorboardClient_CreateTensorboardTimeSeries() { func ExampleTensorboardClient_GetTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -458,6 +558,11 @@ func ExampleTensorboardClient_GetTensorboardTimeSeries() { func ExampleTensorboardClient_UpdateTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -478,6 +583,11 @@ func ExampleTensorboardClient_UpdateTensorboardTimeSeries() { func ExampleTensorboardClient_ListTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -504,6 +614,11 @@ func ExampleTensorboardClient_ListTensorboardTimeSeries() { func ExampleTensorboardClient_DeleteTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -527,6 +642,11 @@ func ExampleTensorboardClient_DeleteTensorboardTimeSeries() { func ExampleTensorboardClient_BatchReadTensorboardTimeSeriesData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -547,6 +667,11 @@ func ExampleTensorboardClient_BatchReadTensorboardTimeSeriesData() { func ExampleTensorboardClient_ReadTensorboardTimeSeriesData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -567,6 +692,11 @@ func ExampleTensorboardClient_ReadTensorboardTimeSeriesData() { func ExampleTensorboardClient_WriteTensorboardExperimentData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -587,6 +717,11 @@ func ExampleTensorboardClient_WriteTensorboardExperimentData() { func ExampleTensorboardClient_WriteTensorboardRunData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -607,6 +742,11 @@ func ExampleTensorboardClient_WriteTensorboardRunData() { func ExampleTensorboardClient_ExportTensorboardTimeSeriesData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -633,6 +773,11 @@ func ExampleTensorboardClient_ExportTensorboardTimeSeriesData() { func ExampleTensorboardClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -653,6 +798,11 @@ func ExampleTensorboardClient_GetLocation() { func ExampleTensorboardClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -679,6 +829,11 @@ func ExampleTensorboardClient_ListLocations() { func ExampleTensorboardClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -699,6 +854,11 @@ func ExampleTensorboardClient_GetIamPolicy() { func ExampleTensorboardClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -719,6 +879,11 @@ func ExampleTensorboardClient_SetIamPolicy() { func ExampleTensorboardClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -739,6 +904,11 @@ func ExampleTensorboardClient_TestIamPermissions() { func ExampleTensorboardClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -757,6 +927,11 @@ func ExampleTensorboardClient_CancelOperation() { func ExampleTensorboardClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -775,6 +950,11 @@ func ExampleTensorboardClient_DeleteOperation() { func ExampleTensorboardClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -795,6 +975,11 @@ func ExampleTensorboardClient_GetOperation() { func ExampleTensorboardClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -821,6 +1006,11 @@ func ExampleTensorboardClient_ListOperations() { func ExampleTensorboardClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1/vizier_client.go b/aiplatform/apiv1/vizier_client.go index b658f86ba70..63bb74b25b1 100644 --- a/aiplatform/apiv1/vizier_client.go +++ b/aiplatform/apiv1/vizier_client.go @@ -184,7 +184,8 @@ func (c *VizierClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VizierClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -439,7 +440,8 @@ func NewVizierClient(ctx context.Context, opts ...option.ClientOption) (*VizierC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *vizierGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1/vizier_client_example_test.go b/aiplatform/apiv1/vizier_client_example_test.go index 1636dff3a3c..6a4637e846c 100644 --- a/aiplatform/apiv1/vizier_client_example_test.go +++ b/aiplatform/apiv1/vizier_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewVizierClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewVizierClient() { func ExampleVizierClient_CreateStudy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleVizierClient_CreateStudy() { func ExampleVizierClient_GetStudy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleVizierClient_GetStudy() { func ExampleVizierClient_ListStudies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleVizierClient_ListStudies() { func ExampleVizierClient_DeleteStudy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleVizierClient_DeleteStudy() { func ExampleVizierClient_LookupStudy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleVizierClient_LookupStudy() { func ExampleVizierClient_SuggestTrials() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleVizierClient_SuggestTrials() { func ExampleVizierClient_CreateTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleVizierClient_CreateTrial() { func ExampleVizierClient_GetTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -210,6 +255,11 @@ func ExampleVizierClient_GetTrial() { func ExampleVizierClient_ListTrials() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -236,6 +286,11 @@ func ExampleVizierClient_ListTrials() { func ExampleVizierClient_AddTrialMeasurement() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +311,11 @@ func ExampleVizierClient_AddTrialMeasurement() { func ExampleVizierClient_CompleteTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +336,11 @@ func ExampleVizierClient_CompleteTrial() { func ExampleVizierClient_DeleteTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -294,6 +359,11 @@ func ExampleVizierClient_DeleteTrial() { func ExampleVizierClient_CheckTrialEarlyStoppingState() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -319,6 +389,11 @@ func ExampleVizierClient_CheckTrialEarlyStoppingState() { func ExampleVizierClient_StopTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -339,6 +414,11 @@ func ExampleVizierClient_StopTrial() { func ExampleVizierClient_ListOptimalTrials() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -359,6 +439,11 @@ func ExampleVizierClient_ListOptimalTrials() { func ExampleVizierClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -379,6 +464,11 @@ func ExampleVizierClient_GetLocation() { func ExampleVizierClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -405,6 +495,11 @@ func ExampleVizierClient_ListLocations() { func ExampleVizierClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -425,6 +520,11 @@ func ExampleVizierClient_GetIamPolicy() { func ExampleVizierClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -445,6 +545,11 @@ func ExampleVizierClient_SetIamPolicy() { func ExampleVizierClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -465,6 +570,11 @@ func ExampleVizierClient_TestIamPermissions() { func ExampleVizierClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -483,6 +593,11 @@ func ExampleVizierClient_CancelOperation() { func ExampleVizierClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -501,6 +616,11 @@ func ExampleVizierClient_DeleteOperation() { func ExampleVizierClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -521,6 +641,11 @@ func ExampleVizierClient_GetOperation() { func ExampleVizierClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -547,6 +672,11 @@ func ExampleVizierClient_ListOperations() { func ExampleVizierClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/dataset_client.go b/aiplatform/apiv1beta1/dataset_client.go index 2c50f31b4d6..b6d9f5f1810 100644 --- a/aiplatform/apiv1beta1/dataset_client.go +++ b/aiplatform/apiv1beta1/dataset_client.go @@ -171,7 +171,8 @@ func (c *DatasetClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DatasetClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -402,7 +403,8 @@ func NewDatasetClient(ctx context.Context, opts ...option.ClientOption) (*Datase // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *datasetGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/dataset_client_example_test.go b/aiplatform/apiv1beta1/dataset_client_example_test.go index eae68269488..71350dc413f 100644 --- a/aiplatform/apiv1beta1/dataset_client_example_test.go +++ b/aiplatform/apiv1beta1/dataset_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewDatasetClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewDatasetClient() { func ExampleDatasetClient_CreateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleDatasetClient_CreateDataset() { func ExampleDatasetClient_GetDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleDatasetClient_GetDataset() { func ExampleDatasetClient_UpdateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleDatasetClient_UpdateDataset() { func ExampleDatasetClient_ListDatasets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleDatasetClient_ListDatasets() { func ExampleDatasetClient_DeleteDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleDatasetClient_DeleteDataset() { func ExampleDatasetClient_ImportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleDatasetClient_ImportData() { func ExampleDatasetClient_ExportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleDatasetClient_ExportData() { func ExampleDatasetClient_ListDataItems() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +276,11 @@ func ExampleDatasetClient_ListDataItems() { func ExampleDatasetClient_ListSavedQueries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -257,6 +307,11 @@ func ExampleDatasetClient_ListSavedQueries() { func ExampleDatasetClient_GetAnnotationSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -277,6 +332,11 @@ func ExampleDatasetClient_GetAnnotationSpec() { func ExampleDatasetClient_ListAnnotations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -303,6 +363,11 @@ func ExampleDatasetClient_ListAnnotations() { func ExampleDatasetClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -323,6 +388,11 @@ func ExampleDatasetClient_GetLocation() { func ExampleDatasetClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +419,11 @@ func ExampleDatasetClient_ListLocations() { func ExampleDatasetClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -369,6 +444,11 @@ func ExampleDatasetClient_GetIamPolicy() { func ExampleDatasetClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -389,6 +469,11 @@ func ExampleDatasetClient_SetIamPolicy() { func ExampleDatasetClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -409,6 +494,11 @@ func ExampleDatasetClient_TestIamPermissions() { func ExampleDatasetClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -427,6 +517,11 @@ func ExampleDatasetClient_CancelOperation() { func ExampleDatasetClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -445,6 +540,11 @@ func ExampleDatasetClient_DeleteOperation() { func ExampleDatasetClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -465,6 +565,11 @@ func ExampleDatasetClient_GetOperation() { func ExampleDatasetClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. @@ -491,6 +596,11 @@ func ExampleDatasetClient_ListOperations() { func ExampleDatasetClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/deployment_resource_pool_client.go b/aiplatform/apiv1beta1/deployment_resource_pool_client.go index b7d88f21e72..35cf5f6b483 100644 --- a/aiplatform/apiv1beta1/deployment_resource_pool_client.go +++ b/aiplatform/apiv1beta1/deployment_resource_pool_client.go @@ -150,7 +150,8 @@ func (c *DeploymentResourcePoolClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DeploymentResourcePoolClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -338,7 +339,8 @@ func NewDeploymentResourcePoolClient(ctx context.Context, opts ...option.ClientO // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *deploymentResourcePoolGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/deployment_resource_pool_client_example_test.go b/aiplatform/apiv1beta1/deployment_resource_pool_client_example_test.go index 4a5c81d9840..369c6c965c9 100644 --- a/aiplatform/apiv1beta1/deployment_resource_pool_client_example_test.go +++ b/aiplatform/apiv1beta1/deployment_resource_pool_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewDeploymentResourcePoolClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewDeploymentResourcePoolClient() { func ExampleDeploymentResourcePoolClient_CreateDeploymentResourcePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleDeploymentResourcePoolClient_CreateDeploymentResourcePool() { func ExampleDeploymentResourcePoolClient_GetDeploymentResourcePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleDeploymentResourcePoolClient_GetDeploymentResourcePool() { func ExampleDeploymentResourcePoolClient_ListDeploymentResourcePools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleDeploymentResourcePoolClient_ListDeploymentResourcePools() { func ExampleDeploymentResourcePoolClient_DeleteDeploymentResourcePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleDeploymentResourcePoolClient_DeleteDeploymentResourcePool() { func ExampleDeploymentResourcePoolClient_QueryDeployedModels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -161,6 +191,11 @@ func ExampleDeploymentResourcePoolClient_QueryDeployedModels() { func ExampleDeploymentResourcePoolClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +216,11 @@ func ExampleDeploymentResourcePoolClient_GetLocation() { func ExampleDeploymentResourcePoolClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -207,6 +247,11 @@ func ExampleDeploymentResourcePoolClient_ListLocations() { func ExampleDeploymentResourcePoolClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -227,6 +272,11 @@ func ExampleDeploymentResourcePoolClient_GetIamPolicy() { func ExampleDeploymentResourcePoolClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +297,11 @@ func ExampleDeploymentResourcePoolClient_SetIamPolicy() { func ExampleDeploymentResourcePoolClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -267,6 +322,11 @@ func ExampleDeploymentResourcePoolClient_TestIamPermissions() { func ExampleDeploymentResourcePoolClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -285,6 +345,11 @@ func ExampleDeploymentResourcePoolClient_CancelOperation() { func ExampleDeploymentResourcePoolClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -303,6 +368,11 @@ func ExampleDeploymentResourcePoolClient_DeleteOperation() { func ExampleDeploymentResourcePoolClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -323,6 +393,11 @@ func ExampleDeploymentResourcePoolClient_GetOperation() { func ExampleDeploymentResourcePoolClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +424,11 @@ func ExampleDeploymentResourcePoolClient_ListOperations() { func ExampleDeploymentResourcePoolClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/doc.go b/aiplatform/apiv1beta1/doc.go index d193576b8f0..caa2ae489a6 100644 --- a/aiplatform/apiv1beta1/doc.go +++ b/aiplatform/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := aiplatform.NewDatasetClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := aiplatform.NewDatasetClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/endpoint_client.go b/aiplatform/apiv1beta1/endpoint_client.go index 57be4d224ff..1fb1ff69641 100644 --- a/aiplatform/apiv1beta1/endpoint_client.go +++ b/aiplatform/apiv1beta1/endpoint_client.go @@ -158,7 +158,8 @@ func (c *EndpointClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EndpointClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -369,7 +370,8 @@ func NewEndpointClient(ctx context.Context, opts ...option.ClientOption) (*Endpo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *endpointGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/endpoint_client_example_test.go b/aiplatform/apiv1beta1/endpoint_client_example_test.go index 01c34929571..c1116f59b8a 100644 --- a/aiplatform/apiv1beta1/endpoint_client_example_test.go +++ b/aiplatform/apiv1beta1/endpoint_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewEndpointClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewEndpointClient() { func ExampleEndpointClient_CreateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleEndpointClient_CreateEndpoint() { func ExampleEndpointClient_GetEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleEndpointClient_GetEndpoint() { func ExampleEndpointClient_ListEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleEndpointClient_ListEndpoints() { func ExampleEndpointClient_UpdateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleEndpointClient_UpdateEndpoint() { func ExampleEndpointClient_DeleteEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleEndpointClient_DeleteEndpoint() { func ExampleEndpointClient_DeployModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleEndpointClient_DeployModel() { func ExampleEndpointClient_UndeployModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleEndpointClient_UndeployModel() { func ExampleEndpointClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleEndpointClient_GetLocation() { func ExampleEndpointClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +301,11 @@ func ExampleEndpointClient_ListLocations() { func ExampleEndpointClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleEndpointClient_GetIamPolicy() { func ExampleEndpointClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -291,6 +351,11 @@ func ExampleEndpointClient_SetIamPolicy() { func ExampleEndpointClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -311,6 +376,11 @@ func ExampleEndpointClient_TestIamPermissions() { func ExampleEndpointClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -329,6 +399,11 @@ func ExampleEndpointClient_CancelOperation() { func ExampleEndpointClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +422,11 @@ func ExampleEndpointClient_DeleteOperation() { func ExampleEndpointClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -367,6 +447,11 @@ func ExampleEndpointClient_GetOperation() { func ExampleEndpointClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -393,6 +478,11 @@ func ExampleEndpointClient_ListOperations() { func ExampleEndpointClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/featurestore_client.go b/aiplatform/apiv1beta1/featurestore_client.go index b771c97a4e3..49861609a61 100644 --- a/aiplatform/apiv1beta1/featurestore_client.go +++ b/aiplatform/apiv1beta1/featurestore_client.go @@ -204,7 +204,8 @@ func (c *FeaturestoreClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FeaturestoreClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -549,7 +550,8 @@ func NewFeaturestoreClient(ctx context.Context, opts ...option.ClientOption) (*F // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *featurestoreGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/featurestore_client_example_test.go b/aiplatform/apiv1beta1/featurestore_client_example_test.go index eeb1ae42a1a..ee68666e611 100644 --- a/aiplatform/apiv1beta1/featurestore_client_example_test.go +++ b/aiplatform/apiv1beta1/featurestore_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewFeaturestoreClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewFeaturestoreClient() { func ExampleFeaturestoreClient_CreateFeaturestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleFeaturestoreClient_CreateFeaturestore() { func ExampleFeaturestoreClient_GetFeaturestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleFeaturestoreClient_GetFeaturestore() { func ExampleFeaturestoreClient_ListFeaturestores() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleFeaturestoreClient_ListFeaturestores() { func ExampleFeaturestoreClient_UpdateFeaturestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleFeaturestoreClient_UpdateFeaturestore() { func ExampleFeaturestoreClient_DeleteFeaturestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleFeaturestoreClient_DeleteFeaturestore() { func ExampleFeaturestoreClient_CreateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -185,6 +220,11 @@ func ExampleFeaturestoreClient_CreateEntityType() { func ExampleFeaturestoreClient_GetEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleFeaturestoreClient_GetEntityType() { func ExampleFeaturestoreClient_ListEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +276,11 @@ func ExampleFeaturestoreClient_ListEntityTypes() { func ExampleFeaturestoreClient_UpdateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +301,11 @@ func ExampleFeaturestoreClient_UpdateEntityType() { func ExampleFeaturestoreClient_DeleteEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +329,11 @@ func ExampleFeaturestoreClient_DeleteEntityType() { func ExampleFeaturestoreClient_CreateFeature() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -299,6 +359,11 @@ func ExampleFeaturestoreClient_CreateFeature() { func ExampleFeaturestoreClient_BatchCreateFeatures() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -324,6 +389,11 @@ func ExampleFeaturestoreClient_BatchCreateFeatures() { func ExampleFeaturestoreClient_GetFeature() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -344,6 +414,11 @@ func ExampleFeaturestoreClient_GetFeature() { func ExampleFeaturestoreClient_ListFeatures() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -370,6 +445,11 @@ func ExampleFeaturestoreClient_ListFeatures() { func ExampleFeaturestoreClient_UpdateFeature() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -390,6 +470,11 @@ func ExampleFeaturestoreClient_UpdateFeature() { func ExampleFeaturestoreClient_DeleteFeature() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -413,6 +498,11 @@ func ExampleFeaturestoreClient_DeleteFeature() { func ExampleFeaturestoreClient_ImportFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +528,11 @@ func ExampleFeaturestoreClient_ImportFeatureValues() { func ExampleFeaturestoreClient_BatchReadFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -463,6 +558,11 @@ func ExampleFeaturestoreClient_BatchReadFeatureValues() { func ExampleFeaturestoreClient_ExportFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -488,6 +588,11 @@ func ExampleFeaturestoreClient_ExportFeatureValues() { func ExampleFeaturestoreClient_SearchFeatures() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -514,6 +619,11 @@ func ExampleFeaturestoreClient_SearchFeatures() { func ExampleFeaturestoreClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -534,6 +644,11 @@ func ExampleFeaturestoreClient_GetLocation() { func ExampleFeaturestoreClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -560,6 +675,11 @@ func ExampleFeaturestoreClient_ListLocations() { func ExampleFeaturestoreClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -580,6 +700,11 @@ func ExampleFeaturestoreClient_GetIamPolicy() { func ExampleFeaturestoreClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -600,6 +725,11 @@ func ExampleFeaturestoreClient_SetIamPolicy() { func ExampleFeaturestoreClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -620,6 +750,11 @@ func ExampleFeaturestoreClient_TestIamPermissions() { func ExampleFeaturestoreClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -638,6 +773,11 @@ func ExampleFeaturestoreClient_CancelOperation() { func ExampleFeaturestoreClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -656,6 +796,11 @@ func ExampleFeaturestoreClient_DeleteOperation() { func ExampleFeaturestoreClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -676,6 +821,11 @@ func ExampleFeaturestoreClient_GetOperation() { func ExampleFeaturestoreClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. @@ -702,6 +852,11 @@ func ExampleFeaturestoreClient_ListOperations() { func ExampleFeaturestoreClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/featurestore_online_serving_client.go b/aiplatform/apiv1beta1/featurestore_online_serving_client.go index 1d1a46351fd..c84b1212fb6 100644 --- a/aiplatform/apiv1beta1/featurestore_online_serving_client.go +++ b/aiplatform/apiv1beta1/featurestore_online_serving_client.go @@ -135,7 +135,8 @@ func (c *FeaturestoreOnlineServingClient) setGoogleClientInfo(keyval ...string) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FeaturestoreOnlineServingClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -293,7 +294,8 @@ func NewFeaturestoreOnlineServingClient(ctx context.Context, opts ...option.Clie // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *featurestoreOnlineServingGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/featurestore_online_serving_client_example_test.go b/aiplatform/apiv1beta1/featurestore_online_serving_client_example_test.go index 821954e537f..a652b91306c 100644 --- a/aiplatform/apiv1beta1/featurestore_online_serving_client_example_test.go +++ b/aiplatform/apiv1beta1/featurestore_online_serving_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewFeaturestoreOnlineServingClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewFeaturestoreOnlineServingClient() { func ExampleFeaturestoreOnlineServingClient_ReadFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleFeaturestoreOnlineServingClient_ReadFeatureValues() { func ExampleFeaturestoreOnlineServingClient_WriteFeatureValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleFeaturestoreOnlineServingClient_WriteFeatureValues() { func ExampleFeaturestoreOnlineServingClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleFeaturestoreOnlineServingClient_GetLocation() { func ExampleFeaturestoreOnlineServingClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleFeaturestoreOnlineServingClient_ListLocations() { func ExampleFeaturestoreOnlineServingClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleFeaturestoreOnlineServingClient_GetIamPolicy() { func ExampleFeaturestoreOnlineServingClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -167,6 +202,11 @@ func ExampleFeaturestoreOnlineServingClient_SetIamPolicy() { func ExampleFeaturestoreOnlineServingClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -187,6 +227,11 @@ func ExampleFeaturestoreOnlineServingClient_TestIamPermissions() { func ExampleFeaturestoreOnlineServingClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +250,11 @@ func ExampleFeaturestoreOnlineServingClient_CancelOperation() { func ExampleFeaturestoreOnlineServingClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleFeaturestoreOnlineServingClient_DeleteOperation() { func ExampleFeaturestoreOnlineServingClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +298,11 @@ func ExampleFeaturestoreOnlineServingClient_GetOperation() { func ExampleFeaturestoreOnlineServingClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +329,11 @@ func ExampleFeaturestoreOnlineServingClient_ListOperations() { func ExampleFeaturestoreOnlineServingClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/index_client.go b/aiplatform/apiv1beta1/index_client.go index 668260f8a50..2244edbd304 100644 --- a/aiplatform/apiv1beta1/index_client.go +++ b/aiplatform/apiv1beta1/index_client.go @@ -157,7 +157,8 @@ func (c *IndexClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IndexClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -363,7 +364,8 @@ func NewIndexClient(ctx context.Context, opts ...option.ClientOption) (*IndexCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *indexGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/index_client_example_test.go b/aiplatform/apiv1beta1/index_client_example_test.go index 89fce462ed4..6db1520568e 100644 --- a/aiplatform/apiv1beta1/index_client_example_test.go +++ b/aiplatform/apiv1beta1/index_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewIndexClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewIndexClient() { func ExampleIndexClient_CreateIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleIndexClient_CreateIndex() { func ExampleIndexClient_GetIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleIndexClient_GetIndex() { func ExampleIndexClient_ListIndexes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleIndexClient_ListIndexes() { func ExampleIndexClient_UpdateIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleIndexClient_UpdateIndex() { func ExampleIndexClient_DeleteIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleIndexClient_DeleteIndex() { func ExampleIndexClient_UpsertDatapoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleIndexClient_UpsertDatapoints() { func ExampleIndexClient_RemoveDatapoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleIndexClient_RemoveDatapoints() { func ExampleIndexClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +265,11 @@ func ExampleIndexClient_GetLocation() { func ExampleIndexClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleIndexClient_ListLocations() { func ExampleIndexClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +321,11 @@ func ExampleIndexClient_GetIamPolicy() { func ExampleIndexClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +346,11 @@ func ExampleIndexClient_SetIamPolicy() { func ExampleIndexClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +371,11 @@ func ExampleIndexClient_TestIamPermissions() { func ExampleIndexClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -324,6 +394,11 @@ func ExampleIndexClient_CancelOperation() { func ExampleIndexClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -342,6 +417,11 @@ func ExampleIndexClient_DeleteOperation() { func ExampleIndexClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -362,6 +442,11 @@ func ExampleIndexClient_GetOperation() { func ExampleIndexClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. @@ -388,6 +473,11 @@ func ExampleIndexClient_ListOperations() { func ExampleIndexClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/index_endpoint_client.go b/aiplatform/apiv1beta1/index_endpoint_client.go index 9de39c137f2..b16aa2dbba3 100644 --- a/aiplatform/apiv1beta1/index_endpoint_client.go +++ b/aiplatform/apiv1beta1/index_endpoint_client.go @@ -162,7 +162,8 @@ func (c *IndexEndpointClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IndexEndpointClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -386,7 +387,8 @@ func NewIndexEndpointClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *indexEndpointGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/index_endpoint_client_example_test.go b/aiplatform/apiv1beta1/index_endpoint_client_example_test.go index 06f5612b41f..00fd8e2a570 100644 --- a/aiplatform/apiv1beta1/index_endpoint_client_example_test.go +++ b/aiplatform/apiv1beta1/index_endpoint_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewIndexEndpointClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewIndexEndpointClient() { func ExampleIndexEndpointClient_CreateIndexEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleIndexEndpointClient_CreateIndexEndpoint() { func ExampleIndexEndpointClient_GetIndexEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleIndexEndpointClient_GetIndexEndpoint() { func ExampleIndexEndpointClient_ListIndexEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleIndexEndpointClient_ListIndexEndpoints() { func ExampleIndexEndpointClient_UpdateIndexEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleIndexEndpointClient_UpdateIndexEndpoint() { func ExampleIndexEndpointClient_DeleteIndexEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleIndexEndpointClient_DeleteIndexEndpoint() { func ExampleIndexEndpointClient_DeployIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleIndexEndpointClient_DeployIndex() { func ExampleIndexEndpointClient_UndeployIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleIndexEndpointClient_UndeployIndex() { func ExampleIndexEndpointClient_MutateDeployedIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -230,6 +275,11 @@ func ExampleIndexEndpointClient_MutateDeployedIndex() { func ExampleIndexEndpointClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -250,6 +300,11 @@ func ExampleIndexEndpointClient_GetLocation() { func ExampleIndexEndpointClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleIndexEndpointClient_ListLocations() { func ExampleIndexEndpointClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -296,6 +356,11 @@ func ExampleIndexEndpointClient_GetIamPolicy() { func ExampleIndexEndpointClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -316,6 +381,11 @@ func ExampleIndexEndpointClient_SetIamPolicy() { func ExampleIndexEndpointClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -336,6 +406,11 @@ func ExampleIndexEndpointClient_TestIamPermissions() { func ExampleIndexEndpointClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -354,6 +429,11 @@ func ExampleIndexEndpointClient_CancelOperation() { func ExampleIndexEndpointClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +452,11 @@ func ExampleIndexEndpointClient_DeleteOperation() { func ExampleIndexEndpointClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -392,6 +477,11 @@ func ExampleIndexEndpointClient_GetOperation() { func ExampleIndexEndpointClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +508,11 @@ func ExampleIndexEndpointClient_ListOperations() { func ExampleIndexEndpointClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/job_client.go b/aiplatform/apiv1beta1/job_client.go index 94e32a1eeaa..4497a0bb491 100644 --- a/aiplatform/apiv1beta1/job_client.go +++ b/aiplatform/apiv1beta1/job_client.go @@ -223,7 +223,8 @@ func (c *JobClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *JobClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -585,7 +586,8 @@ func NewJobClient(ctx context.Context, opts ...option.ClientOption) (*JobClient, // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *jobGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/job_client_example_test.go b/aiplatform/apiv1beta1/job_client_example_test.go index eab42d8b218..8434122460d 100644 --- a/aiplatform/apiv1beta1/job_client_example_test.go +++ b/aiplatform/apiv1beta1/job_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewJobClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewJobClient() { func ExampleJobClient_CreateCustomJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleJobClient_CreateCustomJob() { func ExampleJobClient_GetCustomJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleJobClient_GetCustomJob() { func ExampleJobClient_ListCustomJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleJobClient_ListCustomJobs() { func ExampleJobClient_DeleteCustomJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleJobClient_DeleteCustomJob() { func ExampleJobClient_CancelCustomJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +178,11 @@ func ExampleJobClient_CancelCustomJob() { func ExampleJobClient_CreateDataLabelingJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleJobClient_CreateDataLabelingJob() { func ExampleJobClient_GetDataLabelingJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleJobClient_GetDataLabelingJob() { func ExampleJobClient_ListDataLabelingJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +259,11 @@ func ExampleJobClient_ListDataLabelingJobs() { func ExampleJobClient_DeleteDataLabelingJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -237,6 +287,11 @@ func ExampleJobClient_DeleteDataLabelingJob() { func ExampleJobClient_CancelDataLabelingJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +310,11 @@ func ExampleJobClient_CancelDataLabelingJob() { func ExampleJobClient_CreateHyperparameterTuningJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +335,11 @@ func ExampleJobClient_CreateHyperparameterTuningJob() { func ExampleJobClient_GetHyperparameterTuningJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -295,6 +360,11 @@ func ExampleJobClient_GetHyperparameterTuningJob() { func ExampleJobClient_ListHyperparameterTuningJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +391,11 @@ func ExampleJobClient_ListHyperparameterTuningJobs() { func ExampleJobClient_DeleteHyperparameterTuningJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -344,6 +419,11 @@ func ExampleJobClient_DeleteHyperparameterTuningJob() { func ExampleJobClient_CancelHyperparameterTuningJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -362,6 +442,11 @@ func ExampleJobClient_CancelHyperparameterTuningJob() { func ExampleJobClient_CreateBatchPredictionJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -382,6 +467,11 @@ func ExampleJobClient_CreateBatchPredictionJob() { func ExampleJobClient_GetBatchPredictionJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -402,6 +492,11 @@ func ExampleJobClient_GetBatchPredictionJob() { func ExampleJobClient_ListBatchPredictionJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -428,6 +523,11 @@ func ExampleJobClient_ListBatchPredictionJobs() { func ExampleJobClient_DeleteBatchPredictionJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -451,6 +551,11 @@ func ExampleJobClient_DeleteBatchPredictionJob() { func ExampleJobClient_CancelBatchPredictionJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -469,6 +574,11 @@ func ExampleJobClient_CancelBatchPredictionJob() { func ExampleJobClient_CreateModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -489,6 +599,11 @@ func ExampleJobClient_CreateModelDeploymentMonitoringJob() { func ExampleJobClient_SearchModelDeploymentMonitoringStatsAnomalies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -515,6 +630,11 @@ func ExampleJobClient_SearchModelDeploymentMonitoringStatsAnomalies() { func ExampleJobClient_GetModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -535,6 +655,11 @@ func ExampleJobClient_GetModelDeploymentMonitoringJob() { func ExampleJobClient_ListModelDeploymentMonitoringJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -561,6 +686,11 @@ func ExampleJobClient_ListModelDeploymentMonitoringJobs() { func ExampleJobClient_UpdateModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -586,6 +716,11 @@ func ExampleJobClient_UpdateModelDeploymentMonitoringJob() { func ExampleJobClient_DeleteModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -609,6 +744,11 @@ func ExampleJobClient_DeleteModelDeploymentMonitoringJob() { func ExampleJobClient_PauseModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -627,6 +767,11 @@ func ExampleJobClient_PauseModelDeploymentMonitoringJob() { func ExampleJobClient_ResumeModelDeploymentMonitoringJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -645,6 +790,11 @@ func ExampleJobClient_ResumeModelDeploymentMonitoringJob() { func ExampleJobClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -665,6 +815,11 @@ func ExampleJobClient_GetLocation() { func ExampleJobClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -691,6 +846,11 @@ func ExampleJobClient_ListLocations() { func ExampleJobClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -711,6 +871,11 @@ func ExampleJobClient_GetIamPolicy() { func ExampleJobClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -731,6 +896,11 @@ func ExampleJobClient_SetIamPolicy() { func ExampleJobClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -751,6 +921,11 @@ func ExampleJobClient_TestIamPermissions() { func ExampleJobClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -769,6 +944,11 @@ func ExampleJobClient_CancelOperation() { func ExampleJobClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -787,6 +967,11 @@ func ExampleJobClient_DeleteOperation() { func ExampleJobClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -807,6 +992,11 @@ func ExampleJobClient_GetOperation() { func ExampleJobClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -833,6 +1023,11 @@ func ExampleJobClient_ListOperations() { func ExampleJobClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/metadata_client.go b/aiplatform/apiv1beta1/metadata_client.go index c30d96c0c1e..5d38d1e2392 100644 --- a/aiplatform/apiv1beta1/metadata_client.go +++ b/aiplatform/apiv1beta1/metadata_client.go @@ -234,7 +234,8 @@ func (c *MetadataClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MetadataClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -602,7 +603,8 @@ func NewMetadataClient(ctx context.Context, opts ...option.ClientOption) (*Metad // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *metadataGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/metadata_client_example_test.go b/aiplatform/apiv1beta1/metadata_client_example_test.go index 8da2edbc566..bbb66ed60a5 100644 --- a/aiplatform/apiv1beta1/metadata_client_example_test.go +++ b/aiplatform/apiv1beta1/metadata_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewMetadataClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewMetadataClient() { func ExampleMetadataClient_CreateMetadataStore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleMetadataClient_CreateMetadataStore() { func ExampleMetadataClient_GetMetadataStore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleMetadataClient_GetMetadataStore() { func ExampleMetadataClient_ListMetadataStores() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleMetadataClient_ListMetadataStores() { func ExampleMetadataClient_DeleteMetadataStore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleMetadataClient_DeleteMetadataStore() { func ExampleMetadataClient_CreateArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleMetadataClient_CreateArtifact() { func ExampleMetadataClient_GetArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -175,6 +210,11 @@ func ExampleMetadataClient_GetArtifact() { func ExampleMetadataClient_ListArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +241,11 @@ func ExampleMetadataClient_ListArtifacts() { func ExampleMetadataClient_UpdateArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +266,11 @@ func ExampleMetadataClient_UpdateArtifact() { func ExampleMetadataClient_DeleteArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -244,6 +294,11 @@ func ExampleMetadataClient_DeleteArtifact() { func ExampleMetadataClient_PurgeArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +324,11 @@ func ExampleMetadataClient_PurgeArtifacts() { func ExampleMetadataClient_CreateContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +349,11 @@ func ExampleMetadataClient_CreateContext() { func ExampleMetadataClient_GetContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -309,6 +374,11 @@ func ExampleMetadataClient_GetContext() { func ExampleMetadataClient_ListContexts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -335,6 +405,11 @@ func ExampleMetadataClient_ListContexts() { func ExampleMetadataClient_UpdateContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -355,6 +430,11 @@ func ExampleMetadataClient_UpdateContext() { func ExampleMetadataClient_DeleteContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -378,6 +458,11 @@ func ExampleMetadataClient_DeleteContext() { func ExampleMetadataClient_PurgeContexts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -403,6 +488,11 @@ func ExampleMetadataClient_PurgeContexts() { func ExampleMetadataClient_AddContextArtifactsAndExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -423,6 +513,11 @@ func ExampleMetadataClient_AddContextArtifactsAndExecutions() { func ExampleMetadataClient_AddContextChildren() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +538,11 @@ func ExampleMetadataClient_AddContextChildren() { func ExampleMetadataClient_QueryContextLineageSubgraph() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -463,6 +563,11 @@ func ExampleMetadataClient_QueryContextLineageSubgraph() { func ExampleMetadataClient_CreateExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -483,6 +588,11 @@ func ExampleMetadataClient_CreateExecution() { func ExampleMetadataClient_GetExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -503,6 +613,11 @@ func ExampleMetadataClient_GetExecution() { func ExampleMetadataClient_ListExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -529,6 +644,11 @@ func ExampleMetadataClient_ListExecutions() { func ExampleMetadataClient_UpdateExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -549,6 +669,11 @@ func ExampleMetadataClient_UpdateExecution() { func ExampleMetadataClient_DeleteExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -572,6 +697,11 @@ func ExampleMetadataClient_DeleteExecution() { func ExampleMetadataClient_PurgeExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -597,6 +727,11 @@ func ExampleMetadataClient_PurgeExecutions() { func ExampleMetadataClient_AddExecutionEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -617,6 +752,11 @@ func ExampleMetadataClient_AddExecutionEvents() { func ExampleMetadataClient_QueryExecutionInputsAndOutputs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -637,6 +777,11 @@ func ExampleMetadataClient_QueryExecutionInputsAndOutputs() { func ExampleMetadataClient_CreateMetadataSchema() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -657,6 +802,11 @@ func ExampleMetadataClient_CreateMetadataSchema() { func ExampleMetadataClient_GetMetadataSchema() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -677,6 +827,11 @@ func ExampleMetadataClient_GetMetadataSchema() { func ExampleMetadataClient_ListMetadataSchemas() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -703,6 +858,11 @@ func ExampleMetadataClient_ListMetadataSchemas() { func ExampleMetadataClient_QueryArtifactLineageSubgraph() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -723,6 +883,11 @@ func ExampleMetadataClient_QueryArtifactLineageSubgraph() { func ExampleMetadataClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -743,6 +908,11 @@ func ExampleMetadataClient_GetLocation() { func ExampleMetadataClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -769,6 +939,11 @@ func ExampleMetadataClient_ListLocations() { func ExampleMetadataClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -789,6 +964,11 @@ func ExampleMetadataClient_GetIamPolicy() { func ExampleMetadataClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -809,6 +989,11 @@ func ExampleMetadataClient_SetIamPolicy() { func ExampleMetadataClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -829,6 +1014,11 @@ func ExampleMetadataClient_TestIamPermissions() { func ExampleMetadataClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -847,6 +1037,11 @@ func ExampleMetadataClient_CancelOperation() { func ExampleMetadataClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -865,6 +1060,11 @@ func ExampleMetadataClient_DeleteOperation() { func ExampleMetadataClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -885,6 +1085,11 @@ func ExampleMetadataClient_GetOperation() { func ExampleMetadataClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -911,6 +1116,11 @@ func ExampleMetadataClient_ListOperations() { func ExampleMetadataClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/migration_client.go b/aiplatform/apiv1beta1/migration_client.go index ac843d4b28d..b6d9c3b934f 100644 --- a/aiplatform/apiv1beta1/migration_client.go +++ b/aiplatform/apiv1beta1/migration_client.go @@ -141,7 +141,8 @@ func (c *MigrationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MigrationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -312,7 +313,8 @@ func NewMigrationClient(ctx context.Context, opts ...option.ClientOption) (*Migr // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *migrationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/migration_client_example_test.go b/aiplatform/apiv1beta1/migration_client_example_test.go index 851409fb611..46ce396acf5 100644 --- a/aiplatform/apiv1beta1/migration_client_example_test.go +++ b/aiplatform/apiv1beta1/migration_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewMigrationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewMigrationClient() { func ExampleMigrationClient_SearchMigratableResources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleMigrationClient_SearchMigratableResources() { func ExampleMigrationClient_BatchMigrateResources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -92,6 +107,11 @@ func ExampleMigrationClient_BatchMigrateResources() { func ExampleMigrationClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleMigrationClient_GetLocation() { func ExampleMigrationClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +163,11 @@ func ExampleMigrationClient_ListLocations() { func ExampleMigrationClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -158,6 +188,11 @@ func ExampleMigrationClient_GetIamPolicy() { func ExampleMigrationClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -178,6 +213,11 @@ func ExampleMigrationClient_SetIamPolicy() { func ExampleMigrationClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -198,6 +238,11 @@ func ExampleMigrationClient_TestIamPermissions() { func ExampleMigrationClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +261,11 @@ func ExampleMigrationClient_CancelOperation() { func ExampleMigrationClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +284,11 @@ func ExampleMigrationClient_DeleteOperation() { func ExampleMigrationClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +309,11 @@ func ExampleMigrationClient_GetOperation() { func ExampleMigrationClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +340,11 @@ func ExampleMigrationClient_ListOperations() { func ExampleMigrationClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/model_client.go b/aiplatform/apiv1beta1/model_client.go index 7c5fa68df0d..36ee9d56beb 100644 --- a/aiplatform/apiv1beta1/model_client.go +++ b/aiplatform/apiv1beta1/model_client.go @@ -186,7 +186,8 @@ func (c *ModelClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ModelClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -457,7 +458,8 @@ func NewModelClient(ctx context.Context, opts ...option.ClientOption) (*ModelCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *modelGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/model_client_example_test.go b/aiplatform/apiv1beta1/model_client_example_test.go index 6a0478e91c6..ae969388c7c 100644 --- a/aiplatform/apiv1beta1/model_client_example_test.go +++ b/aiplatform/apiv1beta1/model_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewModelClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewModelClient() { func ExampleModelClient_UploadModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleModelClient_UploadModel() { func ExampleModelClient_GetModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleModelClient_GetModel() { func ExampleModelClient_ListModels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleModelClient_ListModels() { func ExampleModelClient_ListModelVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +163,11 @@ func ExampleModelClient_ListModelVersions() { func ExampleModelClient_UpdateModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -158,6 +188,11 @@ func ExampleModelClient_UpdateModel() { func ExampleModelClient_UpdateExplanationDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleModelClient_UpdateExplanationDataset() { func ExampleModelClient_DeleteModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +246,11 @@ func ExampleModelClient_DeleteModel() { func ExampleModelClient_DeleteModelVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -229,6 +274,11 @@ func ExampleModelClient_DeleteModelVersion() { func ExampleModelClient_MergeVersionAliases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +299,11 @@ func ExampleModelClient_MergeVersionAliases() { func ExampleModelClient_ExportModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +329,11 @@ func ExampleModelClient_ExportModel() { func ExampleModelClient_ImportModelEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -294,6 +354,11 @@ func ExampleModelClient_ImportModelEvaluation() { func ExampleModelClient_BatchImportModelEvaluationSlices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -314,6 +379,11 @@ func ExampleModelClient_BatchImportModelEvaluationSlices() { func ExampleModelClient_GetModelEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -334,6 +404,11 @@ func ExampleModelClient_GetModelEvaluation() { func ExampleModelClient_ListModelEvaluations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -360,6 +435,11 @@ func ExampleModelClient_ListModelEvaluations() { func ExampleModelClient_GetModelEvaluationSlice() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -380,6 +460,11 @@ func ExampleModelClient_GetModelEvaluationSlice() { func ExampleModelClient_ListModelEvaluationSlices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -406,6 +491,11 @@ func ExampleModelClient_ListModelEvaluationSlices() { func ExampleModelClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -426,6 +516,11 @@ func ExampleModelClient_GetLocation() { func ExampleModelClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -452,6 +547,11 @@ func ExampleModelClient_ListLocations() { func ExampleModelClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -472,6 +572,11 @@ func ExampleModelClient_GetIamPolicy() { func ExampleModelClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -492,6 +597,11 @@ func ExampleModelClient_SetIamPolicy() { func ExampleModelClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -512,6 +622,11 @@ func ExampleModelClient_TestIamPermissions() { func ExampleModelClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -530,6 +645,11 @@ func ExampleModelClient_CancelOperation() { func ExampleModelClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -548,6 +668,11 @@ func ExampleModelClient_DeleteOperation() { func ExampleModelClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -568,6 +693,11 @@ func ExampleModelClient_GetOperation() { func ExampleModelClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -594,6 +724,11 @@ func ExampleModelClient_ListOperations() { func ExampleModelClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/pipeline_client.go b/aiplatform/apiv1beta1/pipeline_client.go index b049d20482e..eec5a2a656b 100644 --- a/aiplatform/apiv1beta1/pipeline_client.go +++ b/aiplatform/apiv1beta1/pipeline_client.go @@ -167,7 +167,8 @@ func (c *PipelineClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PipelineClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -401,7 +402,8 @@ func NewPipelineClient(ctx context.Context, opts ...option.ClientOption) (*Pipel // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *pipelineGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/pipeline_client_example_test.go b/aiplatform/apiv1beta1/pipeline_client_example_test.go index 1dd964537ce..bf893845ea2 100644 --- a/aiplatform/apiv1beta1/pipeline_client_example_test.go +++ b/aiplatform/apiv1beta1/pipeline_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewPipelineClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewPipelineClient() { func ExamplePipelineClient_CreateTrainingPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExamplePipelineClient_CreateTrainingPipeline() { func ExamplePipelineClient_GetTrainingPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExamplePipelineClient_GetTrainingPipeline() { func ExamplePipelineClient_ListTrainingPipelines() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExamplePipelineClient_ListTrainingPipelines() { func ExamplePipelineClient_DeleteTrainingPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExamplePipelineClient_DeleteTrainingPipeline() { func ExamplePipelineClient_CancelTrainingPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +178,11 @@ func ExamplePipelineClient_CancelTrainingPipeline() { func ExamplePipelineClient_CreatePipelineJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExamplePipelineClient_CreatePipelineJob() { func ExamplePipelineClient_GetPipelineJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExamplePipelineClient_GetPipelineJob() { func ExamplePipelineClient_ListPipelineJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +259,11 @@ func ExamplePipelineClient_ListPipelineJobs() { func ExamplePipelineClient_DeletePipelineJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -237,6 +287,11 @@ func ExamplePipelineClient_DeletePipelineJob() { func ExamplePipelineClient_CancelPipelineJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +310,11 @@ func ExamplePipelineClient_CancelPipelineJob() { func ExamplePipelineClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +335,11 @@ func ExamplePipelineClient_GetLocation() { func ExamplePipelineClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +366,11 @@ func ExamplePipelineClient_ListLocations() { func ExamplePipelineClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +391,11 @@ func ExamplePipelineClient_GetIamPolicy() { func ExamplePipelineClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +416,11 @@ func ExamplePipelineClient_SetIamPolicy() { func ExamplePipelineClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -361,6 +441,11 @@ func ExamplePipelineClient_TestIamPermissions() { func ExamplePipelineClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -379,6 +464,11 @@ func ExamplePipelineClient_CancelOperation() { func ExamplePipelineClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -397,6 +487,11 @@ func ExamplePipelineClient_DeleteOperation() { func ExamplePipelineClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -417,6 +512,11 @@ func ExamplePipelineClient_GetOperation() { func ExamplePipelineClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +543,11 @@ func ExamplePipelineClient_ListOperations() { func ExamplePipelineClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/prediction_client.go b/aiplatform/apiv1beta1/prediction_client.go index b43f9a5f5b1..3605f3b987a 100644 --- a/aiplatform/apiv1beta1/prediction_client.go +++ b/aiplatform/apiv1beta1/prediction_client.go @@ -136,7 +136,8 @@ func (c *PredictionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -303,7 +304,8 @@ func NewPredictionClient(ctx context.Context, opts ...option.ClientOption) (*Pre // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/prediction_client_example_test.go b/aiplatform/apiv1beta1/prediction_client_example_test.go index b0c305956b6..b4927a6570b 100644 --- a/aiplatform/apiv1beta1/prediction_client_example_test.go +++ b/aiplatform/apiv1beta1/prediction_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewPredictionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewPredictionClient() { func ExamplePredictionClient_Predict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExamplePredictionClient_Predict() { func ExamplePredictionClient_RawPredict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExamplePredictionClient_RawPredict() { func ExamplePredictionClient_Explain() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExamplePredictionClient_Explain() { func ExamplePredictionClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -121,6 +146,11 @@ func ExamplePredictionClient_GetLocation() { func ExamplePredictionClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExamplePredictionClient_ListLocations() { func ExamplePredictionClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -167,6 +202,11 @@ func ExamplePredictionClient_GetIamPolicy() { func ExamplePredictionClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -187,6 +227,11 @@ func ExamplePredictionClient_SetIamPolicy() { func ExamplePredictionClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -207,6 +252,11 @@ func ExamplePredictionClient_TestIamPermissions() { func ExamplePredictionClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +275,11 @@ func ExamplePredictionClient_CancelOperation() { func ExamplePredictionClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +298,11 @@ func ExamplePredictionClient_DeleteOperation() { func ExamplePredictionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +323,11 @@ func ExamplePredictionClient_GetOperation() { func ExamplePredictionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +354,11 @@ func ExamplePredictionClient_ListOperations() { func ExamplePredictionClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/specialist_pool_client.go b/aiplatform/apiv1beta1/specialist_pool_client.go index 09bf576e0bf..e001d54e703 100644 --- a/aiplatform/apiv1beta1/specialist_pool_client.go +++ b/aiplatform/apiv1beta1/specialist_pool_client.go @@ -156,7 +156,8 @@ func (c *SpecialistPoolClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SpecialistPoolClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -355,7 +356,8 @@ func NewSpecialistPoolClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *specialistPoolGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/specialist_pool_client_example_test.go b/aiplatform/apiv1beta1/specialist_pool_client_example_test.go index 4d4e3b2bee3..e36255b3f64 100644 --- a/aiplatform/apiv1beta1/specialist_pool_client_example_test.go +++ b/aiplatform/apiv1beta1/specialist_pool_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewSpecialistPoolClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewSpecialistPoolClient() { func ExampleSpecialistPoolClient_CreateSpecialistPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleSpecialistPoolClient_CreateSpecialistPool() { func ExampleSpecialistPoolClient_GetSpecialistPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleSpecialistPoolClient_GetSpecialistPool() { func ExampleSpecialistPoolClient_ListSpecialistPools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleSpecialistPoolClient_ListSpecialistPools() { func ExampleSpecialistPoolClient_DeleteSpecialistPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleSpecialistPoolClient_DeleteSpecialistPool() { func ExampleSpecialistPoolClient_UpdateSpecialistPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleSpecialistPoolClient_UpdateSpecialistPool() { func ExampleSpecialistPoolClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleSpecialistPoolClient_GetLocation() { func ExampleSpecialistPoolClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +246,11 @@ func ExampleSpecialistPoolClient_ListLocations() { func ExampleSpecialistPoolClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +271,11 @@ func ExampleSpecialistPoolClient_GetIamPolicy() { func ExampleSpecialistPoolClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleSpecialistPoolClient_SetIamPolicy() { func ExampleSpecialistPoolClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +321,11 @@ func ExampleSpecialistPoolClient_TestIamPermissions() { func ExampleSpecialistPoolClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -284,6 +344,11 @@ func ExampleSpecialistPoolClient_CancelOperation() { func ExampleSpecialistPoolClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleSpecialistPoolClient_DeleteOperation() { func ExampleSpecialistPoolClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +392,11 @@ func ExampleSpecialistPoolClient_GetOperation() { func ExampleSpecialistPoolClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. @@ -348,6 +423,11 @@ func ExampleSpecialistPoolClient_ListOperations() { func ExampleSpecialistPoolClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/tensorboard_client.go b/aiplatform/apiv1beta1/tensorboard_client.go index 54f840672e3..9682caf5491 100644 --- a/aiplatform/apiv1beta1/tensorboard_client.go +++ b/aiplatform/apiv1beta1/tensorboard_client.go @@ -223,7 +223,8 @@ func (c *TensorboardClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TensorboardClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -566,7 +567,8 @@ func NewTensorboardClient(ctx context.Context, opts ...option.ClientOption) (*Te // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *tensorboardGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/tensorboard_client_example_test.go b/aiplatform/apiv1beta1/tensorboard_client_example_test.go index 12c9f87a84c..7c84dea9887 100644 --- a/aiplatform/apiv1beta1/tensorboard_client_example_test.go +++ b/aiplatform/apiv1beta1/tensorboard_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewTensorboardClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewTensorboardClient() { func ExampleTensorboardClient_CreateTensorboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleTensorboardClient_CreateTensorboard() { func ExampleTensorboardClient_GetTensorboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleTensorboardClient_GetTensorboard() { func ExampleTensorboardClient_UpdateTensorboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleTensorboardClient_UpdateTensorboard() { func ExampleTensorboardClient_ListTensorboards() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleTensorboardClient_ListTensorboards() { func ExampleTensorboardClient_DeleteTensorboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleTensorboardClient_DeleteTensorboard() { func ExampleTensorboardClient_CreateTensorboardExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleTensorboardClient_CreateTensorboardExperiment() { func ExampleTensorboardClient_GetTensorboardExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleTensorboardClient_GetTensorboardExperiment() { func ExampleTensorboardClient_UpdateTensorboardExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +265,11 @@ func ExampleTensorboardClient_UpdateTensorboardExperiment() { func ExampleTensorboardClient_ListTensorboardExperiments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleTensorboardClient_ListTensorboardExperiments() { func ExampleTensorboardClient_DeleteTensorboardExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +324,11 @@ func ExampleTensorboardClient_DeleteTensorboardExperiment() { func ExampleTensorboardClient_CreateTensorboardRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +349,11 @@ func ExampleTensorboardClient_CreateTensorboardRun() { func ExampleTensorboardClient_BatchCreateTensorboardRuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -309,6 +374,11 @@ func ExampleTensorboardClient_BatchCreateTensorboardRuns() { func ExampleTensorboardClient_GetTensorboardRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -329,6 +399,11 @@ func ExampleTensorboardClient_GetTensorboardRun() { func ExampleTensorboardClient_UpdateTensorboardRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +424,11 @@ func ExampleTensorboardClient_UpdateTensorboardRun() { func ExampleTensorboardClient_ListTensorboardRuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -375,6 +455,11 @@ func ExampleTensorboardClient_ListTensorboardRuns() { func ExampleTensorboardClient_DeleteTensorboardRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -398,6 +483,11 @@ func ExampleTensorboardClient_DeleteTensorboardRun() { func ExampleTensorboardClient_BatchCreateTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +508,11 @@ func ExampleTensorboardClient_BatchCreateTensorboardTimeSeries() { func ExampleTensorboardClient_CreateTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +533,11 @@ func ExampleTensorboardClient_CreateTensorboardTimeSeries() { func ExampleTensorboardClient_GetTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -458,6 +558,11 @@ func ExampleTensorboardClient_GetTensorboardTimeSeries() { func ExampleTensorboardClient_UpdateTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -478,6 +583,11 @@ func ExampleTensorboardClient_UpdateTensorboardTimeSeries() { func ExampleTensorboardClient_ListTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -504,6 +614,11 @@ func ExampleTensorboardClient_ListTensorboardTimeSeries() { func ExampleTensorboardClient_DeleteTensorboardTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -527,6 +642,11 @@ func ExampleTensorboardClient_DeleteTensorboardTimeSeries() { func ExampleTensorboardClient_BatchReadTensorboardTimeSeriesData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -547,6 +667,11 @@ func ExampleTensorboardClient_BatchReadTensorboardTimeSeriesData() { func ExampleTensorboardClient_ReadTensorboardTimeSeriesData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -567,6 +692,11 @@ func ExampleTensorboardClient_ReadTensorboardTimeSeriesData() { func ExampleTensorboardClient_WriteTensorboardExperimentData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -587,6 +717,11 @@ func ExampleTensorboardClient_WriteTensorboardExperimentData() { func ExampleTensorboardClient_WriteTensorboardRunData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -607,6 +742,11 @@ func ExampleTensorboardClient_WriteTensorboardRunData() { func ExampleTensorboardClient_ExportTensorboardTimeSeriesData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -633,6 +773,11 @@ func ExampleTensorboardClient_ExportTensorboardTimeSeriesData() { func ExampleTensorboardClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -653,6 +798,11 @@ func ExampleTensorboardClient_GetLocation() { func ExampleTensorboardClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -679,6 +829,11 @@ func ExampleTensorboardClient_ListLocations() { func ExampleTensorboardClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -699,6 +854,11 @@ func ExampleTensorboardClient_GetIamPolicy() { func ExampleTensorboardClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -719,6 +879,11 @@ func ExampleTensorboardClient_SetIamPolicy() { func ExampleTensorboardClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -739,6 +904,11 @@ func ExampleTensorboardClient_TestIamPermissions() { func ExampleTensorboardClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -757,6 +927,11 @@ func ExampleTensorboardClient_CancelOperation() { func ExampleTensorboardClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -775,6 +950,11 @@ func ExampleTensorboardClient_DeleteOperation() { func ExampleTensorboardClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -795,6 +975,11 @@ func ExampleTensorboardClient_GetOperation() { func ExampleTensorboardClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. @@ -821,6 +1006,11 @@ func ExampleTensorboardClient_ListOperations() { func ExampleTensorboardClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/apiv1beta1/vizier_client.go b/aiplatform/apiv1beta1/vizier_client.go index b74e3e97d85..67ffd16ffd5 100644 --- a/aiplatform/apiv1beta1/vizier_client.go +++ b/aiplatform/apiv1beta1/vizier_client.go @@ -184,7 +184,8 @@ func (c *VizierClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VizierClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -439,7 +440,8 @@ func NewVizierClient(ctx context.Context, opts ...option.ClientOption) (*VizierC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *vizierGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/aiplatform/apiv1beta1/vizier_client_example_test.go b/aiplatform/apiv1beta1/vizier_client_example_test.go index b57ad106502..68503d164b4 100644 --- a/aiplatform/apiv1beta1/vizier_client_example_test.go +++ b/aiplatform/apiv1beta1/vizier_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewVizierClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewVizierClient() { func ExampleVizierClient_CreateStudy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleVizierClient_CreateStudy() { func ExampleVizierClient_GetStudy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleVizierClient_GetStudy() { func ExampleVizierClient_ListStudies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleVizierClient_ListStudies() { func ExampleVizierClient_DeleteStudy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleVizierClient_DeleteStudy() { func ExampleVizierClient_LookupStudy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleVizierClient_LookupStudy() { func ExampleVizierClient_SuggestTrials() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleVizierClient_SuggestTrials() { func ExampleVizierClient_CreateTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleVizierClient_CreateTrial() { func ExampleVizierClient_GetTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -210,6 +255,11 @@ func ExampleVizierClient_GetTrial() { func ExampleVizierClient_ListTrials() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -236,6 +286,11 @@ func ExampleVizierClient_ListTrials() { func ExampleVizierClient_AddTrialMeasurement() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +311,11 @@ func ExampleVizierClient_AddTrialMeasurement() { func ExampleVizierClient_CompleteTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +336,11 @@ func ExampleVizierClient_CompleteTrial() { func ExampleVizierClient_DeleteTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -294,6 +359,11 @@ func ExampleVizierClient_DeleteTrial() { func ExampleVizierClient_CheckTrialEarlyStoppingState() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -319,6 +389,11 @@ func ExampleVizierClient_CheckTrialEarlyStoppingState() { func ExampleVizierClient_StopTrial() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -339,6 +414,11 @@ func ExampleVizierClient_StopTrial() { func ExampleVizierClient_ListOptimalTrials() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -359,6 +439,11 @@ func ExampleVizierClient_ListOptimalTrials() { func ExampleVizierClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -379,6 +464,11 @@ func ExampleVizierClient_GetLocation() { func ExampleVizierClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -405,6 +495,11 @@ func ExampleVizierClient_ListLocations() { func ExampleVizierClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -425,6 +520,11 @@ func ExampleVizierClient_GetIamPolicy() { func ExampleVizierClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -445,6 +545,11 @@ func ExampleVizierClient_SetIamPolicy() { func ExampleVizierClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -465,6 +570,11 @@ func ExampleVizierClient_TestIamPermissions() { func ExampleVizierClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -483,6 +593,11 @@ func ExampleVizierClient_CancelOperation() { func ExampleVizierClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -501,6 +616,11 @@ func ExampleVizierClient_DeleteOperation() { func ExampleVizierClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -521,6 +641,11 @@ func ExampleVizierClient_GetOperation() { func ExampleVizierClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. @@ -547,6 +672,11 @@ func ExampleVizierClient_ListOperations() { func ExampleVizierClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/aiplatform/go.mod b/aiplatform/go.mod index e80a1f2b41b..0a7477e22a8 100644 --- a/aiplatform/go.mod +++ b/aiplatform/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220902135211-223410557253 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/aiplatform/go.sum b/aiplatform/go.sum index fb0618c5aac..5f41c6b3972 100644 --- a/aiplatform/go.sum +++ b/aiplatform/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/analytics/admin/apiv1alpha/analytics_admin_client.go b/analytics/admin/apiv1alpha/analytics_admin_client.go index f206706d387..3a535fb2deb 100644 --- a/analytics/admin/apiv1alpha/analytics_admin_client.go +++ b/analytics/admin/apiv1alpha/analytics_admin_client.go @@ -2080,7 +2080,8 @@ func (c *AnalyticsAdminClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AnalyticsAdminClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -2623,7 +2624,8 @@ func NewAnalyticsAdminClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *analyticsAdminGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -2707,7 +2709,7 @@ func (c *analyticsAdminRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *analyticsAdminRESTClient) Connection() *grpc.ClientConn { return nil } @@ -4963,8 +4965,12 @@ func (c *analyticsAdminRESTClient) UpdateAccount(ctx context.Context, req *admin baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetAccount().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -5444,8 +5450,12 @@ func (c *analyticsAdminRESTClient) UpdateProperty(ctx context.Context, req *admi baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetProperty().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -6429,8 +6439,12 @@ func (c *analyticsAdminRESTClient) UpdateGoogleAdsLink(ctx context.Context, req baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetGoogleAdsLink().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -6908,8 +6922,12 @@ func (c *analyticsAdminRESTClient) UpdateMeasurementProtocolSecret(ctx context.C baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetMeasurementProtocolSecret().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -7174,8 +7192,12 @@ func (c *analyticsAdminRESTClient) UpdateGoogleSignalsSettings(ctx context.Conte baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetGoogleSignalsSettings().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -7717,8 +7739,12 @@ func (c *analyticsAdminRESTClient) UpdateDisplayVideo360AdvertiserLink(ctx conte baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetDisplayVideo_360AdvertiserLink().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -8206,8 +8232,12 @@ func (c *analyticsAdminRESTClient) UpdateCustomDimension(ctx context.Context, re baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetCustomDimension().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -8514,8 +8544,12 @@ func (c *analyticsAdminRESTClient) UpdateCustomMetric(ctx context.Context, req * baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetCustomMetric().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -8815,8 +8849,12 @@ func (c *analyticsAdminRESTClient) UpdateDataRetentionSettings(ctx context.Conte baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetDataRetentionSettings().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -8977,8 +9015,12 @@ func (c *analyticsAdminRESTClient) UpdateDataStream(ctx context.Context, req *ad baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetDataStream().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -9386,8 +9428,12 @@ func (c *analyticsAdminRESTClient) UpdateAudience(ctx context.Context, req *admi baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetAudience().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -9547,8 +9593,12 @@ func (c *analyticsAdminRESTClient) UpdateAttributionSettings(ctx context.Context baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetAttributionSettings().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/analytics/admin/apiv1alpha/analytics_admin_client_example_test.go b/analytics/admin/apiv1alpha/analytics_admin_client_example_test.go index 5d093c00346..86d8ed4da82 100644 --- a/analytics/admin/apiv1alpha/analytics_admin_client_example_test.go +++ b/analytics/admin/apiv1alpha/analytics_admin_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAnalyticsAdminClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAnalyticsAdminClient() { func ExampleNewAnalyticsAdminRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewAnalyticsAdminRESTClient() { func ExampleAnalyticsAdminClient_GetAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleAnalyticsAdminClient_GetAccount() { func ExampleAnalyticsAdminClient_ListAccounts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleAnalyticsAdminClient_ListAccounts() { func ExampleAnalyticsAdminClient_DeleteAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -114,6 +139,11 @@ func ExampleAnalyticsAdminClient_DeleteAccount() { func ExampleAnalyticsAdminClient_UpdateAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +164,11 @@ func ExampleAnalyticsAdminClient_UpdateAccount() { func ExampleAnalyticsAdminClient_ProvisionAccountTicket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +189,11 @@ func ExampleAnalyticsAdminClient_ProvisionAccountTicket() { func ExampleAnalyticsAdminClient_ListAccountSummaries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +220,11 @@ func ExampleAnalyticsAdminClient_ListAccountSummaries() { func ExampleAnalyticsAdminClient_GetProperty() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +245,11 @@ func ExampleAnalyticsAdminClient_GetProperty() { func ExampleAnalyticsAdminClient_ListProperties() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleAnalyticsAdminClient_ListProperties() { func ExampleAnalyticsAdminClient_CreateProperty() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +301,11 @@ func ExampleAnalyticsAdminClient_CreateProperty() { func ExampleAnalyticsAdminClient_DeleteProperty() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +326,11 @@ func ExampleAnalyticsAdminClient_DeleteProperty() { func ExampleAnalyticsAdminClient_UpdateProperty() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +351,11 @@ func ExampleAnalyticsAdminClient_UpdateProperty() { func ExampleAnalyticsAdminClient_GetUserLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +376,11 @@ func ExampleAnalyticsAdminClient_GetUserLink() { func ExampleAnalyticsAdminClient_BatchGetUserLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -326,6 +401,11 @@ func ExampleAnalyticsAdminClient_BatchGetUserLinks() { func ExampleAnalyticsAdminClient_ListUserLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -352,6 +432,11 @@ func ExampleAnalyticsAdminClient_ListUserLinks() { func ExampleAnalyticsAdminClient_AuditUserLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -378,6 +463,11 @@ func ExampleAnalyticsAdminClient_AuditUserLinks() { func ExampleAnalyticsAdminClient_CreateUserLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -398,6 +488,11 @@ func ExampleAnalyticsAdminClient_CreateUserLink() { func ExampleAnalyticsAdminClient_BatchCreateUserLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +513,11 @@ func ExampleAnalyticsAdminClient_BatchCreateUserLinks() { func ExampleAnalyticsAdminClient_UpdateUserLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +538,11 @@ func ExampleAnalyticsAdminClient_UpdateUserLink() { func ExampleAnalyticsAdminClient_BatchUpdateUserLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -458,6 +563,11 @@ func ExampleAnalyticsAdminClient_BatchUpdateUserLinks() { func ExampleAnalyticsAdminClient_DeleteUserLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -476,6 +586,11 @@ func ExampleAnalyticsAdminClient_DeleteUserLink() { func ExampleAnalyticsAdminClient_BatchDeleteUserLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -494,6 +609,11 @@ func ExampleAnalyticsAdminClient_BatchDeleteUserLinks() { func ExampleAnalyticsAdminClient_CreateFirebaseLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -514,6 +634,11 @@ func ExampleAnalyticsAdminClient_CreateFirebaseLink() { func ExampleAnalyticsAdminClient_DeleteFirebaseLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -532,6 +657,11 @@ func ExampleAnalyticsAdminClient_DeleteFirebaseLink() { func ExampleAnalyticsAdminClient_ListFirebaseLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -558,6 +688,11 @@ func ExampleAnalyticsAdminClient_ListFirebaseLinks() { func ExampleAnalyticsAdminClient_GetGlobalSiteTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -578,6 +713,11 @@ func ExampleAnalyticsAdminClient_GetGlobalSiteTag() { func ExampleAnalyticsAdminClient_CreateGoogleAdsLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -598,6 +738,11 @@ func ExampleAnalyticsAdminClient_CreateGoogleAdsLink() { func ExampleAnalyticsAdminClient_UpdateGoogleAdsLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -618,6 +763,11 @@ func ExampleAnalyticsAdminClient_UpdateGoogleAdsLink() { func ExampleAnalyticsAdminClient_DeleteGoogleAdsLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -636,6 +786,11 @@ func ExampleAnalyticsAdminClient_DeleteGoogleAdsLink() { func ExampleAnalyticsAdminClient_ListGoogleAdsLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -662,6 +817,11 @@ func ExampleAnalyticsAdminClient_ListGoogleAdsLinks() { func ExampleAnalyticsAdminClient_GetDataSharingSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -682,6 +842,11 @@ func ExampleAnalyticsAdminClient_GetDataSharingSettings() { func ExampleAnalyticsAdminClient_GetMeasurementProtocolSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -702,6 +867,11 @@ func ExampleAnalyticsAdminClient_GetMeasurementProtocolSecret() { func ExampleAnalyticsAdminClient_ListMeasurementProtocolSecrets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -728,6 +898,11 @@ func ExampleAnalyticsAdminClient_ListMeasurementProtocolSecrets() { func ExampleAnalyticsAdminClient_CreateMeasurementProtocolSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -748,6 +923,11 @@ func ExampleAnalyticsAdminClient_CreateMeasurementProtocolSecret() { func ExampleAnalyticsAdminClient_DeleteMeasurementProtocolSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -766,6 +946,11 @@ func ExampleAnalyticsAdminClient_DeleteMeasurementProtocolSecret() { func ExampleAnalyticsAdminClient_UpdateMeasurementProtocolSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -786,6 +971,11 @@ func ExampleAnalyticsAdminClient_UpdateMeasurementProtocolSecret() { func ExampleAnalyticsAdminClient_AcknowledgeUserDataCollection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -806,6 +996,11 @@ func ExampleAnalyticsAdminClient_AcknowledgeUserDataCollection() { func ExampleAnalyticsAdminClient_SearchChangeHistoryEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -832,6 +1027,11 @@ func ExampleAnalyticsAdminClient_SearchChangeHistoryEvents() { func ExampleAnalyticsAdminClient_GetGoogleSignalsSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -852,6 +1052,11 @@ func ExampleAnalyticsAdminClient_GetGoogleSignalsSettings() { func ExampleAnalyticsAdminClient_UpdateGoogleSignalsSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -872,6 +1077,11 @@ func ExampleAnalyticsAdminClient_UpdateGoogleSignalsSettings() { func ExampleAnalyticsAdminClient_CreateConversionEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -892,6 +1102,11 @@ func ExampleAnalyticsAdminClient_CreateConversionEvent() { func ExampleAnalyticsAdminClient_GetConversionEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -912,6 +1127,11 @@ func ExampleAnalyticsAdminClient_GetConversionEvent() { func ExampleAnalyticsAdminClient_DeleteConversionEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -930,6 +1150,11 @@ func ExampleAnalyticsAdminClient_DeleteConversionEvent() { func ExampleAnalyticsAdminClient_ListConversionEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -956,6 +1181,11 @@ func ExampleAnalyticsAdminClient_ListConversionEvents() { func ExampleAnalyticsAdminClient_GetDisplayVideo360AdvertiserLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -976,6 +1206,11 @@ func ExampleAnalyticsAdminClient_GetDisplayVideo360AdvertiserLink() { func ExampleAnalyticsAdminClient_ListDisplayVideo360AdvertiserLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1002,6 +1237,11 @@ func ExampleAnalyticsAdminClient_ListDisplayVideo360AdvertiserLinks() { func ExampleAnalyticsAdminClient_CreateDisplayVideo360AdvertiserLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1022,6 +1262,11 @@ func ExampleAnalyticsAdminClient_CreateDisplayVideo360AdvertiserLink() { func ExampleAnalyticsAdminClient_DeleteDisplayVideo360AdvertiserLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1040,6 +1285,11 @@ func ExampleAnalyticsAdminClient_DeleteDisplayVideo360AdvertiserLink() { func ExampleAnalyticsAdminClient_UpdateDisplayVideo360AdvertiserLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1060,6 +1310,11 @@ func ExampleAnalyticsAdminClient_UpdateDisplayVideo360AdvertiserLink() { func ExampleAnalyticsAdminClient_GetDisplayVideo360AdvertiserLinkProposal() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1080,6 +1335,11 @@ func ExampleAnalyticsAdminClient_GetDisplayVideo360AdvertiserLinkProposal() { func ExampleAnalyticsAdminClient_ListDisplayVideo360AdvertiserLinkProposals() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1106,6 +1366,11 @@ func ExampleAnalyticsAdminClient_ListDisplayVideo360AdvertiserLinkProposals() { func ExampleAnalyticsAdminClient_CreateDisplayVideo360AdvertiserLinkProposal() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1126,6 +1391,11 @@ func ExampleAnalyticsAdminClient_CreateDisplayVideo360AdvertiserLinkProposal() { func ExampleAnalyticsAdminClient_DeleteDisplayVideo360AdvertiserLinkProposal() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1144,6 +1414,11 @@ func ExampleAnalyticsAdminClient_DeleteDisplayVideo360AdvertiserLinkProposal() { func ExampleAnalyticsAdminClient_ApproveDisplayVideo360AdvertiserLinkProposal() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1164,6 +1439,11 @@ func ExampleAnalyticsAdminClient_ApproveDisplayVideo360AdvertiserLinkProposal() func ExampleAnalyticsAdminClient_CancelDisplayVideo360AdvertiserLinkProposal() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1184,6 +1464,11 @@ func ExampleAnalyticsAdminClient_CancelDisplayVideo360AdvertiserLinkProposal() { func ExampleAnalyticsAdminClient_CreateCustomDimension() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1204,6 +1489,11 @@ func ExampleAnalyticsAdminClient_CreateCustomDimension() { func ExampleAnalyticsAdminClient_UpdateCustomDimension() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1224,6 +1514,11 @@ func ExampleAnalyticsAdminClient_UpdateCustomDimension() { func ExampleAnalyticsAdminClient_ListCustomDimensions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1250,6 +1545,11 @@ func ExampleAnalyticsAdminClient_ListCustomDimensions() { func ExampleAnalyticsAdminClient_ArchiveCustomDimension() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1268,6 +1568,11 @@ func ExampleAnalyticsAdminClient_ArchiveCustomDimension() { func ExampleAnalyticsAdminClient_GetCustomDimension() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1288,6 +1593,11 @@ func ExampleAnalyticsAdminClient_GetCustomDimension() { func ExampleAnalyticsAdminClient_CreateCustomMetric() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1308,6 +1618,11 @@ func ExampleAnalyticsAdminClient_CreateCustomMetric() { func ExampleAnalyticsAdminClient_UpdateCustomMetric() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1328,6 +1643,11 @@ func ExampleAnalyticsAdminClient_UpdateCustomMetric() { func ExampleAnalyticsAdminClient_ListCustomMetrics() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1354,6 +1674,11 @@ func ExampleAnalyticsAdminClient_ListCustomMetrics() { func ExampleAnalyticsAdminClient_ArchiveCustomMetric() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1372,6 +1697,11 @@ func ExampleAnalyticsAdminClient_ArchiveCustomMetric() { func ExampleAnalyticsAdminClient_GetCustomMetric() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1392,6 +1722,11 @@ func ExampleAnalyticsAdminClient_GetCustomMetric() { func ExampleAnalyticsAdminClient_GetDataRetentionSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1412,6 +1747,11 @@ func ExampleAnalyticsAdminClient_GetDataRetentionSettings() { func ExampleAnalyticsAdminClient_UpdateDataRetentionSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1432,6 +1772,11 @@ func ExampleAnalyticsAdminClient_UpdateDataRetentionSettings() { func ExampleAnalyticsAdminClient_CreateDataStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1452,6 +1797,11 @@ func ExampleAnalyticsAdminClient_CreateDataStream() { func ExampleAnalyticsAdminClient_DeleteDataStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1470,6 +1820,11 @@ func ExampleAnalyticsAdminClient_DeleteDataStream() { func ExampleAnalyticsAdminClient_UpdateDataStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1490,6 +1845,11 @@ func ExampleAnalyticsAdminClient_UpdateDataStream() { func ExampleAnalyticsAdminClient_ListDataStreams() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1516,6 +1876,11 @@ func ExampleAnalyticsAdminClient_ListDataStreams() { func ExampleAnalyticsAdminClient_GetDataStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1536,6 +1901,11 @@ func ExampleAnalyticsAdminClient_GetDataStream() { func ExampleAnalyticsAdminClient_GetAudience() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1556,6 +1926,11 @@ func ExampleAnalyticsAdminClient_GetAudience() { func ExampleAnalyticsAdminClient_ListAudiences() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1582,6 +1957,11 @@ func ExampleAnalyticsAdminClient_ListAudiences() { func ExampleAnalyticsAdminClient_CreateAudience() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1602,6 +1982,11 @@ func ExampleAnalyticsAdminClient_CreateAudience() { func ExampleAnalyticsAdminClient_UpdateAudience() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1622,6 +2007,11 @@ func ExampleAnalyticsAdminClient_UpdateAudience() { func ExampleAnalyticsAdminClient_ArchiveAudience() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1640,6 +2030,11 @@ func ExampleAnalyticsAdminClient_ArchiveAudience() { func ExampleAnalyticsAdminClient_GetAttributionSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1660,6 +2055,11 @@ func ExampleAnalyticsAdminClient_GetAttributionSettings() { func ExampleAnalyticsAdminClient_UpdateAttributionSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -1680,6 +2080,11 @@ func ExampleAnalyticsAdminClient_UpdateAttributionSettings() { func ExampleAnalyticsAdminClient_RunAccessReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/analytics/admin/apiv1alpha/doc.go b/analytics/admin/apiv1alpha/doc.go index 145bbba3ac6..01201b755ee 100644 --- a/analytics/admin/apiv1alpha/doc.go +++ b/analytics/admin/apiv1alpha/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := admin.NewAnalyticsAdminClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := admin.NewAnalyticsAdminClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/analytics/go.mod b/analytics/go.mod index f29133c0e91..d8b181c304c 100644 --- a/analytics/go.mod +++ b/analytics/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/analytics/go.sum b/analytics/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/analytics/go.sum +++ b/analytics/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/apigateway/apiv1/api_gateway_client.go b/apigateway/apiv1/api_gateway_client.go index 7e68151886c..84cb1325a94 100644 --- a/apigateway/apiv1/api_gateway_client.go +++ b/apigateway/apiv1/api_gateway_client.go @@ -255,7 +255,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -465,7 +466,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/apigateway/apiv1/api_gateway_client_example_test.go b/apigateway/apiv1/api_gateway_client_example_test.go index 8609cddb2ba..956d9d5c958 100644 --- a/apigateway/apiv1/api_gateway_client_example_test.go +++ b/apigateway/apiv1/api_gateway_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListGateways() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListGateways() { func ExampleClient_GetGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetGateway() { func ExampleClient_CreateGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_CreateGateway() { func ExampleClient_UpdateGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleClient_UpdateGateway() { func ExampleClient_DeleteGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleClient_DeleteGateway() { func ExampleClient_ListApis() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleClient_ListApis() { func ExampleClient_GetApi() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleClient_GetApi() { func ExampleClient_CreateApi() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleClient_CreateApi() { func ExampleClient_UpdateApi() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleClient_UpdateApi() { func ExampleClient_DeleteApi() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleClient_DeleteApi() { func ExampleClient_ListApiConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +362,11 @@ func ExampleClient_ListApiConfigs() { func ExampleClient_GetApiConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +387,11 @@ func ExampleClient_GetApiConfig() { func ExampleClient_CreateApiConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +417,11 @@ func ExampleClient_CreateApiConfig() { func ExampleClient_UpdateApiConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +447,11 @@ func ExampleClient_UpdateApiConfig() { func ExampleClient_DeleteApiConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/apigateway/apiv1/doc.go b/apigateway/apiv1/doc.go index 489b6016768..a08c0c3775e 100644 --- a/apigateway/apiv1/doc.go +++ b/apigateway/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apigateway.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apigateway.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/apigateway/go.mod b/apigateway/go.mod index dc830a576e7..d97a0c733bb 100644 --- a/apigateway/go.mod +++ b/apigateway/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/apigateway/go.sum b/apigateway/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/apigateway/go.sum +++ b/apigateway/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/apigeeconnect/apiv1/connection_client.go b/apigeeconnect/apiv1/connection_client.go index aa7269a3568..17c0e62ab7b 100644 --- a/apigeeconnect/apiv1/connection_client.go +++ b/apigeeconnect/apiv1/connection_client.go @@ -108,7 +108,8 @@ func (c *ConnectionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ConnectionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -179,7 +180,8 @@ func NewConnectionClient(ctx context.Context, opts ...option.ClientOption) (*Con // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *connectionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/apigeeconnect/apiv1/connection_client_example_test.go b/apigeeconnect/apiv1/connection_client_example_test.go index ea8be46b723..25a736036f4 100644 --- a/apigeeconnect/apiv1/connection_client_example_test.go +++ b/apigeeconnect/apiv1/connection_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewConnectionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeconnect.NewConnectionClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewConnectionClient() { func ExampleConnectionClient_ListConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeconnect.NewConnectionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/apigeeconnect/apiv1/doc.go b/apigeeconnect/apiv1/doc.go index 263206eac85..3d3be378fae 100644 --- a/apigeeconnect/apiv1/doc.go +++ b/apigeeconnect/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apigeeconnect.NewConnectionClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apigeeconnect.NewConnectionClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/apigeeconnect/apiv1/tether_client.go b/apigeeconnect/apiv1/tether_client.go index b6d8ef68c8b..c644e8b2c77 100644 --- a/apigeeconnect/apiv1/tether_client.go +++ b/apigeeconnect/apiv1/tether_client.go @@ -93,7 +93,8 @@ func (c *TetherClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TetherClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -171,7 +172,8 @@ func NewTetherClient(ctx context.Context, opts ...option.ClientOption) (*TetherC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *tetherGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/apigeeconnect/apiv1/tether_client_example_test.go b/apigeeconnect/apiv1/tether_client_example_test.go index 28c2744a1d9..0c98681c5a5 100644 --- a/apigeeconnect/apiv1/tether_client_example_test.go +++ b/apigeeconnect/apiv1/tether_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTetherClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeconnect.NewTetherClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTetherClient() { func ExampleTetherClient_Egress() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeconnect.NewTetherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/apigeeconnect/go.mod b/apigeeconnect/go.mod index 0e79d720113..2b28c00169f 100644 --- a/apigeeconnect/go.mod +++ b/apigeeconnect/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/apigeeconnect/go.sum b/apigeeconnect/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/apigeeconnect/go.sum +++ b/apigeeconnect/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/apigeeregistry/apiv1/doc.go b/apigeeregistry/apiv1/doc.go index 5a4917de7d7..de5cb3edfee 100644 --- a/apigeeregistry/apiv1/doc.go +++ b/apigeeregistry/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apigeeregistry.NewProvisioningClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apigeeregistry.NewProvisioningClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/apigeeregistry/apiv1/provisioning_client.go b/apigeeregistry/apiv1/provisioning_client.go index 0b4f4d341e3..63159a0e1f1 100644 --- a/apigeeregistry/apiv1/provisioning_client.go +++ b/apigeeregistry/apiv1/provisioning_client.go @@ -142,7 +142,8 @@ func (c *ProvisioningClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ProvisioningClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -316,7 +317,8 @@ func NewProvisioningClient(ctx context.Context, opts ...option.ClientOption) (*P // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *provisioningGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/apigeeregistry/apiv1/provisioning_client_example_test.go b/apigeeregistry/apiv1/provisioning_client_example_test.go index 127ab4d708d..d2f94534293 100644 --- a/apigeeregistry/apiv1/provisioning_client_example_test.go +++ b/apigeeregistry/apiv1/provisioning_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewProvisioningClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewProvisioningClient() { func ExampleProvisioningClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleProvisioningClient_CreateInstance() { func ExampleProvisioningClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +104,11 @@ func ExampleProvisioningClient_DeleteInstance() { func ExampleProvisioningClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleProvisioningClient_GetInstance() { func ExampleProvisioningClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleProvisioningClient_GetLocation() { func ExampleProvisioningClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleProvisioningClient_ListLocations() { func ExampleProvisioningClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -175,6 +210,11 @@ func ExampleProvisioningClient_GetIamPolicy() { func ExampleProvisioningClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -195,6 +235,11 @@ func ExampleProvisioningClient_SetIamPolicy() { func ExampleProvisioningClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +260,11 @@ func ExampleProvisioningClient_TestIamPermissions() { func ExampleProvisioningClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -233,6 +283,11 @@ func ExampleProvisioningClient_CancelOperation() { func ExampleProvisioningClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +306,11 @@ func ExampleProvisioningClient_DeleteOperation() { func ExampleProvisioningClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +331,11 @@ func ExampleProvisioningClient_GetOperation() { func ExampleProvisioningClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/apigeeregistry/apiv1/registry_client.go b/apigeeregistry/apiv1/registry_client.go index bd9bcc99507..2b702151c6d 100644 --- a/apigeeregistry/apiv1/registry_client.go +++ b/apigeeregistry/apiv1/registry_client.go @@ -659,7 +659,8 @@ func (c *RegistryClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegistryClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -979,7 +980,8 @@ func NewRegistryClient(ctx context.Context, opts ...option.ClientOption) (*Regis // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *registryGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/apigeeregistry/apiv1/registry_client_example_test.go b/apigeeregistry/apiv1/registry_client_example_test.go index 44793460067..db3a8405bb2 100644 --- a/apigeeregistry/apiv1/registry_client_example_test.go +++ b/apigeeregistry/apiv1/registry_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewRegistryClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewRegistryClient() { func ExampleRegistryClient_ListApis() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleRegistryClient_ListApis() { func ExampleRegistryClient_GetApi() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleRegistryClient_GetApi() { func ExampleRegistryClient_CreateApi() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleRegistryClient_CreateApi() { func ExampleRegistryClient_UpdateApi() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleRegistryClient_UpdateApi() { func ExampleRegistryClient_DeleteApi() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleRegistryClient_DeleteApi() { func ExampleRegistryClient_ListApiVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -171,6 +206,11 @@ func ExampleRegistryClient_ListApiVersions() { func ExampleRegistryClient_GetApiVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -191,6 +231,11 @@ func ExampleRegistryClient_GetApiVersion() { func ExampleRegistryClient_CreateApiVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -211,6 +256,11 @@ func ExampleRegistryClient_CreateApiVersion() { func ExampleRegistryClient_UpdateApiVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +281,11 @@ func ExampleRegistryClient_UpdateApiVersion() { func ExampleRegistryClient_DeleteApiVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +304,11 @@ func ExampleRegistryClient_DeleteApiVersion() { func ExampleRegistryClient_ListApiSpecs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +335,11 @@ func ExampleRegistryClient_ListApiSpecs() { func ExampleRegistryClient_GetApiSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -295,6 +360,11 @@ func ExampleRegistryClient_GetApiSpec() { func ExampleRegistryClient_GetApiSpecContents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -315,6 +385,11 @@ func ExampleRegistryClient_GetApiSpecContents() { func ExampleRegistryClient_CreateApiSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -335,6 +410,11 @@ func ExampleRegistryClient_CreateApiSpec() { func ExampleRegistryClient_UpdateApiSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -355,6 +435,11 @@ func ExampleRegistryClient_UpdateApiSpec() { func ExampleRegistryClient_DeleteApiSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -373,6 +458,11 @@ func ExampleRegistryClient_DeleteApiSpec() { func ExampleRegistryClient_TagApiSpecRevision() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -393,6 +483,11 @@ func ExampleRegistryClient_TagApiSpecRevision() { func ExampleRegistryClient_ListApiSpecRevisions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -419,6 +514,11 @@ func ExampleRegistryClient_ListApiSpecRevisions() { func ExampleRegistryClient_RollbackApiSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -439,6 +539,11 @@ func ExampleRegistryClient_RollbackApiSpec() { func ExampleRegistryClient_DeleteApiSpecRevision() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -459,6 +564,11 @@ func ExampleRegistryClient_DeleteApiSpecRevision() { func ExampleRegistryClient_ListApiDeployments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -485,6 +595,11 @@ func ExampleRegistryClient_ListApiDeployments() { func ExampleRegistryClient_GetApiDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -505,6 +620,11 @@ func ExampleRegistryClient_GetApiDeployment() { func ExampleRegistryClient_CreateApiDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -525,6 +645,11 @@ func ExampleRegistryClient_CreateApiDeployment() { func ExampleRegistryClient_UpdateApiDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -545,6 +670,11 @@ func ExampleRegistryClient_UpdateApiDeployment() { func ExampleRegistryClient_DeleteApiDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -563,6 +693,11 @@ func ExampleRegistryClient_DeleteApiDeployment() { func ExampleRegistryClient_TagApiDeploymentRevision() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -583,6 +718,11 @@ func ExampleRegistryClient_TagApiDeploymentRevision() { func ExampleRegistryClient_ListApiDeploymentRevisions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -609,6 +749,11 @@ func ExampleRegistryClient_ListApiDeploymentRevisions() { func ExampleRegistryClient_RollbackApiDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -629,6 +774,11 @@ func ExampleRegistryClient_RollbackApiDeployment() { func ExampleRegistryClient_DeleteApiDeploymentRevision() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -649,6 +799,11 @@ func ExampleRegistryClient_DeleteApiDeploymentRevision() { func ExampleRegistryClient_ListArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -675,6 +830,11 @@ func ExampleRegistryClient_ListArtifacts() { func ExampleRegistryClient_GetArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -695,6 +855,11 @@ func ExampleRegistryClient_GetArtifact() { func ExampleRegistryClient_GetArtifactContents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -715,6 +880,11 @@ func ExampleRegistryClient_GetArtifactContents() { func ExampleRegistryClient_CreateArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -735,6 +905,11 @@ func ExampleRegistryClient_CreateArtifact() { func ExampleRegistryClient_ReplaceArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -755,6 +930,11 @@ func ExampleRegistryClient_ReplaceArtifact() { func ExampleRegistryClient_DeleteArtifact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -773,6 +953,11 @@ func ExampleRegistryClient_DeleteArtifact() { func ExampleRegistryClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -793,6 +978,11 @@ func ExampleRegistryClient_GetLocation() { func ExampleRegistryClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -819,6 +1009,11 @@ func ExampleRegistryClient_ListLocations() { func ExampleRegistryClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -839,6 +1034,11 @@ func ExampleRegistryClient_GetIamPolicy() { func ExampleRegistryClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -859,6 +1059,11 @@ func ExampleRegistryClient_SetIamPolicy() { func ExampleRegistryClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -879,6 +1084,11 @@ func ExampleRegistryClient_TestIamPermissions() { func ExampleRegistryClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -897,6 +1107,11 @@ func ExampleRegistryClient_CancelOperation() { func ExampleRegistryClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -915,6 +1130,11 @@ func ExampleRegistryClient_DeleteOperation() { func ExampleRegistryClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -935,6 +1155,11 @@ func ExampleRegistryClient_GetOperation() { func ExampleRegistryClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/apigeeregistry/go.mod b/apigeeregistry/go.mod index 15d4867cf6b..53cd66d4bcb 100644 --- a/apigeeregistry/go.mod +++ b/apigeeregistry/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( cloud.google.com/go v0.103.0 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220902135211-223410557253 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/apigeeregistry/go.sum b/apigeeregistry/go.sum index 16eb13e91db..2a090c1b7be 100644 --- a/apigeeregistry/go.sum +++ b/apigeeregistry/go.sum @@ -317,8 +317,9 @@ golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -506,8 +507,8 @@ google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3 google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= google.golang.org/api v0.86.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -597,8 +598,6 @@ google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf h1:Q5xNKbTSFwkuaaGaR7CMcXEM5sy19KYdUU8iF8/iRC0= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/genproto v0.0.0-20220902135211-223410557253 h1:vXJMM8Shg7TGaYxZsQ++A/FOSlbDmDtWhS/o+3w/hj4= google.golang.org/genproto v0.0.0-20220902135211-223410557253/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= diff --git a/apikeys/apiv2/api_keys_client.go b/apikeys/apiv2/api_keys_client.go index 1e8f8de5149..3122ef6d7bd 100644 --- a/apikeys/apiv2/api_keys_client.go +++ b/apikeys/apiv2/api_keys_client.go @@ -133,7 +133,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -315,7 +316,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/apikeys/apiv2/api_keys_client_example_test.go b/apikeys/apiv2/api_keys_client_example_test.go index 1b3d78e9cfb..240c32554c7 100644 --- a/apikeys/apiv2/api_keys_client_example_test.go +++ b/apikeys/apiv2/api_keys_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_CreateKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_CreateKey() { func ExampleClient_ListKeys() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +105,11 @@ func ExampleClient_ListKeys() { func ExampleClient_GetKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleClient_GetKey() { func ExampleClient_GetKeyString() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleClient_GetKeyString() { func ExampleClient_UpdateKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleClient_UpdateKey() { func ExampleClient_DeleteKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleClient_DeleteKey() { func ExampleClient_UndeleteKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleClient_UndeleteKey() { func ExampleClient_LookupKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleClient_LookupKey() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/apikeys/apiv2/doc.go b/apikeys/apiv2/doc.go index 43c4879e5c5..7dccd3d485a 100644 --- a/apikeys/apiv2/doc.go +++ b/apikeys/apiv2/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apikeys.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apikeys.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/apikeys/go.mod b/apikeys/go.mod index 25e960995b9..db0f972b5e0 100644 --- a/apikeys/go.mod +++ b/apikeys/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.103.0 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.5.1 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220819153447-c7cd466b0e09 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/apikeys/go.sum b/apikeys/go.sum index df62d3ff3c0..464b2237082 100644 --- a/apikeys/go.sum +++ b/apikeys/go.sum @@ -317,8 +317,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -506,8 +508,8 @@ google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3 google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= google.golang.org/api v0.86.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/appengine/apiv1/applications_client.go b/appengine/apiv1/applications_client.go index d2f0cf587da..2bfe97673eb 100644 --- a/appengine/apiv1/applications_client.go +++ b/appengine/apiv1/applications_client.go @@ -114,7 +114,8 @@ func (c *ApplicationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ApplicationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -256,7 +257,8 @@ func NewApplicationsClient(ctx context.Context, opts ...option.ClientOption) (*A // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *applicationsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/appengine/apiv1/applications_client_example_test.go b/appengine/apiv1/applications_client_example_test.go index 3d4d8934fba..72c6a6f8567 100644 --- a/appengine/apiv1/applications_client_example_test.go +++ b/appengine/apiv1/applications_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewApplicationsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewApplicationsClient() { func ExampleApplicationsClient_GetApplication() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleApplicationsClient_GetApplication() { func ExampleApplicationsClient_CreateApplication() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. @@ -82,6 +97,11 @@ func ExampleApplicationsClient_CreateApplication() { func ExampleApplicationsClient_UpdateApplication() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleApplicationsClient_UpdateApplication() { func ExampleApplicationsClient_RepairApplication() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/appengine/apiv1/authorized_certificates_client.go b/appengine/apiv1/authorized_certificates_client.go index 52571d67521..dd92b612c9d 100644 --- a/appengine/apiv1/authorized_certificates_client.go +++ b/appengine/apiv1/authorized_certificates_client.go @@ -108,7 +108,8 @@ func (c *AuthorizedCertificatesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AuthorizedCertificatesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -203,7 +204,8 @@ func NewAuthorizedCertificatesClient(ctx context.Context, opts ...option.ClientO // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *authorizedCertificatesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/appengine/apiv1/authorized_certificates_client_example_test.go b/appengine/apiv1/authorized_certificates_client_example_test.go index b0dc32311d4..d669ecee918 100644 --- a/appengine/apiv1/authorized_certificates_client_example_test.go +++ b/appengine/apiv1/authorized_certificates_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAuthorizedCertificatesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAuthorizedCertificatesClient() { func ExampleAuthorizedCertificatesClient_ListAuthorizedCertificates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleAuthorizedCertificatesClient_ListAuthorizedCertificates() { func ExampleAuthorizedCertificatesClient_GetAuthorizedCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleAuthorizedCertificatesClient_GetAuthorizedCertificate() { func ExampleAuthorizedCertificatesClient_CreateAuthorizedCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleAuthorizedCertificatesClient_CreateAuthorizedCertificate() { func ExampleAuthorizedCertificatesClient_UpdateAuthorizedCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleAuthorizedCertificatesClient_UpdateAuthorizedCertificate() { func ExampleAuthorizedCertificatesClient_DeleteAuthorizedCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/appengine/apiv1/authorized_domains_client.go b/appengine/apiv1/authorized_domains_client.go index 3f0fd7c944f..3f900f7e340 100644 --- a/appengine/apiv1/authorized_domains_client.go +++ b/appengine/apiv1/authorized_domains_client.go @@ -97,7 +97,8 @@ func (c *AuthorizedDomainsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AuthorizedDomainsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -169,7 +170,8 @@ func NewAuthorizedDomainsClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *authorizedDomainsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/appengine/apiv1/authorized_domains_client_example_test.go b/appengine/apiv1/authorized_domains_client_example_test.go index 9e2a28626ae..79ece0c98eb 100644 --- a/appengine/apiv1/authorized_domains_client_example_test.go +++ b/appengine/apiv1/authorized_domains_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAuthorizedDomainsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedDomainsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAuthorizedDomainsClient() { func ExampleAuthorizedDomainsClient_ListAuthorizedDomains() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedDomainsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/appengine/apiv1/doc.go b/appengine/apiv1/doc.go index 4beb44c9c1e..823aa0917e4 100644 --- a/appengine/apiv1/doc.go +++ b/appengine/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := appengine.NewApplicationsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := appengine.NewApplicationsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/appengine/apiv1/domain_mappings_client.go b/appengine/apiv1/domain_mappings_client.go index 5f08927f386..6b7d377c457 100644 --- a/appengine/apiv1/domain_mappings_client.go +++ b/appengine/apiv1/domain_mappings_client.go @@ -119,7 +119,8 @@ func (c *DomainMappingsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DomainMappingsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -250,7 +251,8 @@ func NewDomainMappingsClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *domainMappingsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/appengine/apiv1/domain_mappings_client_example_test.go b/appengine/apiv1/domain_mappings_client_example_test.go index 00a08a1654d..3022a344c9f 100644 --- a/appengine/apiv1/domain_mappings_client_example_test.go +++ b/appengine/apiv1/domain_mappings_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewDomainMappingsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewDomainMappingsClient() { func ExampleDomainMappingsClient_ListDomainMappings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleDomainMappingsClient_ListDomainMappings() { func ExampleDomainMappingsClient_GetDomainMapping() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleDomainMappingsClient_GetDomainMapping() { func ExampleDomainMappingsClient_CreateDomainMapping() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleDomainMappingsClient_CreateDomainMapping() { func ExampleDomainMappingsClient_UpdateDomainMapping() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleDomainMappingsClient_UpdateDomainMapping() { func ExampleDomainMappingsClient_DeleteDomainMapping() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/appengine/apiv1/firewall_client.go b/appengine/apiv1/firewall_client.go index dfd7ca09782..a0513318306 100644 --- a/appengine/apiv1/firewall_client.go +++ b/appengine/apiv1/firewall_client.go @@ -119,7 +119,8 @@ func (c *FirewallClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FirewallClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -227,7 +228,8 @@ func NewFirewallClient(ctx context.Context, opts ...option.ClientOption) (*Firew // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *firewallGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/appengine/apiv1/firewall_client_example_test.go b/appengine/apiv1/firewall_client_example_test.go index 58124e49dee..6fdc07b78ea 100644 --- a/appengine/apiv1/firewall_client_example_test.go +++ b/appengine/apiv1/firewall_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewFirewallClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewFirewallClient() { func ExampleFirewallClient_ListIngressRules() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleFirewallClient_ListIngressRules() { func ExampleFirewallClient_BatchUpdateIngressRules() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleFirewallClient_BatchUpdateIngressRules() { func ExampleFirewallClient_CreateIngressRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleFirewallClient_CreateIngressRule() { func ExampleFirewallClient_GetIngressRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleFirewallClient_GetIngressRule() { func ExampleFirewallClient_UpdateIngressRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleFirewallClient_UpdateIngressRule() { func ExampleFirewallClient_DeleteIngressRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. diff --git a/appengine/apiv1/instances_client.go b/appengine/apiv1/instances_client.go index 834407f0604..79a4e708c04 100644 --- a/appengine/apiv1/instances_client.go +++ b/appengine/apiv1/instances_client.go @@ -115,7 +115,8 @@ func (c *InstancesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InstancesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -249,7 +250,8 @@ func NewInstancesClient(ctx context.Context, opts ...option.ClientOption) (*Inst // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *instancesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/appengine/apiv1/instances_client_example_test.go b/appengine/apiv1/instances_client_example_test.go index ba76af5c2eb..6a40e142774 100644 --- a/appengine/apiv1/instances_client_example_test.go +++ b/appengine/apiv1/instances_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewInstancesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewInstancesClient() { func ExampleInstancesClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleInstancesClient_ListInstances() { func ExampleInstancesClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleInstancesClient_GetInstance() { func ExampleInstancesClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleInstancesClient_DeleteInstance() { func ExampleInstancesClient_DebugInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/appengine/apiv1/services_client.go b/appengine/apiv1/services_client.go index 304e3cc278e..85f298e1fe6 100644 --- a/appengine/apiv1/services_client.go +++ b/appengine/apiv1/services_client.go @@ -115,7 +115,8 @@ func (c *ServicesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServicesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -228,7 +229,8 @@ func NewServicesClient(ctx context.Context, opts ...option.ClientOption) (*Servi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *servicesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/appengine/apiv1/services_client_example_test.go b/appengine/apiv1/services_client_example_test.go index 4c9d2f24321..c45f1c58f1f 100644 --- a/appengine/apiv1/services_client_example_test.go +++ b/appengine/apiv1/services_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewServicesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewServicesClient() { func ExampleServicesClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleServicesClient_ListServices() { func ExampleServicesClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleServicesClient_GetService() { func ExampleServicesClient_UpdateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleServicesClient_UpdateService() { func ExampleServicesClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/appengine/apiv1/versions_client.go b/appengine/apiv1/versions_client.go index 2d5a2b0d344..34aee811a04 100644 --- a/appengine/apiv1/versions_client.go +++ b/appengine/apiv1/versions_client.go @@ -119,7 +119,8 @@ func (c *VersionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VersionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -289,7 +290,8 @@ func NewVersionsClient(ctx context.Context, opts ...option.ClientOption) (*Versi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *versionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/appengine/apiv1/versions_client_example_test.go b/appengine/apiv1/versions_client_example_test.go index 217a92613e6..e5bb80ebcf7 100644 --- a/appengine/apiv1/versions_client_example_test.go +++ b/appengine/apiv1/versions_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewVersionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewVersionsClient() { func ExampleVersionsClient_ListVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleVersionsClient_ListVersions() { func ExampleVersionsClient_GetVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleVersionsClient_GetVersion() { func ExampleVersionsClient_CreateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleVersionsClient_CreateVersion() { func ExampleVersionsClient_UpdateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleVersionsClient_UpdateVersion() { func ExampleVersionsClient_DeleteVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/appengine/go.mod b/appengine/go.mod index cae0202cdd5..efa2dda934b 100644 --- a/appengine/go.mod +++ b/appengine/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/appengine/go.sum b/appengine/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/appengine/go.sum +++ b/appengine/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/area120/go.mod b/area120/go.mod index 2d10fd026a8..63699494892 100644 --- a/area120/go.mod +++ b/area120/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -17,9 +17,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/area120/go.sum b/area120/go.sum index 543863e1315..b56eeb96012 100644 --- a/area120/go.sum +++ b/area120/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/area120/tables/apiv1alpha1/doc.go b/area120/tables/apiv1alpha1/doc.go index a482653e1d5..e98535f84ec 100644 --- a/area120/tables/apiv1alpha1/doc.go +++ b/area120/tables/apiv1alpha1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := tables.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := tables.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/area120/tables/apiv1alpha1/tables_client.go b/area120/tables/apiv1alpha1/tables_client.go index 3cf787ba83e..28ebe78d819 100644 --- a/area120/tables/apiv1alpha1/tables_client.go +++ b/area120/tables/apiv1alpha1/tables_client.go @@ -163,7 +163,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -299,7 +300,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -394,7 +396,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1294,8 +1296,12 @@ func (c *restClient) UpdateRow(ctx context.Context, req *tablespb.UpdateRowReque baseUrl.Path += fmt.Sprintf("/v1alpha1/%v", req.GetRow().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } if req.GetView() != 0 { params.Add("view", fmt.Sprintf("%v", req.GetView())) diff --git a/area120/tables/apiv1alpha1/tables_client_example_test.go b/area120/tables/apiv1alpha1/tables_client_example_test.go index b81b87eb8d2..4acd69c4bf6 100644 --- a/area120/tables/apiv1alpha1/tables_client_example_test.go +++ b/area120/tables/apiv1alpha1/tables_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_GetTable() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleClient_GetTable() { func ExampleClient_ListTables() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleClient_ListTables() { func ExampleClient_GetWorkspace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleClient_GetWorkspace() { func ExampleClient_ListWorkspaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_ListWorkspaces() { func ExampleClient_GetRow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_GetRow() { func ExampleClient_ListRows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleClient_ListRows() { func ExampleClient_CreateRow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleClient_CreateRow() { func ExampleClient_BatchCreateRows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleClient_BatchCreateRows() { func ExampleClient_UpdateRow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +303,11 @@ func ExampleClient_UpdateRow() { func ExampleClient_BatchUpdateRows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +328,11 @@ func ExampleClient_BatchUpdateRows() { func ExampleClient_DeleteRow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +351,11 @@ func ExampleClient_DeleteRow() { func ExampleClient_BatchDeleteRows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/artifactregistry/apiv1/artifact_registry_client.go b/artifactregistry/apiv1/artifact_registry_client.go index a2c10589f98..108d79ef296 100644 --- a/artifactregistry/apiv1/artifact_registry_client.go +++ b/artifactregistry/apiv1/artifact_registry_client.go @@ -205,7 +205,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -484,7 +485,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/artifactregistry/apiv1/artifact_registry_client_example_test.go b/artifactregistry/apiv1/artifact_registry_client_example_test.go index 51b37f0bfc4..87245887e43 100644 --- a/artifactregistry/apiv1/artifact_registry_client_example_test.go +++ b/artifactregistry/apiv1/artifact_registry_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_ListDockerImages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_ListDockerImages() { func ExampleClient_GetDockerImage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleClient_GetDockerImage() { func ExampleClient_ImportAptArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleClient_ImportAptArtifacts() { func ExampleClient_ImportYumArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleClient_ImportYumArtifacts() { func ExampleClient_ListRepositories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -161,6 +191,11 @@ func ExampleClient_ListRepositories() { func ExampleClient_GetRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +216,11 @@ func ExampleClient_GetRepository() { func ExampleClient_CreateRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +246,11 @@ func ExampleClient_CreateRepository() { func ExampleClient_UpdateRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +271,11 @@ func ExampleClient_UpdateRepository() { func ExampleClient_DeleteRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +299,11 @@ func ExampleClient_DeleteRepository() { func ExampleClient_ListPackages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +330,11 @@ func ExampleClient_ListPackages() { func ExampleClient_GetPackage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -295,6 +355,11 @@ func ExampleClient_GetPackage() { func ExampleClient_DeletePackage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +383,11 @@ func ExampleClient_DeletePackage() { func ExampleClient_ListVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -344,6 +414,11 @@ func ExampleClient_ListVersions() { func ExampleClient_GetVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -364,6 +439,11 @@ func ExampleClient_GetVersion() { func ExampleClient_DeleteVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -387,6 +467,11 @@ func ExampleClient_DeleteVersion() { func ExampleClient_ListFiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -413,6 +498,11 @@ func ExampleClient_ListFiles() { func ExampleClient_GetFile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -433,6 +523,11 @@ func ExampleClient_GetFile() { func ExampleClient_ListTags() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -459,6 +554,11 @@ func ExampleClient_ListTags() { func ExampleClient_GetTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -479,6 +579,11 @@ func ExampleClient_GetTag() { func ExampleClient_CreateTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -499,6 +604,11 @@ func ExampleClient_CreateTag() { func ExampleClient_UpdateTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -519,6 +629,11 @@ func ExampleClient_UpdateTag() { func ExampleClient_DeleteTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -537,6 +652,11 @@ func ExampleClient_DeleteTag() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -557,6 +677,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -577,6 +702,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -597,6 +727,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_GetProjectSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -617,6 +752,11 @@ func ExampleClient_GetProjectSettings() { func ExampleClient_UpdateProjectSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/artifactregistry/apiv1/doc.go b/artifactregistry/apiv1/doc.go index a5d39265bee..f65adaf4089 100644 --- a/artifactregistry/apiv1/doc.go +++ b/artifactregistry/apiv1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := artifactregistry.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := artifactregistry.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/artifactregistry/apiv1beta2/artifact_registry_client.go b/artifactregistry/apiv1beta2/artifact_registry_client.go index 5495c7609d3..5246e93e845 100644 --- a/artifactregistry/apiv1beta2/artifact_registry_client.go +++ b/artifactregistry/apiv1beta2/artifact_registry_client.go @@ -350,7 +350,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -619,7 +620,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/artifactregistry/apiv1beta2/artifact_registry_client_example_test.go b/artifactregistry/apiv1beta2/artifact_registry_client_example_test.go index eb78ea6d39a..800a90d42d9 100644 --- a/artifactregistry/apiv1beta2/artifact_registry_client_example_test.go +++ b/artifactregistry/apiv1beta2/artifact_registry_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_ImportAptArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ImportAptArtifacts() { func ExampleClient_ImportYumArtifacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +104,11 @@ func ExampleClient_ImportYumArtifacts() { func ExampleClient_ListRepositories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -115,6 +135,11 @@ func ExampleClient_ListRepositories() { func ExampleClient_GetRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleClient_GetRepository() { func ExampleClient_CreateRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleClient_CreateRepository() { func ExampleClient_UpdateRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleClient_UpdateRepository() { func ExampleClient_DeleteRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleClient_DeleteRepository() { func ExampleClient_ListPackages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -229,6 +274,11 @@ func ExampleClient_ListPackages() { func ExampleClient_GetPackage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +299,11 @@ func ExampleClient_GetPackage() { func ExampleClient_DeletePackage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -272,6 +327,11 @@ func ExampleClient_DeletePackage() { func ExampleClient_ListVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -298,6 +358,11 @@ func ExampleClient_ListVersions() { func ExampleClient_GetVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +383,11 @@ func ExampleClient_GetVersion() { func ExampleClient_DeleteVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +411,11 @@ func ExampleClient_DeleteVersion() { func ExampleClient_ListFiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -367,6 +442,11 @@ func ExampleClient_ListFiles() { func ExampleClient_GetFile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -387,6 +467,11 @@ func ExampleClient_GetFile() { func ExampleClient_ListTags() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -413,6 +498,11 @@ func ExampleClient_ListTags() { func ExampleClient_GetTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -433,6 +523,11 @@ func ExampleClient_GetTag() { func ExampleClient_CreateTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -453,6 +548,11 @@ func ExampleClient_CreateTag() { func ExampleClient_UpdateTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -473,6 +573,11 @@ func ExampleClient_UpdateTag() { func ExampleClient_DeleteTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -491,6 +596,11 @@ func ExampleClient_DeleteTag() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -511,6 +621,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -531,6 +646,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -551,6 +671,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_GetProjectSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -571,6 +696,11 @@ func ExampleClient_GetProjectSettings() { func ExampleClient_UpdateProjectSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/artifactregistry/apiv1beta2/doc.go b/artifactregistry/apiv1beta2/doc.go index a83702e9b21..b5729fc193f 100644 --- a/artifactregistry/apiv1beta2/doc.go +++ b/artifactregistry/apiv1beta2/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := artifactregistry.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := artifactregistry.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/artifactregistry/go.mod b/artifactregistry/go.mod index 61aa612553c..f10773764b6 100644 --- a/artifactregistry/go.mod +++ b/artifactregistry/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/artifactregistry/go.sum b/artifactregistry/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/artifactregistry/go.sum +++ b/artifactregistry/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/asset/apiv1/asset_client.go b/asset/apiv1/asset_client.go index 46800dba0f1..37655e5c87d 100644 --- a/asset/apiv1/asset_client.go +++ b/asset/apiv1/asset_client.go @@ -272,7 +272,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -524,7 +525,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/asset/apiv1/asset_client_example_test.go b/asset/apiv1/asset_client_example_test.go index a607e5d6ba5..5bb62ae4a0c 100644 --- a/asset/apiv1/asset_client_example_test.go +++ b/asset/apiv1/asset_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_ExportAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ExportAssets() { func ExampleClient_ListAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +105,11 @@ func ExampleClient_ListAssets() { func ExampleClient_BatchGetAssetsHistory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleClient_BatchGetAssetsHistory() { func ExampleClient_CreateFeed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleClient_CreateFeed() { func ExampleClient_GetFeed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleClient_GetFeed() { func ExampleClient_ListFeeds() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleClient_ListFeeds() { func ExampleClient_UpdateFeed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleClient_UpdateFeed() { func ExampleClient_DeleteFeed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleClient_DeleteFeed() { func ExampleClient_SearchAllResources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +284,11 @@ func ExampleClient_SearchAllResources() { func ExampleClient_SearchAllIamPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -260,6 +315,11 @@ func ExampleClient_SearchAllIamPolicies() { func ExampleClient_AnalyzeIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +340,11 @@ func ExampleClient_AnalyzeIamPolicy() { func ExampleClient_AnalyzeIamPolicyLongrunning() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -305,6 +370,11 @@ func ExampleClient_AnalyzeIamPolicyLongrunning() { func ExampleClient_AnalyzeMove() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -325,6 +395,11 @@ func ExampleClient_AnalyzeMove() { func ExampleClient_QueryAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -345,6 +420,11 @@ func ExampleClient_QueryAssets() { func ExampleClient_CreateSavedQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -365,6 +445,11 @@ func ExampleClient_CreateSavedQuery() { func ExampleClient_GetSavedQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -385,6 +470,11 @@ func ExampleClient_GetSavedQuery() { func ExampleClient_ListSavedQueries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -411,6 +501,11 @@ func ExampleClient_ListSavedQueries() { func ExampleClient_UpdateSavedQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -431,6 +526,11 @@ func ExampleClient_UpdateSavedQuery() { func ExampleClient_DeleteSavedQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -449,6 +549,11 @@ func ExampleClient_DeleteSavedQuery() { func ExampleClient_BatchGetEffectiveIamPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -469,6 +574,11 @@ func ExampleClient_BatchGetEffectiveIamPolicies() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/asset/apiv1/doc.go b/asset/apiv1/doc.go index 811f3faa7a0..599f176b186 100644 --- a/asset/apiv1/doc.go +++ b/asset/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := asset.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := asset.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/asset/apiv1p2beta1/asset_client.go b/asset/apiv1p2beta1/asset_client.go index 0f7367dd06f..46c017cdfd7 100644 --- a/asset/apiv1p2beta1/asset_client.go +++ b/asset/apiv1p2beta1/asset_client.go @@ -186,7 +186,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -277,7 +278,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -361,7 +363,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } diff --git a/asset/apiv1p2beta1/asset_client_example_test.go b/asset/apiv1p2beta1/asset_client_example_test.go index 01bb2f7dad8..115295176be 100644 --- a/asset/apiv1p2beta1/asset_client_example_test.go +++ b/asset/apiv1p2beta1/asset_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewRESTClient() { func ExampleClient_CreateFeed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleClient_CreateFeed() { func ExampleClient_GetFeed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +109,11 @@ func ExampleClient_GetFeed() { func ExampleClient_ListFeeds() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +134,11 @@ func ExampleClient_ListFeeds() { func ExampleClient_UpdateFeed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +159,11 @@ func ExampleClient_UpdateFeed() { func ExampleClient_DeleteFeed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/asset/apiv1p2beta1/assetpb/asset_service.pb.go b/asset/apiv1p2beta1/assetpb/asset_service.pb.go index 8d3ecc4e05f..0cd051d3c92 100644 --- a/asset/apiv1p2beta1/assetpb/asset_service.pb.go +++ b/asset/apiv1p2beta1/assetpb/asset_service.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/asset/v1p2beta1/asset_service.proto package assetpb @@ -26,14 +26,14 @@ import ( reflect "reflect" sync "sync" + empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org/genproto/googleapis/api/annotations" + field_mask "google.golang.org/genproto/protobuf/field_mask" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" ) const ( @@ -338,7 +338,7 @@ type UpdateFeedRequest struct { // Required. Only updates the `feed` fields indicated by this mask. // The field mask must not be empty, and it must not contain fields that // are immutable or only set by the server. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } func (x *UpdateFeedRequest) Reset() { @@ -380,7 +380,7 @@ func (x *UpdateFeedRequest) GetFeed() *Feed { return nil } -func (x *UpdateFeedRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdateFeedRequest) GetUpdateMask() *field_mask.FieldMask { if x != nil { return x.UpdateMask } @@ -1008,20 +1008,20 @@ func file_google_cloud_asset_v1p2beta1_asset_service_proto_rawDescGZIP() []byte var file_google_cloud_asset_v1p2beta1_asset_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_asset_v1p2beta1_asset_service_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_google_cloud_asset_v1p2beta1_asset_service_proto_goTypes = []interface{}{ - (ContentType)(0), // 0: google.cloud.asset.v1p2beta1.ContentType - (*CreateFeedRequest)(nil), // 1: google.cloud.asset.v1p2beta1.CreateFeedRequest - (*GetFeedRequest)(nil), // 2: google.cloud.asset.v1p2beta1.GetFeedRequest - (*ListFeedsRequest)(nil), // 3: google.cloud.asset.v1p2beta1.ListFeedsRequest - (*ListFeedsResponse)(nil), // 4: google.cloud.asset.v1p2beta1.ListFeedsResponse - (*UpdateFeedRequest)(nil), // 5: google.cloud.asset.v1p2beta1.UpdateFeedRequest - (*DeleteFeedRequest)(nil), // 6: google.cloud.asset.v1p2beta1.DeleteFeedRequest - (*OutputConfig)(nil), // 7: google.cloud.asset.v1p2beta1.OutputConfig - (*GcsDestination)(nil), // 8: google.cloud.asset.v1p2beta1.GcsDestination - (*PubsubDestination)(nil), // 9: google.cloud.asset.v1p2beta1.PubsubDestination - (*FeedOutputConfig)(nil), // 10: google.cloud.asset.v1p2beta1.FeedOutputConfig - (*Feed)(nil), // 11: google.cloud.asset.v1p2beta1.Feed - (*fieldmaskpb.FieldMask)(nil), // 12: google.protobuf.FieldMask - (*emptypb.Empty)(nil), // 13: google.protobuf.Empty + (ContentType)(0), // 0: google.cloud.asset.v1p2beta1.ContentType + (*CreateFeedRequest)(nil), // 1: google.cloud.asset.v1p2beta1.CreateFeedRequest + (*GetFeedRequest)(nil), // 2: google.cloud.asset.v1p2beta1.GetFeedRequest + (*ListFeedsRequest)(nil), // 3: google.cloud.asset.v1p2beta1.ListFeedsRequest + (*ListFeedsResponse)(nil), // 4: google.cloud.asset.v1p2beta1.ListFeedsResponse + (*UpdateFeedRequest)(nil), // 5: google.cloud.asset.v1p2beta1.UpdateFeedRequest + (*DeleteFeedRequest)(nil), // 6: google.cloud.asset.v1p2beta1.DeleteFeedRequest + (*OutputConfig)(nil), // 7: google.cloud.asset.v1p2beta1.OutputConfig + (*GcsDestination)(nil), // 8: google.cloud.asset.v1p2beta1.GcsDestination + (*PubsubDestination)(nil), // 9: google.cloud.asset.v1p2beta1.PubsubDestination + (*FeedOutputConfig)(nil), // 10: google.cloud.asset.v1p2beta1.FeedOutputConfig + (*Feed)(nil), // 11: google.cloud.asset.v1p2beta1.Feed + (*field_mask.FieldMask)(nil), // 12: google.protobuf.FieldMask + (*empty.Empty)(nil), // 13: google.protobuf.Empty } var file_google_cloud_asset_v1p2beta1_asset_service_proto_depIdxs = []int32{ 11, // 0: google.cloud.asset.v1p2beta1.CreateFeedRequest.feed:type_name -> google.cloud.asset.v1p2beta1.Feed @@ -1241,7 +1241,7 @@ type AssetServiceClient interface { // Updates an asset feed configuration. UpdateFeed(ctx context.Context, in *UpdateFeedRequest, opts ...grpc.CallOption) (*Feed, error) // Deletes an asset feed. - DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*empty.Empty, error) } type assetServiceClient struct { @@ -1288,8 +1288,8 @@ func (c *assetServiceClient) UpdateFeed(ctx context.Context, in *UpdateFeedReque return out, nil } -func (c *assetServiceClient) DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *assetServiceClient) DeleteFeed(ctx context.Context, in *DeleteFeedRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/google.cloud.asset.v1p2beta1.AssetService/DeleteFeed", in, out, opts...) if err != nil { return nil, err @@ -1309,7 +1309,7 @@ type AssetServiceServer interface { // Updates an asset feed configuration. UpdateFeed(context.Context, *UpdateFeedRequest) (*Feed, error) // Deletes an asset feed. - DeleteFeed(context.Context, *DeleteFeedRequest) (*emptypb.Empty, error) + DeleteFeed(context.Context, *DeleteFeedRequest) (*empty.Empty, error) } // UnimplementedAssetServiceServer can be embedded to have forward compatible implementations. @@ -1328,7 +1328,7 @@ func (*UnimplementedAssetServiceServer) ListFeeds(context.Context, *ListFeedsReq func (*UnimplementedAssetServiceServer) UpdateFeed(context.Context, *UpdateFeedRequest) (*Feed, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateFeed not implemented") } -func (*UnimplementedAssetServiceServer) DeleteFeed(context.Context, *DeleteFeedRequest) (*emptypb.Empty, error) { +func (*UnimplementedAssetServiceServer) DeleteFeed(context.Context, *DeleteFeedRequest) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteFeed not implemented") } diff --git a/asset/apiv1p2beta1/assetpb/assets.pb.go b/asset/apiv1p2beta1/assetpb/assets.pb.go index cb588248e7b..c7f65624100 100644 --- a/asset/apiv1p2beta1/assetpb/assets.pb.go +++ b/asset/apiv1p2beta1/assetpb/assets.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/asset/v1p2beta1/assets.proto package assetpb @@ -25,11 +25,11 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" v1 "google.golang.org/genproto/googleapis/iam/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -114,10 +114,10 @@ type TimeWindow struct { unknownFields protoimpl.UnknownFields // Start time of the time window (exclusive). - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End time of the time window (inclusive). // Current timestamp if not specified. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } func (x *TimeWindow) Reset() { @@ -152,14 +152,14 @@ func (*TimeWindow) Descriptor() ([]byte, []int) { return file_google_cloud_asset_v1p2beta1_assets_proto_rawDescGZIP(), []int{1} } -func (x *TimeWindow) GetStartTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetStartTime() *timestamp.Timestamp { if x != nil { return x.StartTime } return nil } -func (x *TimeWindow) GetEndTime() *timestamppb.Timestamp { +func (x *TimeWindow) GetEndTime() *timestamp.Timestamp { if x != nil { return x.EndTime } @@ -300,7 +300,7 @@ type Resource struct { Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` // The content of the resource, in which some sensitive fields are scrubbed // away and may not be present. - Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` + Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` } func (x *Resource) Reset() { @@ -370,7 +370,7 @@ func (x *Resource) GetParent() string { return "" } -func (x *Resource) GetData() *structpb.Struct { +func (x *Resource) GetData() *_struct.Struct { if x != nil { return x.Data } @@ -465,13 +465,13 @@ func file_google_cloud_asset_v1p2beta1_assets_proto_rawDescGZIP() []byte { var file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_google_cloud_asset_v1p2beta1_assets_proto_goTypes = []interface{}{ - (*TemporalAsset)(nil), // 0: google.cloud.asset.v1p2beta1.TemporalAsset - (*TimeWindow)(nil), // 1: google.cloud.asset.v1p2beta1.TimeWindow - (*Asset)(nil), // 2: google.cloud.asset.v1p2beta1.Asset - (*Resource)(nil), // 3: google.cloud.asset.v1p2beta1.Resource - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp - (*v1.Policy)(nil), // 5: google.iam.v1.Policy - (*structpb.Struct)(nil), // 6: google.protobuf.Struct + (*TemporalAsset)(nil), // 0: google.cloud.asset.v1p2beta1.TemporalAsset + (*TimeWindow)(nil), // 1: google.cloud.asset.v1p2beta1.TimeWindow + (*Asset)(nil), // 2: google.cloud.asset.v1p2beta1.Asset + (*Resource)(nil), // 3: google.cloud.asset.v1p2beta1.Resource + (*timestamp.Timestamp)(nil), // 4: google.protobuf.Timestamp + (*v1.Policy)(nil), // 5: google.iam.v1.Policy + (*_struct.Struct)(nil), // 6: google.protobuf.Struct } var file_google_cloud_asset_v1p2beta1_assets_proto_depIdxs = []int32{ 1, // 0: google.cloud.asset.v1p2beta1.TemporalAsset.window:type_name -> google.cloud.asset.v1p2beta1.TimeWindow diff --git a/asset/apiv1p2beta1/doc.go b/asset/apiv1p2beta1/doc.go index 207e719d0b8..9f9e3a82911 100644 --- a/asset/apiv1p2beta1/doc.go +++ b/asset/apiv1p2beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := asset.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := asset.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/asset/apiv1p5beta1/asset_client.go b/asset/apiv1p5beta1/asset_client.go index b055753c693..08d65d0c679 100644 --- a/asset/apiv1p5beta1/asset_client.go +++ b/asset/apiv1p5beta1/asset_client.go @@ -129,7 +129,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -200,7 +201,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -284,7 +286,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -368,11 +370,12 @@ func (c *restClient) ListAssets(ctx context.Context, req *assetpb.ListAssetsRequ if req.GetPageToken() != "" { params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) } - if req.GetReadTime().GetNanos() != 0 { - params.Add("readTime.nanos", fmt.Sprintf("%v", req.GetReadTime().GetNanos())) - } - if req.GetReadTime().GetSeconds() != 0 { - params.Add("readTime.seconds", fmt.Sprintf("%v", req.GetReadTime().GetSeconds())) + if req.GetReadTime() != nil { + readTime, err := protojson.Marshal(req.GetReadTime()) + if err != nil { + return nil, "", err + } + params.Add("readTime", string(readTime)) } baseUrl.RawQuery = params.Encode() diff --git a/asset/apiv1p5beta1/asset_client_example_test.go b/asset/apiv1p5beta1/asset_client_example_test.go index 4293fe16425..19338047bdb 100644 --- a/asset/apiv1p5beta1/asset_client_example_test.go +++ b/asset/apiv1p5beta1/asset_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/asset/apiv1p5beta1/assetpb/asset_service.pb.go b/asset/apiv1p5beta1/assetpb/asset_service.pb.go index ce7d0f5940d..b200ca93959 100644 --- a/asset/apiv1p5beta1/assetpb/asset_service.pb.go +++ b/asset/apiv1p5beta1/assetpb/asset_service.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/asset/v1p5beta1/asset_service.proto package assetpb @@ -25,13 +25,13 @@ import ( reflect "reflect" sync "sync" + timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -118,7 +118,7 @@ type ListAssetsRequest struct { // the current time will be used. Due to delays in resource data collection // and indexing, there is a volatile window during which running the same // query may get different results. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // A list of asset types of which to take a snapshot for. For example: // "compute.googleapis.com/Disk". If specified, only matching assets will be // returned. See [Introduction to Cloud Asset @@ -176,7 +176,7 @@ func (x *ListAssetsRequest) GetParent() string { return "" } -func (x *ListAssetsRequest) GetReadTime() *timestamppb.Timestamp { +func (x *ListAssetsRequest) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -218,7 +218,7 @@ type ListAssetsResponse struct { unknownFields protoimpl.UnknownFields // Time the snapshot was taken. - ReadTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` + ReadTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // Assets. Assets []*Asset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"` // Token to retrieve the next page of results. Set to empty if there are no @@ -258,7 +258,7 @@ func (*ListAssetsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_asset_v1p5beta1_asset_service_proto_rawDescGZIP(), []int{1} } -func (x *ListAssetsResponse) GetReadTime() *timestamppb.Timestamp { +func (x *ListAssetsResponse) GetReadTime() *timestamp.Timestamp { if x != nil { return x.ReadTime } @@ -378,11 +378,11 @@ func file_google_cloud_asset_v1p5beta1_asset_service_proto_rawDescGZIP() []byte var file_google_cloud_asset_v1p5beta1_asset_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_cloud_asset_v1p5beta1_asset_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_google_cloud_asset_v1p5beta1_asset_service_proto_goTypes = []interface{}{ - (ContentType)(0), // 0: google.cloud.asset.v1p5beta1.ContentType - (*ListAssetsRequest)(nil), // 1: google.cloud.asset.v1p5beta1.ListAssetsRequest - (*ListAssetsResponse)(nil), // 2: google.cloud.asset.v1p5beta1.ListAssetsResponse - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp - (*Asset)(nil), // 4: google.cloud.asset.v1p5beta1.Asset + (ContentType)(0), // 0: google.cloud.asset.v1p5beta1.ContentType + (*ListAssetsRequest)(nil), // 1: google.cloud.asset.v1p5beta1.ListAssetsRequest + (*ListAssetsResponse)(nil), // 2: google.cloud.asset.v1p5beta1.ListAssetsResponse + (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*Asset)(nil), // 4: google.cloud.asset.v1p5beta1.Asset } var file_google_cloud_asset_v1p5beta1_asset_service_proto_depIdxs = []int32{ 3, // 0: google.cloud.asset.v1p5beta1.ListAssetsRequest.read_time:type_name -> google.protobuf.Timestamp diff --git a/asset/apiv1p5beta1/assetpb/assets.pb.go b/asset/apiv1p5beta1/assetpb/assets.pb.go index f53e69d8e14..38b274724de 100644 --- a/asset/apiv1p5beta1/assetpb/assets.pb.go +++ b/asset/apiv1p5beta1/assetpb/assets.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.5 +// protoc v3.12.2 // source: google/cloud/asset/v1p5beta1/assets.proto package assetpb @@ -24,13 +24,13 @@ import ( reflect "reflect" sync "sync" + _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" v11 "google.golang.org/genproto/googleapis/cloud/orgpolicy/v1" v1 "google.golang.org/genproto/googleapis/iam/v1" v12 "google.golang.org/genproto/googleapis/identity/accesscontextmanager/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" ) const ( @@ -243,7 +243,7 @@ type Resource struct { Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` // The content of the resource, in which some sensitive fields are scrubbed // away and may not be present. - Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` + Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` } func (x *Resource) Reset() { @@ -313,7 +313,7 @@ func (x *Resource) GetParent() string { return "" } -func (x *Resource) GetData() *structpb.Struct { +func (x *Resource) GetData() *_struct.Struct { if x != nil { return x.Data } @@ -437,7 +437,7 @@ var file_google_cloud_asset_v1p5beta1_assets_proto_goTypes = []interface{}{ (*v12.AccessPolicy)(nil), // 4: google.identity.accesscontextmanager.v1.AccessPolicy (*v12.AccessLevel)(nil), // 5: google.identity.accesscontextmanager.v1.AccessLevel (*v12.ServicePerimeter)(nil), // 6: google.identity.accesscontextmanager.v1.ServicePerimeter - (*structpb.Struct)(nil), // 7: google.protobuf.Struct + (*_struct.Struct)(nil), // 7: google.protobuf.Struct } var file_google_cloud_asset_v1p5beta1_assets_proto_depIdxs = []int32{ 1, // 0: google.cloud.asset.v1p5beta1.Asset.resource:type_name -> google.cloud.asset.v1p5beta1.Resource diff --git a/asset/apiv1p5beta1/doc.go b/asset/apiv1p5beta1/doc.go index 5eb0a9018cb..22684796e80 100644 --- a/asset/apiv1p5beta1/doc.go +++ b/asset/apiv1p5beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := asset.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := asset.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/asset/go.mod b/asset/go.mod index c6c64b94b41..ca6ba30a2e6 100644 --- a/asset/go.mod +++ b/asset/go.mod @@ -4,8 +4,9 @@ go 1.17 require ( cloud.google.com/go v0.102.1 + github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220908141613-51c1cc9bc6d0 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -14,12 +15,11 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/asset/go.sum b/asset/go.sum index 75e2f800549..9197a83fecf 100644 --- a/asset/go.sum +++ b/asset/go.sum @@ -30,6 +30,7 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -313,8 +314,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +502,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -589,10 +593,7 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 h1:hw4Y42zL1VyVKxPgRHHh191fpVBGV8sNVmcow5Z8VXY= google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220902135211-223410557253 h1:vXJMM8Shg7TGaYxZsQ++A/FOSlbDmDtWhS/o+3w/hj4= -google.golang.org/genproto v0.0.0-20220902135211-223410557253/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/genproto v0.0.0-20220908141613-51c1cc9bc6d0 h1:bMz0aY2wd9TwUp9M7QfjBWuQqaFD/ZaTtvDpPDCo2Ow= google.golang.org/genproto v0.0.0-20220908141613-51c1cc9bc6d0/go.mod h1:rQWNQYp1kbHR3+n5cARSTCF5rlJOttUn8yIhRklGAWQ= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= diff --git a/assuredworkloads/apiv1/assured_workloads_client.go b/assuredworkloads/apiv1/assured_workloads_client.go index 1ab476c5d9f..3d894833192 100644 --- a/assuredworkloads/apiv1/assured_workloads_client.go +++ b/assuredworkloads/apiv1/assured_workloads_client.go @@ -117,7 +117,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -234,7 +235,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/assuredworkloads/apiv1/assured_workloads_client_example_test.go b/assuredworkloads/apiv1/assured_workloads_client_example_test.go index acc14a42a75..6a4ede2194f 100644 --- a/assuredworkloads/apiv1/assured_workloads_client_example_test.go +++ b/assuredworkloads/apiv1/assured_workloads_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateWorkload() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleClient_CreateWorkload() { func ExampleClient_UpdateWorkload() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleClient_UpdateWorkload() { func ExampleClient_DeleteWorkload() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleClient_DeleteWorkload() { func ExampleClient_GetWorkload() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -121,6 +146,11 @@ func ExampleClient_GetWorkload() { func ExampleClient_ListWorkloads() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/assuredworkloads/apiv1/doc.go b/assuredworkloads/apiv1/doc.go index dcd8e14d33b..56331c88e27 100644 --- a/assuredworkloads/apiv1/doc.go +++ b/assuredworkloads/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := assuredworkloads.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := assuredworkloads.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/assuredworkloads/apiv1beta1/assured_workloads_client.go b/assuredworkloads/apiv1beta1/assured_workloads_client.go index 01fa59b234d..be763117b6e 100644 --- a/assuredworkloads/apiv1beta1/assured_workloads_client.go +++ b/assuredworkloads/apiv1beta1/assured_workloads_client.go @@ -264,7 +264,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -313,8 +314,8 @@ func (c *Client) GetWorkload(ctx context.Context, req *assuredworkloadspb.GetWor return c.internalClient.GetWorkload(ctx, req, opts...) } -// AnalyzeWorkloadMove a request to analyze a hypothetical move of a source project or -// project-based workload to a target (destination) folder-based workload. +// AnalyzeWorkloadMove analyze if the source Assured Workloads can be moved to the target Assured +// Workload func (c *Client) AnalyzeWorkloadMove(ctx context.Context, req *assuredworkloadspb.AnalyzeWorkloadMoveRequest, opts ...gax.CallOption) (*assuredworkloadspb.AnalyzeWorkloadMoveResponse, error) { return c.internalClient.AnalyzeWorkloadMove(ctx, req, opts...) } @@ -413,7 +414,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -512,7 +514,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -828,30 +830,40 @@ func (c *restClient) UpdateWorkload(ctx context.Context, req *assuredworkloadspb baseUrl.Path += fmt.Sprintf("") params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } if req.GetWorkload().GetBillingAccount() != "" { params.Add("workload.billingAccount", fmt.Sprintf("%v", req.GetWorkload().GetBillingAccount())) } - if req.GetWorkload().GetCjisSettings().GetKmsSettings().GetNextRotationTime().GetNanos() != 0 { - params.Add("workload.cjisSettings.kmsSettings.nextRotationTime.nanos", fmt.Sprintf("%v", req.GetWorkload().GetCjisSettings().GetKmsSettings().GetNextRotationTime().GetNanos())) - } - if req.GetWorkload().GetCjisSettings().GetKmsSettings().GetNextRotationTime().GetSeconds() != 0 { - params.Add("workload.cjisSettings.kmsSettings.nextRotationTime.seconds", fmt.Sprintf("%v", req.GetWorkload().GetCjisSettings().GetKmsSettings().GetNextRotationTime().GetSeconds())) - } - if req.GetWorkload().GetCjisSettings().GetKmsSettings().GetRotationPeriod().GetNanos() != 0 { - params.Add("workload.cjisSettings.kmsSettings.rotationPeriod.nanos", fmt.Sprintf("%v", req.GetWorkload().GetCjisSettings().GetKmsSettings().GetRotationPeriod().GetNanos())) + if req.GetWorkload().GetCjisSettings().GetKmsSettings().GetNextRotationTime() != nil { + nextRotationTime, err := protojson.Marshal(req.GetWorkload().GetCjisSettings().GetKmsSettings().GetNextRotationTime()) + if err != nil { + return nil, err + } + params.Add("workload.cjisSettings.kmsSettings.nextRotationTime", string(nextRotationTime)) } - if req.GetWorkload().GetCjisSettings().GetKmsSettings().GetRotationPeriod().GetSeconds() != 0 { - params.Add("workload.cjisSettings.kmsSettings.rotationPeriod.seconds", fmt.Sprintf("%v", req.GetWorkload().GetCjisSettings().GetKmsSettings().GetRotationPeriod().GetSeconds())) + if req.GetWorkload().GetCjisSettings().GetKmsSettings().GetRotationPeriod() != nil { + rotationPeriod, err := protojson.Marshal(req.GetWorkload().GetCjisSettings().GetKmsSettings().GetRotationPeriod()) + if err != nil { + return nil, err + } + params.Add("workload.cjisSettings.kmsSettings.rotationPeriod", string(rotationPeriod)) } params.Add("workload.complianceRegime", fmt.Sprintf("%v", req.GetWorkload().GetComplianceRegime())) - if req.GetWorkload().GetCreateTime().GetNanos() != 0 { - params.Add("workload.createTime.nanos", fmt.Sprintf("%v", req.GetWorkload().GetCreateTime().GetNanos())) + if req.GetWorkload().GetCompliantButDisallowedServices() != nil { + params.Add("workload.compliantButDisallowedServices", fmt.Sprintf("%v", req.GetWorkload().GetCompliantButDisallowedServices())) } - if req.GetWorkload().GetCreateTime().GetSeconds() != 0 { - params.Add("workload.createTime.seconds", fmt.Sprintf("%v", req.GetWorkload().GetCreateTime().GetSeconds())) + if req.GetWorkload().GetCreateTime() != nil { + createTime, err := protojson.Marshal(req.GetWorkload().GetCreateTime()) + if err != nil { + return nil, err + } + params.Add("workload.createTime", string(createTime)) } params.Add("workload.displayName", fmt.Sprintf("%v", req.GetWorkload().GetDisplayName())) if req.GetWorkload().GetEnableSovereignControls() { @@ -860,56 +872,64 @@ func (c *restClient) UpdateWorkload(ctx context.Context, req *assuredworkloadspb if req.GetWorkload().GetEtag() != "" { params.Add("workload.etag", fmt.Sprintf("%v", req.GetWorkload().GetEtag())) } - if req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetNextRotationTime().GetNanos() != 0 { - params.Add("workload.fedrampHighSettings.kmsSettings.nextRotationTime.nanos", fmt.Sprintf("%v", req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetNextRotationTime().GetNanos())) - } - if req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetNextRotationTime().GetSeconds() != 0 { - params.Add("workload.fedrampHighSettings.kmsSettings.nextRotationTime.seconds", fmt.Sprintf("%v", req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetNextRotationTime().GetSeconds())) - } - if req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetRotationPeriod().GetNanos() != 0 { - params.Add("workload.fedrampHighSettings.kmsSettings.rotationPeriod.nanos", fmt.Sprintf("%v", req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetRotationPeriod().GetNanos())) - } - if req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetRotationPeriod().GetSeconds() != 0 { - params.Add("workload.fedrampHighSettings.kmsSettings.rotationPeriod.seconds", fmt.Sprintf("%v", req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetRotationPeriod().GetSeconds())) - } - if req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetNextRotationTime().GetNanos() != 0 { - params.Add("workload.fedrampModerateSettings.kmsSettings.nextRotationTime.nanos", fmt.Sprintf("%v", req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetNextRotationTime().GetNanos())) - } - if req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetNextRotationTime().GetSeconds() != 0 { - params.Add("workload.fedrampModerateSettings.kmsSettings.nextRotationTime.seconds", fmt.Sprintf("%v", req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetNextRotationTime().GetSeconds())) - } - if req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetRotationPeriod().GetNanos() != 0 { - params.Add("workload.fedrampModerateSettings.kmsSettings.rotationPeriod.nanos", fmt.Sprintf("%v", req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetRotationPeriod().GetNanos())) + if req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetNextRotationTime() != nil { + nextRotationTime, err := protojson.Marshal(req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetNextRotationTime()) + if err != nil { + return nil, err + } + params.Add("workload.fedrampHighSettings.kmsSettings.nextRotationTime", string(nextRotationTime)) } - if req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetRotationPeriod().GetSeconds() != 0 { - params.Add("workload.fedrampModerateSettings.kmsSettings.rotationPeriod.seconds", fmt.Sprintf("%v", req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetRotationPeriod().GetSeconds())) + if req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetRotationPeriod() != nil { + rotationPeriod, err := protojson.Marshal(req.GetWorkload().GetFedrampHighSettings().GetKmsSettings().GetRotationPeriod()) + if err != nil { + return nil, err + } + params.Add("workload.fedrampHighSettings.kmsSettings.rotationPeriod", string(rotationPeriod)) } - if req.GetWorkload().GetIl4Settings().GetKmsSettings().GetNextRotationTime().GetNanos() != 0 { - params.Add("workload.il4Settings.kmsSettings.nextRotationTime.nanos", fmt.Sprintf("%v", req.GetWorkload().GetIl4Settings().GetKmsSettings().GetNextRotationTime().GetNanos())) + if req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetNextRotationTime() != nil { + nextRotationTime, err := protojson.Marshal(req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetNextRotationTime()) + if err != nil { + return nil, err + } + params.Add("workload.fedrampModerateSettings.kmsSettings.nextRotationTime", string(nextRotationTime)) } - if req.GetWorkload().GetIl4Settings().GetKmsSettings().GetNextRotationTime().GetSeconds() != 0 { - params.Add("workload.il4Settings.kmsSettings.nextRotationTime.seconds", fmt.Sprintf("%v", req.GetWorkload().GetIl4Settings().GetKmsSettings().GetNextRotationTime().GetSeconds())) + if req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetRotationPeriod() != nil { + rotationPeriod, err := protojson.Marshal(req.GetWorkload().GetFedrampModerateSettings().GetKmsSettings().GetRotationPeriod()) + if err != nil { + return nil, err + } + params.Add("workload.fedrampModerateSettings.kmsSettings.rotationPeriod", string(rotationPeriod)) } - if req.GetWorkload().GetIl4Settings().GetKmsSettings().GetRotationPeriod().GetNanos() != 0 { - params.Add("workload.il4Settings.kmsSettings.rotationPeriod.nanos", fmt.Sprintf("%v", req.GetWorkload().GetIl4Settings().GetKmsSettings().GetRotationPeriod().GetNanos())) + if req.GetWorkload().GetIl4Settings().GetKmsSettings().GetNextRotationTime() != nil { + nextRotationTime, err := protojson.Marshal(req.GetWorkload().GetIl4Settings().GetKmsSettings().GetNextRotationTime()) + if err != nil { + return nil, err + } + params.Add("workload.il4Settings.kmsSettings.nextRotationTime", string(nextRotationTime)) } - if req.GetWorkload().GetIl4Settings().GetKmsSettings().GetRotationPeriod().GetSeconds() != 0 { - params.Add("workload.il4Settings.kmsSettings.rotationPeriod.seconds", fmt.Sprintf("%v", req.GetWorkload().GetIl4Settings().GetKmsSettings().GetRotationPeriod().GetSeconds())) + if req.GetWorkload().GetIl4Settings().GetKmsSettings().GetRotationPeriod() != nil { + rotationPeriod, err := protojson.Marshal(req.GetWorkload().GetIl4Settings().GetKmsSettings().GetRotationPeriod()) + if err != nil { + return nil, err + } + params.Add("workload.il4Settings.kmsSettings.rotationPeriod", string(rotationPeriod)) } if req.GetWorkload().GetKajEnrollmentState() != 0 { params.Add("workload.kajEnrollmentState", fmt.Sprintf("%v", req.GetWorkload().GetKajEnrollmentState())) } - if req.GetWorkload().GetKmsSettings().GetNextRotationTime().GetNanos() != 0 { - params.Add("workload.kmsSettings.nextRotationTime.nanos", fmt.Sprintf("%v", req.GetWorkload().GetKmsSettings().GetNextRotationTime().GetNanos())) - } - if req.GetWorkload().GetKmsSettings().GetNextRotationTime().GetSeconds() != 0 { - params.Add("workload.kmsSettings.nextRotationTime.seconds", fmt.Sprintf("%v", req.GetWorkload().GetKmsSettings().GetNextRotationTime().GetSeconds())) - } - if req.GetWorkload().GetKmsSettings().GetRotationPeriod().GetNanos() != 0 { - params.Add("workload.kmsSettings.rotationPeriod.nanos", fmt.Sprintf("%v", req.GetWorkload().GetKmsSettings().GetRotationPeriod().GetNanos())) + if req.GetWorkload().GetKmsSettings().GetNextRotationTime() != nil { + nextRotationTime, err := protojson.Marshal(req.GetWorkload().GetKmsSettings().GetNextRotationTime()) + if err != nil { + return nil, err + } + params.Add("workload.kmsSettings.nextRotationTime", string(nextRotationTime)) } - if req.GetWorkload().GetKmsSettings().GetRotationPeriod().GetSeconds() != 0 { - params.Add("workload.kmsSettings.rotationPeriod.seconds", fmt.Sprintf("%v", req.GetWorkload().GetKmsSettings().GetRotationPeriod().GetSeconds())) + if req.GetWorkload().GetKmsSettings().GetRotationPeriod() != nil { + rotationPeriod, err := protojson.Marshal(req.GetWorkload().GetKmsSettings().GetRotationPeriod()) + if err != nil { + return nil, err + } + params.Add("workload.kmsSettings.rotationPeriod", string(rotationPeriod)) } if req.GetWorkload().GetName() != "" { params.Add("workload.name", fmt.Sprintf("%v", req.GetWorkload().GetName())) @@ -1136,8 +1156,8 @@ func (c *restClient) GetWorkload(ctx context.Context, req *assuredworkloadspb.Ge return resp, nil } -// AnalyzeWorkloadMove a request to analyze a hypothetical move of a source project or -// project-based workload to a target (destination) folder-based workload. +// AnalyzeWorkloadMove analyze if the source Assured Workloads can be moved to the target Assured +// Workload func (c *restClient) AnalyzeWorkloadMove(ctx context.Context, req *assuredworkloadspb.AnalyzeWorkloadMoveRequest, opts ...gax.CallOption) (*assuredworkloadspb.AnalyzeWorkloadMoveResponse, error) { baseUrl, err := url.Parse(c.endpoint) if err != nil { diff --git a/assuredworkloads/apiv1beta1/assured_workloads_client_example_test.go b/assuredworkloads/apiv1beta1/assured_workloads_client_example_test.go index 93d09394ff5..f5068c3f7fd 100644 --- a/assuredworkloads/apiv1beta1/assured_workloads_client_example_test.go +++ b/assuredworkloads/apiv1beta1/assured_workloads_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewRESTClient() { func ExampleClient_CreateWorkload() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleClient_CreateWorkload() { func ExampleClient_UpdateWorkload() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleClient_UpdateWorkload() { func ExampleClient_RestrictAllowedResources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleClient_RestrictAllowedResources() { func ExampleClient_DeleteWorkload() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +164,11 @@ func ExampleClient_DeleteWorkload() { func ExampleClient_GetWorkload() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +189,11 @@ func ExampleClient_GetWorkload() { func ExampleClient_AnalyzeWorkloadMove() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -174,6 +214,11 @@ func ExampleClient_AnalyzeWorkloadMove() { func ExampleClient_ListWorkloads() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +245,11 @@ func ExampleClient_ListWorkloads() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/assuredworkloads/apiv1beta1/doc.go b/assuredworkloads/apiv1beta1/doc.go index 8491b5fbc70..8417adf7668 100644 --- a/assuredworkloads/apiv1beta1/doc.go +++ b/assuredworkloads/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := assuredworkloads.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := assuredworkloads.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/assuredworkloads/go.mod b/assuredworkloads/go.mod index 404a0a805a0..1654b41bc39 100644 --- a/assuredworkloads/go.mod +++ b/assuredworkloads/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 - google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/assuredworkloads/go.sum b/assuredworkloads/go.sum index 79691d9102f..8bfc50c41a3 100644 --- a/assuredworkloads/go.sum +++ b/assuredworkloads/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -589,8 +590,8 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf h1:Q5xNKbTSFwkuaaGaR7CMcXEM5sy19KYdUU8iF8/iRC0= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/automl/apiv1/auto_ml_client.go b/automl/apiv1/auto_ml_client.go index 117d7a7bf57..63e6e634d6a 100644 --- a/automl/apiv1/auto_ml_client.go +++ b/automl/apiv1/auto_ml_client.go @@ -277,7 +277,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -560,7 +561,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/automl/apiv1/auto_ml_client_example_test.go b/automl/apiv1/auto_ml_client_example_test.go index 338980b38f9..201d077dfe4 100644 --- a/automl/apiv1/auto_ml_client_example_test.go +++ b/automl/apiv1/auto_ml_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleClient_CreateDataset() { func ExampleClient_GetDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleClient_GetDataset() { func ExampleClient_ListDatasets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_ListDatasets() { func ExampleClient_UpdateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleClient_UpdateDataset() { func ExampleClient_DeleteDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -152,6 +182,11 @@ func ExampleClient_DeleteDataset() { func ExampleClient_ImportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -175,6 +210,11 @@ func ExampleClient_ImportData() { func ExampleClient_ExportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -198,6 +238,11 @@ func ExampleClient_ExportData() { func ExampleClient_GetAnnotationSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleClient_GetAnnotationSpec() { func ExampleClient_CreateModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleClient_CreateModel() { func ExampleClient_GetModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +318,11 @@ func ExampleClient_GetModel() { func ExampleClient_ListModels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +349,11 @@ func ExampleClient_ListModels() { func ExampleClient_DeleteModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -312,6 +377,11 @@ func ExampleClient_DeleteModel() { func ExampleClient_UpdateModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -332,6 +402,11 @@ func ExampleClient_UpdateModel() { func ExampleClient_DeployModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -355,6 +430,11 @@ func ExampleClient_DeployModel() { func ExampleClient_UndeployModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -378,6 +458,11 @@ func ExampleClient_UndeployModel() { func ExampleClient_ExportModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -401,6 +486,11 @@ func ExampleClient_ExportModel() { func ExampleClient_GetModelEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -421,6 +511,11 @@ func ExampleClient_GetModelEvaluation() { func ExampleClient_ListModelEvaluations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/automl/apiv1/doc.go b/automl/apiv1/doc.go index d20e1104afc..7c61b79ec9e 100644 --- a/automl/apiv1/doc.go +++ b/automl/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := automl.NewPredictionClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := automl.NewPredictionClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/automl/apiv1/prediction_client.go b/automl/apiv1/prediction_client.go index abc9b6879cc..95d04d899e8 100644 --- a/automl/apiv1/prediction_client.go +++ b/automl/apiv1/prediction_client.go @@ -109,7 +109,8 @@ func (c *PredictionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -264,7 +265,8 @@ func NewPredictionClient(ctx context.Context, opts ...option.ClientOption) (*Pre // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/automl/apiv1/prediction_client_example_test.go b/automl/apiv1/prediction_client_example_test.go index b93bad46b27..53e14508875 100644 --- a/automl/apiv1/prediction_client_example_test.go +++ b/automl/apiv1/prediction_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewPredictionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewPredictionClient() { func ExamplePredictionClient_Predict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExamplePredictionClient_Predict() { func ExamplePredictionClient_BatchPredict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/automl/apiv1beta1/auto_ml_client.go b/automl/apiv1beta1/auto_ml_client.go index 9698defcec8..5b991abd393 100644 --- a/automl/apiv1beta1/auto_ml_client.go +++ b/automl/apiv1beta1/auto_ml_client.go @@ -483,7 +483,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -811,7 +812,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -923,7 +925,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1807,8 +1809,12 @@ func (c *restClient) UpdateDataset(ctx context.Context, req *automlpb.UpdateData baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetDataset().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -2118,8 +2124,12 @@ func (c *restClient) GetTableSpec(ctx context.Context, req *automlpb.GetTableSpe baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} - if req.GetFieldMask().GetPaths() != nil { - params.Add("fieldMask.paths", fmt.Sprintf("%v", req.GetFieldMask().GetPaths())) + if req.GetFieldMask() != nil { + fieldMask, err := protojson.Marshal(req.GetFieldMask()) + if err != nil { + return nil, err + } + params.Add("fieldMask", string(fieldMask)) } baseUrl.RawQuery = params.Encode() @@ -2191,8 +2201,12 @@ func (c *restClient) ListTableSpecs(ctx context.Context, req *automlpb.ListTable baseUrl.Path += fmt.Sprintf("/v1beta1/%v/tableSpecs", req.GetParent()) params := url.Values{} - if req.GetFieldMask().GetPaths() != nil { - params.Add("fieldMask.paths", fmt.Sprintf("%v", req.GetFieldMask().GetPaths())) + if req.GetFieldMask() != nil { + fieldMask, err := protojson.Marshal(req.GetFieldMask()) + if err != nil { + return nil, "", err + } + params.Add("fieldMask", string(fieldMask)) } if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) @@ -2278,8 +2292,12 @@ func (c *restClient) UpdateTableSpec(ctx context.Context, req *automlpb.UpdateTa baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetTableSpec().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -2338,8 +2356,12 @@ func (c *restClient) GetColumnSpec(ctx context.Context, req *automlpb.GetColumnS baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} - if req.GetFieldMask().GetPaths() != nil { - params.Add("fieldMask.paths", fmt.Sprintf("%v", req.GetFieldMask().GetPaths())) + if req.GetFieldMask() != nil { + fieldMask, err := protojson.Marshal(req.GetFieldMask()) + if err != nil { + return nil, err + } + params.Add("fieldMask", string(fieldMask)) } baseUrl.RawQuery = params.Encode() @@ -2411,8 +2433,12 @@ func (c *restClient) ListColumnSpecs(ctx context.Context, req *automlpb.ListColu baseUrl.Path += fmt.Sprintf("/v1beta1/%v/columnSpecs", req.GetParent()) params := url.Values{} - if req.GetFieldMask().GetPaths() != nil { - params.Add("fieldMask.paths", fmt.Sprintf("%v", req.GetFieldMask().GetPaths())) + if req.GetFieldMask() != nil { + fieldMask, err := protojson.Marshal(req.GetFieldMask()) + if err != nil { + return nil, "", err + } + params.Add("fieldMask", string(fieldMask)) } if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) @@ -2498,8 +2524,12 @@ func (c *restClient) UpdateColumnSpec(ctx context.Context, req *automlpb.UpdateC baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetColumnSpec().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/automl/apiv1beta1/auto_ml_client_example_test.go b/automl/apiv1beta1/auto_ml_client_example_test.go index 7d1227b110c..28d91c70082 100644 --- a/automl/apiv1beta1/auto_ml_client_example_test.go +++ b/automl/apiv1beta1/auto_ml_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_CreateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleClient_CreateDataset() { func ExampleClient_GetDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +110,11 @@ func ExampleClient_GetDataset() { func ExampleClient_ListDatasets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleClient_ListDatasets() { func ExampleClient_UpdateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleClient_UpdateDataset() { func ExampleClient_DeleteDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +194,11 @@ func ExampleClient_DeleteDataset() { func ExampleClient_ImportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleClient_ImportData() { func ExampleClient_ExportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +250,11 @@ func ExampleClient_ExportData() { func ExampleClient_GetAnnotationSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +275,11 @@ func ExampleClient_GetAnnotationSpec() { func ExampleClient_GetTableSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +300,11 @@ func ExampleClient_GetTableSpec() { func ExampleClient_ListTableSpecs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +331,11 @@ func ExampleClient_ListTableSpecs() { func ExampleClient_UpdateTableSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -291,6 +356,11 @@ func ExampleClient_UpdateTableSpec() { func ExampleClient_GetColumnSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -311,6 +381,11 @@ func ExampleClient_GetColumnSpec() { func ExampleClient_ListColumnSpecs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -337,6 +412,11 @@ func ExampleClient_ListColumnSpecs() { func ExampleClient_UpdateColumnSpec() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -357,6 +437,11 @@ func ExampleClient_UpdateColumnSpec() { func ExampleClient_CreateModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -382,6 +467,11 @@ func ExampleClient_CreateModel() { func ExampleClient_GetModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -402,6 +492,11 @@ func ExampleClient_GetModel() { func ExampleClient_ListModels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -428,6 +523,11 @@ func ExampleClient_ListModels() { func ExampleClient_DeleteModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -451,6 +551,11 @@ func ExampleClient_DeleteModel() { func ExampleClient_DeployModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -474,6 +579,11 @@ func ExampleClient_DeployModel() { func ExampleClient_UndeployModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -497,6 +607,11 @@ func ExampleClient_UndeployModel() { func ExampleClient_ExportModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -520,6 +635,11 @@ func ExampleClient_ExportModel() { func ExampleClient_ExportEvaluatedExamples() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -543,6 +663,11 @@ func ExampleClient_ExportEvaluatedExamples() { func ExampleClient_GetModelEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -563,6 +688,11 @@ func ExampleClient_GetModelEvaluation() { func ExampleClient_ListModelEvaluations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/automl/apiv1beta1/doc.go b/automl/apiv1beta1/doc.go index 6b8e570325c..8411063fdfa 100644 --- a/automl/apiv1beta1/doc.go +++ b/automl/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := automl.NewPredictionClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := automl.NewPredictionClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/automl/apiv1beta1/prediction_client.go b/automl/apiv1beta1/prediction_client.go index bc7df6b88a2..0f07dbc5a11 100644 --- a/automl/apiv1beta1/prediction_client.go +++ b/automl/apiv1beta1/prediction_client.go @@ -122,7 +122,8 @@ func (c *PredictionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -263,7 +264,8 @@ func NewPredictionClient(ctx context.Context, opts ...option.ClientOption) (*Pre // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -365,7 +367,7 @@ func (c *predictionRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *predictionRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/automl/apiv1beta1/prediction_client_example_test.go b/automl/apiv1beta1/prediction_client_example_test.go index ee611333d7a..bf2d079fadf 100644 --- a/automl/apiv1beta1/prediction_client_example_test.go +++ b/automl/apiv1beta1/prediction_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewPredictionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewPredictionClient() { func ExampleNewPredictionRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewPredictionRESTClient() { func ExamplePredictionClient_Predict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExamplePredictionClient_Predict() { func ExamplePredictionClient_BatchPredict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/automl/go.mod b/automl/go.mod index 23aef5ef00b..301f119a889 100644 --- a/automl/go.mod +++ b/automl/go.mod @@ -4,9 +4,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -15,11 +14,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/automl/go.sum b/automl/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/automl/go.sum +++ b/automl/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/baremetalsolution/apiv2/bare_metal_solution_client.go b/baremetalsolution/apiv2/bare_metal_solution_client.go index 0ea6665b71c..79dfc20d373 100644 --- a/baremetalsolution/apiv2/bare_metal_solution_client.go +++ b/baremetalsolution/apiv2/bare_metal_solution_client.go @@ -184,7 +184,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -441,7 +442,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/baremetalsolution/apiv2/bare_metal_solution_client_example_test.go b/baremetalsolution/apiv2/bare_metal_solution_client_example_test.go index 9036707310f..bb901f6b559 100644 --- a/baremetalsolution/apiv2/bare_metal_solution_client_example_test.go +++ b/baremetalsolution/apiv2/bare_metal_solution_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_ListInstances() { func ExampleClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleClient_GetInstance() { func ExampleClient_UpdateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleClient_UpdateInstance() { func ExampleClient_ResetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleClient_ResetInstance() { func ExampleClient_StartInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleClient_StartInstance() { func ExampleClient_StopInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -185,6 +220,11 @@ func ExampleClient_StopInstance() { func ExampleClient_DetachLun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -210,6 +250,11 @@ func ExampleClient_DetachLun() { func ExampleClient_ListVolumes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -236,6 +281,11 @@ func ExampleClient_ListVolumes() { func ExampleClient_GetVolume() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +306,11 @@ func ExampleClient_GetVolume() { func ExampleClient_UpdateVolume() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -281,6 +336,11 @@ func ExampleClient_UpdateVolume() { func ExampleClient_ResizeVolume() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +366,11 @@ func ExampleClient_ResizeVolume() { func ExampleClient_ListNetworks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -332,6 +397,11 @@ func ExampleClient_ListNetworks() { func ExampleClient_ListNetworkUsage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -352,6 +422,11 @@ func ExampleClient_ListNetworkUsage() { func ExampleClient_GetNetwork() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +447,11 @@ func ExampleClient_GetNetwork() { func ExampleClient_UpdateNetwork() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -397,6 +477,11 @@ func ExampleClient_UpdateNetwork() { func ExampleClient_GetLun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -417,6 +502,11 @@ func ExampleClient_GetLun() { func ExampleClient_ListLuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +533,11 @@ func ExampleClient_ListLuns() { func ExampleClient_GetNfsShare() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -463,6 +558,11 @@ func ExampleClient_GetNfsShare() { func ExampleClient_ListNfsShares() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -489,6 +589,11 @@ func ExampleClient_ListNfsShares() { func ExampleClient_UpdateNfsShare() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -514,6 +619,11 @@ func ExampleClient_UpdateNfsShare() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -534,6 +644,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/baremetalsolution/apiv2/doc.go b/baremetalsolution/apiv2/doc.go index 75ff5b303e2..f08e2879a4b 100644 --- a/baremetalsolution/apiv2/doc.go +++ b/baremetalsolution/apiv2/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := baremetalsolution.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := baremetalsolution.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/baremetalsolution/go.mod b/baremetalsolution/go.mod index 2b88c96c6c3..03a40308f59 100644 --- a/baremetalsolution/go.mod +++ b/baremetalsolution/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/baremetalsolution/go.sum b/baremetalsolution/go.sum index ddabb8757e7..61881bdba1f 100644 --- a/baremetalsolution/go.sum +++ b/baremetalsolution/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -586,6 +589,7 @@ google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1 h1:C2UVWqrgLYKrT5nh5oU6hLRm1AeEklCK5eloQA1NtFY= google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= diff --git a/batch/apiv1/batch_client.go b/batch/apiv1/batch_client.go index 9cbab1bed39..5cf0a245036 100644 --- a/batch/apiv1/batch_client.go +++ b/batch/apiv1/batch_client.go @@ -192,7 +192,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -376,7 +377,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/batch/apiv1/batch_client_example_test.go b/batch/apiv1/batch_client_example_test.go index 44928fa0a6c..a0b1e37bd1b 100644 --- a/batch/apiv1/batch_client_example_test.go +++ b/batch/apiv1/batch_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewClient() { func ExampleClient_CreateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleClient_CreateJob() { func ExampleClient_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleClient_GetJob() { func ExampleClient_DeleteJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_DeleteJob() { func ExampleClient_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleClient_ListJobs() { func ExampleClient_GetTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleClient_GetTask() { func ExampleClient_ListTasks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleClient_ListTasks() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +292,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -262,6 +317,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +342,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -300,6 +365,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +388,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -338,6 +413,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/batch/apiv1/doc.go b/batch/apiv1/doc.go index b7b4105e6dd..fb5d8c3b888 100644 --- a/batch/apiv1/doc.go +++ b/batch/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := batch.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := batch.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/batch/go.mod b/batch/go.mod index 010ea286d46..fd325dfe264 100644 --- a/batch/go.mod +++ b/batch/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220902135211-223410557253 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/batch/go.sum b/batch/go.sum index 6c895e8c0ee..5f41c6b3972 100644 --- a/batch/go.sum +++ b/batch/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -589,8 +590,6 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf h1:Q5xNKbTSFwkuaaGaR7CMcXEM5sy19KYdUU8iF8/iRC0= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/genproto v0.0.0-20220902135211-223410557253 h1:vXJMM8Shg7TGaYxZsQ++A/FOSlbDmDtWhS/o+3w/hj4= google.golang.org/genproto v0.0.0-20220902135211-223410557253/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= diff --git a/beyondcorp/appconnections/apiv1/app_connections_client.go b/beyondcorp/appconnections/apiv1/app_connections_client.go index 9a976b11ce1..2a6cc0e1757 100644 --- a/beyondcorp/appconnections/apiv1/app_connections_client.go +++ b/beyondcorp/appconnections/apiv1/app_connections_client.go @@ -160,7 +160,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -365,7 +366,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/beyondcorp/appconnections/apiv1/app_connections_client_example_test.go b/beyondcorp/appconnections/apiv1/app_connections_client_example_test.go index febf9ae43e9..d6c263f8e7a 100644 --- a/beyondcorp/appconnections/apiv1/app_connections_client_example_test.go +++ b/beyondcorp/appconnections/apiv1/app_connections_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewClient() { func ExampleClient_ListAppConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleClient_ListAppConnections() { func ExampleClient_GetAppConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleClient_GetAppConnection() { func ExampleClient_CreateAppConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleClient_CreateAppConnection() { func ExampleClient_UpdateAppConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleClient_UpdateAppConnection() { func ExampleClient_DeleteAppConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleClient_DeleteAppConnection() { func ExampleClient_ResolveAppConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +221,11 @@ func ExampleClient_ResolveAppConnections() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +246,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +277,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -252,6 +302,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -272,6 +327,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -292,6 +352,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -310,6 +375,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -328,6 +398,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -348,6 +423,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/beyondcorp/appconnections/apiv1/doc.go b/beyondcorp/appconnections/apiv1/doc.go index ecff83f7fb5..50eb3974972 100644 --- a/beyondcorp/appconnections/apiv1/doc.go +++ b/beyondcorp/appconnections/apiv1/doc.go @@ -29,6 +29,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := appconnections.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -44,6 +49,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := appconnections.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/beyondcorp/appconnectors/apiv1/app_connectors_client.go b/beyondcorp/appconnectors/apiv1/app_connectors_client.go index 4c5aa216363..3f915e8b829 100644 --- a/beyondcorp/appconnectors/apiv1/app_connectors_client.go +++ b/beyondcorp/appconnectors/apiv1/app_connectors_client.go @@ -161,7 +161,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -370,7 +371,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/beyondcorp/appconnectors/apiv1/app_connectors_client_example_test.go b/beyondcorp/appconnectors/apiv1/app_connectors_client_example_test.go index 64b4b3c4725..66ec180331b 100644 --- a/beyondcorp/appconnectors/apiv1/app_connectors_client_example_test.go +++ b/beyondcorp/appconnectors/apiv1/app_connectors_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewClient() { func ExampleClient_ListAppConnectors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleClient_ListAppConnectors() { func ExampleClient_GetAppConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleClient_GetAppConnector() { func ExampleClient_CreateAppConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleClient_CreateAppConnector() { func ExampleClient_UpdateAppConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleClient_UpdateAppConnector() { func ExampleClient_DeleteAppConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleClient_DeleteAppConnector() { func ExampleClient_ReportStatus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -185,6 +220,11 @@ func ExampleClient_ReportStatus() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +276,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +301,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -291,6 +351,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -309,6 +374,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -327,6 +397,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +422,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/beyondcorp/appconnectors/apiv1/doc.go b/beyondcorp/appconnectors/apiv1/doc.go index 9d4195a9d62..cfefaae2520 100644 --- a/beyondcorp/appconnectors/apiv1/doc.go +++ b/beyondcorp/appconnectors/apiv1/doc.go @@ -29,6 +29,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := appconnectors.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -44,6 +49,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := appconnectors.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/beyondcorp/appgateways/apiv1/app_gateways_client.go b/beyondcorp/appgateways/apiv1/app_gateways_client.go index d058595e030..d165adeba17 100644 --- a/beyondcorp/appgateways/apiv1/app_gateways_client.go +++ b/beyondcorp/appgateways/apiv1/app_gateways_client.go @@ -153,7 +153,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -340,7 +341,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/beyondcorp/appgateways/apiv1/app_gateways_client_example_test.go b/beyondcorp/appgateways/apiv1/app_gateways_client_example_test.go index db3d582a5a9..b2b6018c310 100644 --- a/beyondcorp/appgateways/apiv1/app_gateways_client_example_test.go +++ b/beyondcorp/appgateways/apiv1/app_gateways_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewClient() { func ExampleClient_ListAppGateways() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleClient_ListAppGateways() { func ExampleClient_GetAppGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleClient_GetAppGateway() { func ExampleClient_CreateAppGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleClient_CreateAppGateway() { func ExampleClient_DeleteAppGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleClient_DeleteAppGateway() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +216,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +241,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +266,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +291,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -259,6 +314,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -277,6 +337,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -297,6 +362,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/beyondcorp/appgateways/apiv1/doc.go b/beyondcorp/appgateways/apiv1/doc.go index d8e75b2923c..06709f97f5b 100644 --- a/beyondcorp/appgateways/apiv1/doc.go +++ b/beyondcorp/appgateways/apiv1/doc.go @@ -29,6 +29,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := appgateways.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -44,6 +49,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := appgateways.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/beyondcorp/clientconnectorservices/apiv1/client_connector_services_client.go b/beyondcorp/clientconnectorservices/apiv1/client_connector_services_client.go index f294223d6b2..3510f0da5d0 100644 --- a/beyondcorp/clientconnectorservices/apiv1/client_connector_services_client.go +++ b/beyondcorp/clientconnectorservices/apiv1/client_connector_services_client.go @@ -154,7 +154,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -349,7 +350,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/beyondcorp/clientconnectorservices/apiv1/client_connector_services_client_example_test.go b/beyondcorp/clientconnectorservices/apiv1/client_connector_services_client_example_test.go index cbbbc0297a0..b195227abc4 100644 --- a/beyondcorp/clientconnectorservices/apiv1/client_connector_services_client_example_test.go +++ b/beyondcorp/clientconnectorservices/apiv1/client_connector_services_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewClient() { func ExampleClient_ListClientConnectorServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleClient_ListClientConnectorServices() { func ExampleClient_GetClientConnectorService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleClient_GetClientConnectorService() { func ExampleClient_CreateClientConnectorService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleClient_CreateClientConnectorService() { func ExampleClient_UpdateClientConnectorService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleClient_UpdateClientConnectorService() { func ExampleClient_DeleteClientConnectorService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleClient_DeleteClientConnectorService() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +246,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +271,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +321,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -284,6 +344,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +392,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/beyondcorp/clientconnectorservices/apiv1/doc.go b/beyondcorp/clientconnectorservices/apiv1/doc.go index 1521b056035..624a7799fe7 100644 --- a/beyondcorp/clientconnectorservices/apiv1/doc.go +++ b/beyondcorp/clientconnectorservices/apiv1/doc.go @@ -29,6 +29,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := clientconnectorservices.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -44,6 +49,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := clientconnectorservices.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/beyondcorp/clientgateways/apiv1/client_gateways_client.go b/beyondcorp/clientgateways/apiv1/client_gateways_client.go index 877bd2fc750..da46afbf4b9 100644 --- a/beyondcorp/clientgateways/apiv1/client_gateways_client.go +++ b/beyondcorp/clientgateways/apiv1/client_gateways_client.go @@ -150,7 +150,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -334,7 +335,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/beyondcorp/clientgateways/apiv1/client_gateways_client_example_test.go b/beyondcorp/clientgateways/apiv1/client_gateways_client_example_test.go index 7731a8bb32c..8717c461adb 100644 --- a/beyondcorp/clientgateways/apiv1/client_gateways_client_example_test.go +++ b/beyondcorp/clientgateways/apiv1/client_gateways_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewClient() { func ExampleClient_ListClientGateways() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleClient_ListClientGateways() { func ExampleClient_GetClientGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleClient_GetClientGateway() { func ExampleClient_CreateClientGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleClient_CreateClientGateway() { func ExampleClient_DeleteClientGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleClient_DeleteClientGateway() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +216,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +241,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +266,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +291,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -259,6 +314,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -277,6 +337,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -297,6 +362,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/beyondcorp/clientgateways/apiv1/doc.go b/beyondcorp/clientgateways/apiv1/doc.go index d0f360af14c..80486192be0 100644 --- a/beyondcorp/clientgateways/apiv1/doc.go +++ b/beyondcorp/clientgateways/apiv1/doc.go @@ -29,6 +29,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := clientgateways.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -44,6 +49,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := clientgateways.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/beyondcorp/go.mod b/beyondcorp/go.mod index 4ee7d7e474b..108726e7fbb 100644 --- a/beyondcorp/go.mod +++ b/beyondcorp/go.mod @@ -5,8 +5,8 @@ go 1.18 require ( cloud.google.com/go v0.103.0 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.86.0 - google.golang.org/genproto v0.0.0-20220712132514-bdd2acd4974d + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/beyondcorp/go.sum b/beyondcorp/go.sum index 7441a2315a4..c853a2e6fd4 100644 --- a/beyondcorp/go.sum +++ b/beyondcorp/go.sum @@ -316,8 +316,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -504,8 +506,9 @@ google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6r google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.86.0 h1:ZAnyOHQFIuWso1BodVfSaRyffD74T9ERGFa3k1fNk/U= google.golang.org/api v0.86.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -595,8 +598,8 @@ google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220712132514-bdd2acd4974d h1:YbuF5+kdiC516xIP60RvlHeFbY9sRDR73QsAGHpkeVw= -google.golang.org/genproto v0.0.0-20220712132514-bdd2acd4974d/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/bigquery/connection/apiv1/connection_client.go b/bigquery/connection/apiv1/connection_client.go index 101cca068cd..97bb86dd5e5 100644 --- a/bigquery/connection/apiv1/connection_client.go +++ b/bigquery/connection/apiv1/connection_client.go @@ -152,7 +152,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -269,7 +270,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/connection/apiv1/connection_client_example_test.go b/bigquery/connection/apiv1/connection_client_example_test.go index a17c3bf2b34..425679d46ca 100644 --- a/bigquery/connection/apiv1/connection_client_example_test.go +++ b/bigquery/connection/apiv1/connection_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_CreateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleClient_CreateConnection() { func ExampleClient_GetConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleClient_GetConnection() { func ExampleClient_ListConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleClient_ListConnections() { func ExampleClient_UpdateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleClient_UpdateConnection() { func ExampleClient_DeleteConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleClient_DeleteConnection() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/connection/apiv1/doc.go b/bigquery/connection/apiv1/doc.go index 2b2f964f167..44690ac2c82 100644 --- a/bigquery/connection/apiv1/doc.go +++ b/bigquery/connection/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := connection.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := connection.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/connection/apiv1beta1/connection_client.go b/bigquery/connection/apiv1beta1/connection_client.go index f0acaa53fff..74f0ef4c54b 100644 --- a/bigquery/connection/apiv1beta1/connection_client.go +++ b/bigquery/connection/apiv1beta1/connection_client.go @@ -203,7 +203,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -325,7 +326,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -409,7 +411,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -732,8 +734,12 @@ func (c *restClient) ListConnections(ctx context.Context, req *connectionpb.List baseUrl.Path += fmt.Sprintf("/v1beta1/%v/connections", req.GetParent()) params := url.Values{} - if req.GetMaxResults().GetValue() != 0 { - params.Add("maxResults.value", fmt.Sprintf("%v", req.GetMaxResults().GetValue())) + if req.GetMaxResults() != nil { + maxResults, err := protojson.Marshal(req.GetMaxResults()) + if err != nil { + return nil, err + } + params.Add("maxResults", string(maxResults)) } if req.GetPageToken() != "" { params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) @@ -803,8 +809,12 @@ func (c *restClient) UpdateConnection(ctx context.Context, req *connectionpb.Upd baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/bigquery/connection/apiv1beta1/connection_client_example_test.go b/bigquery/connection/apiv1beta1/connection_client_example_test.go index 9fb22454ddd..b79243a957a 100644 --- a/bigquery/connection/apiv1beta1/connection_client_example_test.go +++ b/bigquery/connection/apiv1beta1/connection_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_CreateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleClient_CreateConnection() { func ExampleClient_GetConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +110,11 @@ func ExampleClient_GetConnection() { func ExampleClient_ListConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +135,11 @@ func ExampleClient_ListConnections() { func ExampleClient_UpdateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +160,11 @@ func ExampleClient_UpdateConnection() { func ExampleClient_UpdateConnectionCredential() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +183,11 @@ func ExampleClient_UpdateConnectionCredential() { func ExampleClient_DeleteConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -166,6 +206,11 @@ func ExampleClient_DeleteConnection() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +231,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +256,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/connection/apiv1beta1/doc.go b/bigquery/connection/apiv1beta1/doc.go index dc79cdc986b..8b485df298b 100644 --- a/bigquery/connection/apiv1beta1/doc.go +++ b/bigquery/connection/apiv1beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := connection.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := connection.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/dataexchange/apiv1beta1/analytics_hub_client.go b/bigquery/dataexchange/apiv1beta1/analytics_hub_client.go index 665b7b74122..81e31e3c71e 100644 --- a/bigquery/dataexchange/apiv1beta1/analytics_hub_client.go +++ b/bigquery/dataexchange/apiv1beta1/analytics_hub_client.go @@ -495,7 +495,8 @@ func (c *AnalyticsHubClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AnalyticsHubClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -659,7 +660,8 @@ func NewAnalyticsHubClient(ctx context.Context, opts ...option.ClientOption) (*A // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *analyticsHubGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -748,7 +750,7 @@ func (c *analyticsHubRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *analyticsHubRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1514,8 +1516,12 @@ func (c *analyticsHubRESTClient) UpdateDataExchange(ctx context.Context, req *da baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetDataExchange().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -1821,8 +1827,12 @@ func (c *analyticsHubRESTClient) UpdateListing(ctx context.Context, req *dataexc baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetListing().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/bigquery/dataexchange/apiv1beta1/analytics_hub_client_example_test.go b/bigquery/dataexchange/apiv1beta1/analytics_hub_client_example_test.go index c4dcfed7316..15c9f7c242b 100644 --- a/bigquery/dataexchange/apiv1beta1/analytics_hub_client_example_test.go +++ b/bigquery/dataexchange/apiv1beta1/analytics_hub_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewAnalyticsHubClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewAnalyticsHubClient() { func ExampleNewAnalyticsHubRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewAnalyticsHubRESTClient() { func ExampleAnalyticsHubClient_ListDataExchanges() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleAnalyticsHubClient_ListDataExchanges() { func ExampleAnalyticsHubClient_ListOrgDataExchanges() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleAnalyticsHubClient_ListOrgDataExchanges() { func ExampleAnalyticsHubClient_GetDataExchange() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleAnalyticsHubClient_GetDataExchange() { func ExampleAnalyticsHubClient_CreateDataExchange() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleAnalyticsHubClient_CreateDataExchange() { func ExampleAnalyticsHubClient_UpdateDataExchange() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleAnalyticsHubClient_UpdateDataExchange() { func ExampleAnalyticsHubClient_DeleteDataExchange() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleAnalyticsHubClient_DeleteDataExchange() { func ExampleAnalyticsHubClient_ListListings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleAnalyticsHubClient_ListListings() { func ExampleAnalyticsHubClient_GetListing() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleAnalyticsHubClient_GetListing() { func ExampleAnalyticsHubClient_CreateListing() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +303,11 @@ func ExampleAnalyticsHubClient_CreateListing() { func ExampleAnalyticsHubClient_UpdateListing() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +328,11 @@ func ExampleAnalyticsHubClient_UpdateListing() { func ExampleAnalyticsHubClient_DeleteListing() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +351,11 @@ func ExampleAnalyticsHubClient_DeleteListing() { func ExampleAnalyticsHubClient_SubscribeListing() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +376,11 @@ func ExampleAnalyticsHubClient_SubscribeListing() { func ExampleAnalyticsHubClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -326,6 +401,11 @@ func ExampleAnalyticsHubClient_GetIamPolicy() { func ExampleAnalyticsHubClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -346,6 +426,11 @@ func ExampleAnalyticsHubClient_SetIamPolicy() { func ExampleAnalyticsHubClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -366,6 +451,11 @@ func ExampleAnalyticsHubClient_TestIamPermissions() { func ExampleAnalyticsHubClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. @@ -386,6 +476,11 @@ func ExampleAnalyticsHubClient_GetLocation() { func ExampleAnalyticsHubClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/dataexchange/apiv1beta1/doc.go b/bigquery/dataexchange/apiv1beta1/doc.go index 9d008535a27..0382eb55f76 100644 --- a/bigquery/dataexchange/apiv1beta1/doc.go +++ b/bigquery/dataexchange/apiv1beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataexchange.NewAnalyticsHubClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataexchange.NewAnalyticsHubClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/datatransfer/apiv1/data_transfer_client.go b/bigquery/datatransfer/apiv1/data_transfer_client.go index 10950d0306c..782260aa8da 100644 --- a/bigquery/datatransfer/apiv1/data_transfer_client.go +++ b/bigquery/datatransfer/apiv1/data_transfer_client.go @@ -249,7 +249,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -407,7 +408,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/datatransfer/apiv1/data_transfer_client_example_test.go b/bigquery/datatransfer/apiv1/data_transfer_client_example_test.go index 497887b4f76..90500507c77 100644 --- a/bigquery/datatransfer/apiv1/data_transfer_client_example_test.go +++ b/bigquery/datatransfer/apiv1/data_transfer_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_GetDataSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_GetDataSource() { func ExampleClient_ListDataSources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_ListDataSources() { func ExampleClient_CreateTransferConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_CreateTransferConfig() { func ExampleClient_UpdateTransferConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleClient_UpdateTransferConfig() { func ExampleClient_DeleteTransferConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_DeleteTransferConfig() { func ExampleClient_GetTransferConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_GetTransferConfig() { func ExampleClient_ListTransferConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleClient_ListTransferConfigs() { func ExampleClient_ScheduleTransferRuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleClient_ScheduleTransferRuns() { func ExampleClient_StartManualTransferRuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleClient_StartManualTransferRuns() { func ExampleClient_GetTransferRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +303,11 @@ func ExampleClient_GetTransferRun() { func ExampleClient_DeleteTransferRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +326,11 @@ func ExampleClient_DeleteTransferRun() { func ExampleClient_ListTransferRuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -292,6 +357,11 @@ func ExampleClient_ListTransferRuns() { func ExampleClient_ListTransferLogs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +388,11 @@ func ExampleClient_ListTransferLogs() { func ExampleClient_CheckValidCreds() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -338,6 +413,11 @@ func ExampleClient_CheckValidCreds() { func ExampleClient_EnrollDataSources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/datatransfer/apiv1/doc.go b/bigquery/datatransfer/apiv1/doc.go index dbbf92c3478..f43be8a2953 100644 --- a/bigquery/datatransfer/apiv1/doc.go +++ b/bigquery/datatransfer/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datatransfer.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datatransfer.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/go.mod b/bigquery/go.mod index 7997df8f12b..ff99a784d38 100644 --- a/bigquery/go.mod +++ b/bigquery/go.mod @@ -7,14 +7,13 @@ require ( cloud.google.com/go/datacatalog v1.3.0 cloud.google.com/go/iam v0.3.0 cloud.google.com/go/storage v1.23.0 - github.com/golang/protobuf v1.5.2 github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.5.1 go.opencensus.io v0.23.0 golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f - google.golang.org/api v0.94.0 - google.golang.org/genproto v0.0.0-20220902135211-223410557253 + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -22,12 +21,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/martian/v3 v3.2.1 // indirect github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect github.com/googleapis/go-type-adapters v1.0.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/bigquery/go.sum b/bigquery/go.sum index 481218fef0e..f6d7a0078be 100644 --- a/bigquery/go.sum +++ b/bigquery/go.sum @@ -30,6 +30,7 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -53,6 +54,7 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -326,8 +328,9 @@ golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -517,8 +520,9 @@ google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3 google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -608,10 +612,9 @@ google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf h1:Q5xNKbTSFwkuaaGaR7CMcXEM5sy19KYdUU8iF8/iRC0= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220902135211-223410557253 h1:vXJMM8Shg7TGaYxZsQ++A/FOSlbDmDtWhS/o+3w/hj4= -google.golang.org/genproto v0.0.0-20220902135211-223410557253/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/bigquery/migration/apiv2/doc.go b/bigquery/migration/apiv2/doc.go index 902d1184339..f70a67a411c 100644 --- a/bigquery/migration/apiv2/doc.go +++ b/bigquery/migration/apiv2/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := migration.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := migration.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/migration/apiv2/migration_client.go b/bigquery/migration/apiv2/migration_client.go index f64879e7786..f8c55bf312f 100644 --- a/bigquery/migration/apiv2/migration_client.go +++ b/bigquery/migration/apiv2/migration_client.go @@ -145,7 +145,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -248,7 +249,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/migration/apiv2/migration_client_example_test.go b/bigquery/migration/apiv2/migration_client_example_test.go index a9f4adc8322..7f0ef11365d 100644 --- a/bigquery/migration/apiv2/migration_client_example_test.go +++ b/bigquery/migration/apiv2/migration_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateMigrationWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateMigrationWorkflow() { func ExampleClient_GetMigrationWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_GetMigrationWorkflow() { func ExampleClient_ListMigrationWorkflows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_ListMigrationWorkflows() { func ExampleClient_DeleteMigrationWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleClient_DeleteMigrationWorkflow() { func ExampleClient_StartMigrationWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -140,6 +170,11 @@ func ExampleClient_StartMigrationWorkflow() { func ExampleClient_GetMigrationSubtask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +195,11 @@ func ExampleClient_GetMigrationSubtask() { func ExampleClient_ListMigrationSubtasks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/migration/apiv2alpha/doc.go b/bigquery/migration/apiv2alpha/doc.go index 1b300c5eb22..f3f346de72a 100644 --- a/bigquery/migration/apiv2alpha/doc.go +++ b/bigquery/migration/apiv2alpha/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := migration.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := migration.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/migration/apiv2alpha/migration_client.go b/bigquery/migration/apiv2alpha/migration_client.go index 84c13b68b0f..ad106bc2b45 100644 --- a/bigquery/migration/apiv2alpha/migration_client.go +++ b/bigquery/migration/apiv2alpha/migration_client.go @@ -165,7 +165,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -268,7 +269,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/migration/apiv2alpha/migration_client_example_test.go b/bigquery/migration/apiv2alpha/migration_client_example_test.go index 7adf2f2e3b5..3de10cc4ae2 100644 --- a/bigquery/migration/apiv2alpha/migration_client_example_test.go +++ b/bigquery/migration/apiv2alpha/migration_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateMigrationWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateMigrationWorkflow() { func ExampleClient_GetMigrationWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_GetMigrationWorkflow() { func ExampleClient_ListMigrationWorkflows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_ListMigrationWorkflows() { func ExampleClient_DeleteMigrationWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleClient_DeleteMigrationWorkflow() { func ExampleClient_StartMigrationWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -140,6 +170,11 @@ func ExampleClient_StartMigrationWorkflow() { func ExampleClient_GetMigrationSubtask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +195,11 @@ func ExampleClient_GetMigrationSubtask() { func ExampleClient_ListMigrationSubtasks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/migration/apiv2alpha/sql_translation_client.go b/bigquery/migration/apiv2alpha/sql_translation_client.go index 4e9bef3378e..c2d69364e9f 100644 --- a/bigquery/migration/apiv2alpha/sql_translation_client.go +++ b/bigquery/migration/apiv2alpha/sql_translation_client.go @@ -93,7 +93,8 @@ func (c *SqlTranslationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SqlTranslationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -163,7 +164,8 @@ func NewSqlTranslationClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sqlTranslationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/migration/apiv2alpha/sql_translation_client_example_test.go b/bigquery/migration/apiv2alpha/sql_translation_client_example_test.go index a1955b2c9a1..d6e2c88c315 100644 --- a/bigquery/migration/apiv2alpha/sql_translation_client_example_test.go +++ b/bigquery/migration/apiv2alpha/sql_translation_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewSqlTranslationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewSqlTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewSqlTranslationClient() { func ExampleSqlTranslationClient_TranslateQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewSqlTranslationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/reservation/apiv1/doc.go b/bigquery/reservation/apiv1/doc.go index ae2a5fec245..f621027cdea 100644 --- a/bigquery/reservation/apiv1/doc.go +++ b/bigquery/reservation/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := reservation.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := reservation.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/reservation/apiv1/reservation_client.go b/bigquery/reservation/apiv1/reservation_client.go index f8df1656e72..f124e202160 100644 --- a/bigquery/reservation/apiv1/reservation_client.go +++ b/bigquery/reservation/apiv1/reservation_client.go @@ -281,7 +281,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -625,7 +626,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/reservation/apiv1/reservation_client_example_test.go b/bigquery/reservation/apiv1/reservation_client_example_test.go index 24b06efcd59..7a00826df8e 100644 --- a/bigquery/reservation/apiv1/reservation_client_example_test.go +++ b/bigquery/reservation/apiv1/reservation_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateReservation() { func ExampleClient_ListReservations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_ListReservations() { func ExampleClient_GetReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_GetReservation() { func ExampleClient_DeleteReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleClient_DeleteReservation() { func ExampleClient_UpdateReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_UpdateReservation() { func ExampleClient_CreateCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_CreateCapacityCommitment() { func ExampleClient_ListCapacityCommitments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleClient_ListCapacityCommitments() { func ExampleClient_GetCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleClient_GetCapacityCommitment() { func ExampleClient_DeleteCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleClient_DeleteCapacityCommitment() { func ExampleClient_UpdateCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +301,11 @@ func ExampleClient_UpdateCapacityCommitment() { func ExampleClient_SplitCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +326,11 @@ func ExampleClient_SplitCapacityCommitment() { func ExampleClient_MergeCapacityCommitments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +351,11 @@ func ExampleClient_MergeCapacityCommitments() { func ExampleClient_CreateAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +376,11 @@ func ExampleClient_CreateAssignment() { func ExampleClient_ListAssignments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -332,6 +407,11 @@ func ExampleClient_ListAssignments() { func ExampleClient_DeleteAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -350,6 +430,11 @@ func ExampleClient_DeleteAssignment() { func ExampleClient_SearchAssignments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -376,6 +461,11 @@ func ExampleClient_SearchAssignments() { func ExampleClient_SearchAllAssignments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -402,6 +492,11 @@ func ExampleClient_SearchAllAssignments() { func ExampleClient_MoveAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -422,6 +517,11 @@ func ExampleClient_MoveAssignment() { func ExampleClient_UpdateAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -442,6 +542,11 @@ func ExampleClient_UpdateAssignment() { func ExampleClient_GetBiReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -462,6 +567,11 @@ func ExampleClient_GetBiReservation() { func ExampleClient_UpdateBiReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/reservation/apiv1beta1/doc.go b/bigquery/reservation/apiv1beta1/doc.go index 17e47201f29..c8b9e30e032 100644 --- a/bigquery/reservation/apiv1beta1/doc.go +++ b/bigquery/reservation/apiv1beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := reservation.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := reservation.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/reservation/apiv1beta1/reservation_client.go b/bigquery/reservation/apiv1beta1/reservation_client.go index f83d874f905..bd69bf070de 100644 --- a/bigquery/reservation/apiv1beta1/reservation_client.go +++ b/bigquery/reservation/apiv1beta1/reservation_client.go @@ -278,7 +278,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -583,7 +584,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/reservation/apiv1beta1/reservation_client_example_test.go b/bigquery/reservation/apiv1beta1/reservation_client_example_test.go index 95b3947be64..68d6cc67911 100644 --- a/bigquery/reservation/apiv1beta1/reservation_client_example_test.go +++ b/bigquery/reservation/apiv1beta1/reservation_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateReservation() { func ExampleClient_ListReservations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_ListReservations() { func ExampleClient_GetReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_GetReservation() { func ExampleClient_DeleteReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleClient_DeleteReservation() { func ExampleClient_UpdateReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_UpdateReservation() { func ExampleClient_CreateCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_CreateCapacityCommitment() { func ExampleClient_ListCapacityCommitments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleClient_ListCapacityCommitments() { func ExampleClient_GetCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleClient_GetCapacityCommitment() { func ExampleClient_DeleteCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleClient_DeleteCapacityCommitment() { func ExampleClient_UpdateCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +301,11 @@ func ExampleClient_UpdateCapacityCommitment() { func ExampleClient_SplitCapacityCommitment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +326,11 @@ func ExampleClient_SplitCapacityCommitment() { func ExampleClient_MergeCapacityCommitments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +351,11 @@ func ExampleClient_MergeCapacityCommitments() { func ExampleClient_CreateAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +376,11 @@ func ExampleClient_CreateAssignment() { func ExampleClient_ListAssignments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -332,6 +407,11 @@ func ExampleClient_ListAssignments() { func ExampleClient_DeleteAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -350,6 +430,11 @@ func ExampleClient_DeleteAssignment() { func ExampleClient_SearchAssignments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -376,6 +461,11 @@ func ExampleClient_SearchAssignments() { func ExampleClient_MoveAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -396,6 +486,11 @@ func ExampleClient_MoveAssignment() { func ExampleClient_GetBiReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -416,6 +511,11 @@ func ExampleClient_GetBiReservation() { func ExampleClient_UpdateBiReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/storage/apiv1/big_query_read_client.go b/bigquery/storage/apiv1/big_query_read_client.go index 875a56a1c01..80291925d2a 100644 --- a/bigquery/storage/apiv1/big_query_read_client.go +++ b/bigquery/storage/apiv1/big_query_read_client.go @@ -135,7 +135,8 @@ func (c *BigQueryReadClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BigQueryReadClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -252,7 +253,8 @@ func NewBigQueryReadClient(ctx context.Context, opts ...option.ClientOption) (*B // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *bigQueryReadGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/storage/apiv1/big_query_read_client_example_test.go b/bigquery/storage/apiv1/big_query_read_client_example_test.go index cfd2ea888e3..9a09928b0b5 100644 --- a/bigquery/storage/apiv1/big_query_read_client_example_test.go +++ b/bigquery/storage/apiv1/big_query_read_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewBigQueryReadClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewBigQueryReadClient() { func ExampleBigQueryReadClient_CreateReadSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleBigQueryReadClient_CreateReadSession() { func ExampleBigQueryReadClient_SplitReadStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/storage/apiv1/big_query_write_client.go b/bigquery/storage/apiv1/big_query_write_client.go index 169a7aad499..bc73cc1b6dc 100644 --- a/bigquery/storage/apiv1/big_query_write_client.go +++ b/bigquery/storage/apiv1/big_query_write_client.go @@ -181,7 +181,8 @@ func (c *BigQueryWriteClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BigQueryWriteClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -336,7 +337,8 @@ func NewBigQueryWriteClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *bigQueryWriteGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/bigquery/storage/apiv1/big_query_write_client_example_test.go b/bigquery/storage/apiv1/big_query_write_client_example_test.go index 18c6f2679e8..afae0105b13 100644 --- a/bigquery/storage/apiv1/big_query_write_client_example_test.go +++ b/bigquery/storage/apiv1/big_query_write_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBigQueryWriteClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBigQueryWriteClient() { func ExampleBigQueryWriteClient_CreateWriteStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleBigQueryWriteClient_CreateWriteStream() { func ExampleBigQueryWriteClient_AppendRows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -93,6 +108,11 @@ func ExampleBigQueryWriteClient_AppendRows() { func ExampleBigQueryWriteClient_GetWriteStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -113,6 +133,11 @@ func ExampleBigQueryWriteClient_GetWriteStream() { func ExampleBigQueryWriteClient_FinalizeWriteStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleBigQueryWriteClient_FinalizeWriteStream() { func ExampleBigQueryWriteClient_BatchCommitWriteStreams() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleBigQueryWriteClient_BatchCommitWriteStreams() { func ExampleBigQueryWriteClient_FlushRows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/storage/apiv1/doc.go b/bigquery/storage/apiv1/doc.go index e7fde6da0ea..6c9ac808a64 100644 --- a/bigquery/storage/apiv1/doc.go +++ b/bigquery/storage/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storage.NewBigQueryReadClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storage.NewBigQueryReadClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/storage/apiv1beta1/big_query_storage_client.go b/bigquery/storage/apiv1beta1/big_query_storage_client.go index 2444f8e73be..03db7bf147c 100644 --- a/bigquery/storage/apiv1beta1/big_query_storage_client.go +++ b/bigquery/storage/apiv1beta1/big_query_storage_client.go @@ -228,7 +228,8 @@ func (c *BigQueryStorageClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BigQueryStorageClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -366,7 +367,8 @@ func NewBigQueryStorageClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *bigQueryStorageGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -452,7 +454,7 @@ func (c *bigQueryStorageRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *bigQueryStorageRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/bigquery/storage/apiv1beta1/big_query_storage_client_example_test.go b/bigquery/storage/apiv1beta1/big_query_storage_client_example_test.go index c6a63a213b4..4962f5c48f1 100644 --- a/bigquery/storage/apiv1beta1/big_query_storage_client_example_test.go +++ b/bigquery/storage/apiv1beta1/big_query_storage_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewBigQueryStorageClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewBigQueryStorageClient() { func ExampleNewBigQueryStorageRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewBigQueryStorageRESTClient() { func ExampleBigQueryStorageClient_CreateReadSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleBigQueryStorageClient_CreateReadSession() { func ExampleBigQueryStorageClient_BatchCreateReadSessionStreams() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +109,11 @@ func ExampleBigQueryStorageClient_BatchCreateReadSessionStreams() { func ExampleBigQueryStorageClient_FinalizeStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +132,11 @@ func ExampleBigQueryStorageClient_FinalizeStream() { func ExampleBigQueryStorageClient_SplitReadStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/storage/apiv1beta1/doc.go b/bigquery/storage/apiv1beta1/doc.go index acfa1a22906..bfa5b2f7d52 100644 --- a/bigquery/storage/apiv1beta1/doc.go +++ b/bigquery/storage/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storage.NewBigQueryStorageClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storage.NewBigQueryStorageClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigquery/storage/apiv1beta2/big_query_read_client.go b/bigquery/storage/apiv1beta2/big_query_read_client.go index 623e16d58fb..d3fc8f032da 100644 --- a/bigquery/storage/apiv1beta2/big_query_read_client.go +++ b/bigquery/storage/apiv1beta2/big_query_read_client.go @@ -181,7 +181,8 @@ func (c *BigQueryReadClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BigQueryReadClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -301,7 +302,8 @@ func NewBigQueryReadClient(ctx context.Context, opts ...option.ClientOption) (*B // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *bigQueryReadGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -390,7 +392,7 @@ func (c *bigQueryReadRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *bigQueryReadRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/bigquery/storage/apiv1beta2/big_query_read_client_example_test.go b/bigquery/storage/apiv1beta2/big_query_read_client_example_test.go index 533d7dce88a..6c704a549da 100644 --- a/bigquery/storage/apiv1beta2/big_query_read_client_example_test.go +++ b/bigquery/storage/apiv1beta2/big_query_read_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewBigQueryReadClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewBigQueryReadClient() { func ExampleNewBigQueryReadRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewBigQueryReadRESTClient() { func ExampleBigQueryReadClient_CreateReadSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleBigQueryReadClient_CreateReadSession() { func ExampleBigQueryReadClient_SplitReadStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/storage/apiv1beta2/big_query_write_client.go b/bigquery/storage/apiv1beta2/big_query_write_client.go index b3a131be1e6..5538897a2d5 100644 --- a/bigquery/storage/apiv1beta2/big_query_write_client.go +++ b/bigquery/storage/apiv1beta2/big_query_write_client.go @@ -257,7 +257,8 @@ func (c *BigQueryWriteClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BigQueryWriteClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -387,7 +388,8 @@ func NewBigQueryWriteClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *bigQueryWriteGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -473,7 +475,7 @@ func (c *bigQueryWriteRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *bigQueryWriteRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/bigquery/storage/apiv1beta2/big_query_write_client_example_test.go b/bigquery/storage/apiv1beta2/big_query_write_client_example_test.go index 73443fed5df..627b25b5764 100644 --- a/bigquery/storage/apiv1beta2/big_query_write_client_example_test.go +++ b/bigquery/storage/apiv1beta2/big_query_write_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBigQueryWriteClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBigQueryWriteClient() { func ExampleNewBigQueryWriteRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewBigQueryWriteRESTClient() { func ExampleBigQueryWriteClient_CreateWriteStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleBigQueryWriteClient_CreateWriteStream() { func ExampleBigQueryWriteClient_AppendRows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleBigQueryWriteClient_AppendRows() { func ExampleBigQueryWriteClient_GetWriteStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleBigQueryWriteClient_GetWriteStream() { func ExampleBigQueryWriteClient_FinalizeWriteStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleBigQueryWriteClient_FinalizeWriteStream() { func ExampleBigQueryWriteClient_BatchCommitWriteStreams() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. @@ -165,6 +200,11 @@ func ExampleBigQueryWriteClient_BatchCommitWriteStreams() { func ExampleBigQueryWriteClient_FlushRows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/bigquery/storage/apiv1beta2/doc.go b/bigquery/storage/apiv1beta2/doc.go index 0a2baf4a1cd..a8cf9465bcb 100644 --- a/bigquery/storage/apiv1beta2/doc.go +++ b/bigquery/storage/apiv1beta2/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storage.NewBigQueryReadClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storage.NewBigQueryReadClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/bigtable/go.mod b/bigtable/go.mod index b4c28d9b25e..e72d3f49464 100644 --- a/bigtable/go.mod +++ b/bigtable/go.mod @@ -9,7 +9,7 @@ require ( github.com/google/btree v1.1.2 github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220725144611-272f38e5d71b google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -25,12 +25,12 @@ require ( github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/google/uuid v1.1.2 // indirect + github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/bigtable/go.sum b/bigtable/go.sum index 45856f0b21a..02f52b08e70 100644 --- a/bigtable/go.sum +++ b/bigtable/go.sum @@ -170,8 +170,9 @@ github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -300,8 +301,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -321,8 +322,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -393,8 +396,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -508,8 +511,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -597,6 +600,7 @@ google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220725144611-272f38e5d71b h1:SfSkJugek6xm7lWywqth4r2iTrYLpD8lOj1nMIIhMNM= google.golang.org/genproto v0.0.0-20220725144611-272f38e5d71b/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= diff --git a/billing/apiv1/cloud_billing_client.go b/billing/apiv1/cloud_billing_client.go index 2241b73846c..059d0b3aa1d 100644 --- a/billing/apiv1/cloud_billing_client.go +++ b/billing/apiv1/cloud_billing_client.go @@ -224,7 +224,8 @@ func (c *CloudBillingClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudBillingClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -400,7 +401,8 @@ func NewCloudBillingClient(ctx context.Context, opts ...option.ClientOption) (*C // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudBillingGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/billing/apiv1/cloud_billing_client_example_test.go b/billing/apiv1/cloud_billing_client_example_test.go index 584155444c6..f510f4f0cdf 100644 --- a/billing/apiv1/cloud_billing_client_example_test.go +++ b/billing/apiv1/cloud_billing_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCloudBillingClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCloudBillingClient() { func ExampleCloudBillingClient_GetBillingAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleCloudBillingClient_GetBillingAccount() { func ExampleCloudBillingClient_ListBillingAccounts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleCloudBillingClient_ListBillingAccounts() { func ExampleCloudBillingClient_UpdateBillingAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleCloudBillingClient_UpdateBillingAccount() { func ExampleCloudBillingClient_CreateBillingAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleCloudBillingClient_CreateBillingAccount() { func ExampleCloudBillingClient_ListProjectBillingInfo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -151,6 +181,11 @@ func ExampleCloudBillingClient_ListProjectBillingInfo() { func ExampleCloudBillingClient_GetProjectBillingInfo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -171,6 +206,11 @@ func ExampleCloudBillingClient_GetProjectBillingInfo() { func ExampleCloudBillingClient_UpdateProjectBillingInfo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -191,6 +231,11 @@ func ExampleCloudBillingClient_UpdateProjectBillingInfo() { func ExampleCloudBillingClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -211,6 +256,11 @@ func ExampleCloudBillingClient_GetIamPolicy() { func ExampleCloudBillingClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +281,11 @@ func ExampleCloudBillingClient_SetIamPolicy() { func ExampleCloudBillingClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/billing/apiv1/cloud_catalog_client.go b/billing/apiv1/cloud_catalog_client.go index 6587b1db60c..35ac331a40e 100644 --- a/billing/apiv1/cloud_catalog_client.go +++ b/billing/apiv1/cloud_catalog_client.go @@ -100,7 +100,8 @@ func (c *CloudCatalogClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudCatalogClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -177,7 +178,8 @@ func NewCloudCatalogClient(ctx context.Context, opts ...option.ClientOption) (*C // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudCatalogGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/billing/apiv1/cloud_catalog_client_example_test.go b/billing/apiv1/cloud_catalog_client_example_test.go index 8b4b9c07859..73851d0c439 100644 --- a/billing/apiv1/cloud_catalog_client_example_test.go +++ b/billing/apiv1/cloud_catalog_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudCatalogClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudCatalogClient() { func ExampleCloudCatalogClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleCloudCatalogClient_ListServices() { func ExampleCloudCatalogClient_ListSkus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudCatalogClient(ctx) if err != nil { // TODO: Handle error. diff --git a/billing/apiv1/doc.go b/billing/apiv1/doc.go index e58e6172464..bfd876ed721 100644 --- a/billing/apiv1/doc.go +++ b/billing/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := billing.NewCloudBillingClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := billing.NewCloudBillingClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/billing/budgets/apiv1/budget_client.go b/billing/budgets/apiv1/budget_client.go index 9af4741a3a3..a1f09854a66 100644 --- a/billing/budgets/apiv1/budget_client.go +++ b/billing/budgets/apiv1/budget_client.go @@ -154,7 +154,8 @@ func (c *BudgetClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BudgetClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -261,7 +262,8 @@ func NewBudgetClient(ctx context.Context, opts ...option.ClientOption) (*BudgetC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *budgetGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/billing/budgets/apiv1/budget_client_example_test.go b/billing/budgets/apiv1/budget_client_example_test.go index dbe8b5453e9..b556cb6941e 100644 --- a/billing/budgets/apiv1/budget_client_example_test.go +++ b/billing/budgets/apiv1/budget_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBudgetClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBudgetClient() { func ExampleBudgetClient_CreateBudget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleBudgetClient_CreateBudget() { func ExampleBudgetClient_UpdateBudget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleBudgetClient_UpdateBudget() { func ExampleBudgetClient_GetBudget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleBudgetClient_GetBudget() { func ExampleBudgetClient_ListBudgets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleBudgetClient_ListBudgets() { func ExampleBudgetClient_DeleteBudget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/billing/budgets/apiv1/doc.go b/billing/budgets/apiv1/doc.go index b14c3d57cae..fcbeab8eb6f 100644 --- a/billing/budgets/apiv1/doc.go +++ b/billing/budgets/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := budgets.NewBudgetClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := budgets.NewBudgetClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/billing/budgets/apiv1beta1/budget_client.go b/billing/budgets/apiv1beta1/budget_client.go index 788049369d6..155f88cfad2 100644 --- a/billing/budgets/apiv1beta1/budget_client.go +++ b/billing/budgets/apiv1beta1/budget_client.go @@ -154,7 +154,8 @@ func (c *BudgetClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BudgetClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -261,7 +262,8 @@ func NewBudgetClient(ctx context.Context, opts ...option.ClientOption) (*BudgetC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *budgetGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/billing/budgets/apiv1beta1/budget_client_example_test.go b/billing/budgets/apiv1beta1/budget_client_example_test.go index f4ddaa18c42..43067786bd1 100644 --- a/billing/budgets/apiv1beta1/budget_client_example_test.go +++ b/billing/budgets/apiv1beta1/budget_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBudgetClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBudgetClient() { func ExampleBudgetClient_CreateBudget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleBudgetClient_CreateBudget() { func ExampleBudgetClient_UpdateBudget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleBudgetClient_UpdateBudget() { func ExampleBudgetClient_GetBudget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleBudgetClient_GetBudget() { func ExampleBudgetClient_ListBudgets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleBudgetClient_ListBudgets() { func ExampleBudgetClient_DeleteBudget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/billing/budgets/apiv1beta1/doc.go b/billing/budgets/apiv1beta1/doc.go index 095effa2dd7..82a20d3e3bb 100644 --- a/billing/budgets/apiv1beta1/doc.go +++ b/billing/budgets/apiv1beta1/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := budgets.NewBudgetClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := budgets.NewBudgetClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/billing/go.mod b/billing/go.mod index 65c54f00be7..4c5f86ced95 100644 --- a/billing/go.mod +++ b/billing/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/billing/go.sum b/billing/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/billing/go.sum +++ b/billing/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/binaryauthorization/apiv1/binauthz_management_client.go b/binaryauthorization/apiv1/binauthz_management_client.go index 2ba4fb79a80..0dfb3374577 100644 --- a/binaryauthorization/apiv1/binauthz_management_client.go +++ b/binaryauthorization/apiv1/binauthz_management_client.go @@ -188,7 +188,8 @@ func (c *BinauthzManagementClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BinauthzManagementClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -312,7 +313,8 @@ func NewBinauthzManagementClient(ctx context.Context, opts ...option.ClientOptio // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *binauthzManagementGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/binaryauthorization/apiv1/binauthz_management_client_example_test.go b/binaryauthorization/apiv1/binauthz_management_client_example_test.go index 4afd3e0446a..c53ffd1ea38 100644 --- a/binaryauthorization/apiv1/binauthz_management_client_example_test.go +++ b/binaryauthorization/apiv1/binauthz_management_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBinauthzManagementClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBinauthzManagementClient() { func ExampleBinauthzManagementClient_GetPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleBinauthzManagementClient_GetPolicy() { func ExampleBinauthzManagementClient_UpdatePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleBinauthzManagementClient_UpdatePolicy() { func ExampleBinauthzManagementClient_CreateAttestor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleBinauthzManagementClient_CreateAttestor() { func ExampleBinauthzManagementClient_GetAttestor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleBinauthzManagementClient_GetAttestor() { func ExampleBinauthzManagementClient_UpdateAttestor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleBinauthzManagementClient_UpdateAttestor() { func ExampleBinauthzManagementClient_ListAttestors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleBinauthzManagementClient_ListAttestors() { func ExampleBinauthzManagementClient_DeleteAttestor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/binaryauthorization/apiv1/doc.go b/binaryauthorization/apiv1/doc.go index 42ea8ad39d9..4a2f3b41607 100644 --- a/binaryauthorization/apiv1/doc.go +++ b/binaryauthorization/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := binaryauthorization.NewBinauthzManagementClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := binaryauthorization.NewBinauthzManagementClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/binaryauthorization/apiv1/system_policy_client.go b/binaryauthorization/apiv1/system_policy_client.go index 776c76d50dc..767d2bce76b 100644 --- a/binaryauthorization/apiv1/system_policy_client.go +++ b/binaryauthorization/apiv1/system_policy_client.go @@ -93,7 +93,8 @@ func (c *SystemPolicyClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SystemPolicyClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -163,7 +164,8 @@ func NewSystemPolicyClient(ctx context.Context, opts ...option.ClientOption) (*S // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *systemPolicyGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/binaryauthorization/apiv1/system_policy_client_example_test.go b/binaryauthorization/apiv1/system_policy_client_example_test.go index d81d489cc2e..c3dbd442172 100644 --- a/binaryauthorization/apiv1/system_policy_client_example_test.go +++ b/binaryauthorization/apiv1/system_policy_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewSystemPolicyClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewSystemPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewSystemPolicyClient() { func ExampleSystemPolicyClient_GetSystemPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewSystemPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/binaryauthorization/apiv1/validation_helper_client.go b/binaryauthorization/apiv1/validation_helper_client.go index 8ee1c7a6410..d170093df39 100644 --- a/binaryauthorization/apiv1/validation_helper_client.go +++ b/binaryauthorization/apiv1/validation_helper_client.go @@ -93,7 +93,8 @@ func (c *ValidationHelperClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ValidationHelperClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -164,7 +165,8 @@ func NewValidationHelperClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *validationHelperGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/binaryauthorization/apiv1/validation_helper_client_example_test.go b/binaryauthorization/apiv1/validation_helper_client_example_test.go index 18fa485f9ad..ec7b5143c6f 100644 --- a/binaryauthorization/apiv1/validation_helper_client_example_test.go +++ b/binaryauthorization/apiv1/validation_helper_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewValidationHelperClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewValidationHelperClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewValidationHelperClient() { func ExampleValidationHelperClient_ValidateAttestationOccurrence() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewValidationHelperClient(ctx) if err != nil { // TODO: Handle error. diff --git a/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client.go b/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client.go index 2913e569d7c..221712fa4af 100644 --- a/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client.go +++ b/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client.go @@ -266,7 +266,8 @@ func (c *BinauthzManagementServiceV1Beta1Client) setGoogleClientInfo(keyval ...s // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BinauthzManagementServiceV1Beta1Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -390,7 +391,8 @@ func NewBinauthzManagementServiceV1Beta1Client(ctx context.Context, opts ...opti // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *binauthzManagementServiceV1Beta1GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -481,7 +483,7 @@ func (c *binauthzManagementServiceV1Beta1RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *binauthzManagementServiceV1Beta1RESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client_example_test.go b/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client_example_test.go index 46261ef105d..31e36e2351f 100644 --- a/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client_example_test.go +++ b/binaryauthorization/apiv1beta1/binauthz_management_service_v1_beta1_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBinauthzManagementServiceV1Beta1Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBinauthzManagementServiceV1Beta1Client() { func ExampleNewBinauthzManagementServiceV1Beta1RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewBinauthzManagementServiceV1Beta1RESTClient() { func ExampleBinauthzManagementServiceV1Beta1Client_GetPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleBinauthzManagementServiceV1Beta1Client_GetPolicy() { func ExampleBinauthzManagementServiceV1Beta1Client_UpdatePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +110,11 @@ func ExampleBinauthzManagementServiceV1Beta1Client_UpdatePolicy() { func ExampleBinauthzManagementServiceV1Beta1Client_CreateAttestor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +135,11 @@ func ExampleBinauthzManagementServiceV1Beta1Client_CreateAttestor() { func ExampleBinauthzManagementServiceV1Beta1Client_GetAttestor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +160,11 @@ func ExampleBinauthzManagementServiceV1Beta1Client_GetAttestor() { func ExampleBinauthzManagementServiceV1Beta1Client_UpdateAttestor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +185,11 @@ func ExampleBinauthzManagementServiceV1Beta1Client_UpdateAttestor() { func ExampleBinauthzManagementServiceV1Beta1Client_ListAttestors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleBinauthzManagementServiceV1Beta1Client_ListAttestors() { func ExampleBinauthzManagementServiceV1Beta1Client_DeleteAttestor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/binaryauthorization/apiv1beta1/doc.go b/binaryauthorization/apiv1beta1/doc.go index 745ea98fd23..d3b54746691 100644 --- a/binaryauthorization/apiv1beta1/doc.go +++ b/binaryauthorization/apiv1beta1/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. diff --git a/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client.go b/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client.go index 0bd5c2cec12..8f43a27e031 100644 --- a/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client.go +++ b/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client.go @@ -104,7 +104,8 @@ func (c *SystemPolicyV1Beta1Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SystemPolicyV1Beta1Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -174,7 +175,8 @@ func NewSystemPolicyV1Beta1Client(ctx context.Context, opts ...option.ClientOpti // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *systemPolicyV1Beta1GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -258,7 +260,7 @@ func (c *systemPolicyV1Beta1RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *systemPolicyV1Beta1RESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client_example_test.go b/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client_example_test.go index 6d5b59a59db..1c6c0606bd8 100644 --- a/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client_example_test.go +++ b/binaryauthorization/apiv1beta1/system_policy_v1_beta1_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewSystemPolicyV1Beta1Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewSystemPolicyV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewSystemPolicyV1Beta1Client() { func ExampleNewSystemPolicyV1Beta1RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewSystemPolicyV1Beta1RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewSystemPolicyV1Beta1RESTClient() { func ExampleSystemPolicyV1Beta1Client_GetSystemPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewSystemPolicyV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/binaryauthorization/go.mod b/binaryauthorization/go.mod index 6373cb3cac5..08ab5d5d6fd 100644 --- a/binaryauthorization/go.mod +++ b/binaryauthorization/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/binaryauthorization/go.sum b/binaryauthorization/go.sum index 49839a4e79e..da7f573121c 100644 --- a/binaryauthorization/go.sum +++ b/binaryauthorization/go.sum @@ -311,8 +311,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -497,8 +498,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/certificatemanager/apiv1/certificate_manager_client.go b/certificatemanager/apiv1/certificate_manager_client.go index e96dee7bc98..095af9ebe0d 100644 --- a/certificatemanager/apiv1/certificate_manager_client.go +++ b/certificatemanager/apiv1/certificate_manager_client.go @@ -482,7 +482,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -802,7 +803,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/certificatemanager/apiv1/certificate_manager_client_example_test.go b/certificatemanager/apiv1/certificate_manager_client_example_test.go index 6ce5a73d2cc..6b0d066196d 100644 --- a/certificatemanager/apiv1/certificate_manager_client_example_test.go +++ b/certificatemanager/apiv1/certificate_manager_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewClient() { func ExampleClient_ListCertificates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleClient_ListCertificates() { func ExampleClient_GetCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleClient_GetCertificate() { func ExampleClient_CreateCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleClient_CreateCertificate() { func ExampleClient_UpdateCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleClient_UpdateCertificate() { func ExampleClient_DeleteCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleClient_DeleteCertificate() { func ExampleClient_ListCertificateMaps() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -185,6 +220,11 @@ func ExampleClient_ListCertificateMaps() { func ExampleClient_GetCertificateMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleClient_GetCertificateMap() { func ExampleClient_CreateCertificateMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -230,6 +275,11 @@ func ExampleClient_CreateCertificateMap() { func ExampleClient_UpdateCertificateMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +305,11 @@ func ExampleClient_UpdateCertificateMap() { func ExampleClient_DeleteCertificateMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +333,11 @@ func ExampleClient_DeleteCertificateMap() { func ExampleClient_ListCertificateMapEntries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -304,6 +364,11 @@ func ExampleClient_ListCertificateMapEntries() { func ExampleClient_GetCertificateMapEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -324,6 +389,11 @@ func ExampleClient_GetCertificateMapEntry() { func ExampleClient_CreateCertificateMapEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +419,11 @@ func ExampleClient_CreateCertificateMapEntry() { func ExampleClient_UpdateCertificateMapEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -374,6 +449,11 @@ func ExampleClient_UpdateCertificateMapEntry() { func ExampleClient_DeleteCertificateMapEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -397,6 +477,11 @@ func ExampleClient_DeleteCertificateMapEntry() { func ExampleClient_ListDnsAuthorizations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -423,6 +508,11 @@ func ExampleClient_ListDnsAuthorizations() { func ExampleClient_GetDnsAuthorization() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +533,11 @@ func ExampleClient_GetDnsAuthorization() { func ExampleClient_CreateDnsAuthorization() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -468,6 +563,11 @@ func ExampleClient_CreateDnsAuthorization() { func ExampleClient_UpdateDnsAuthorization() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -493,6 +593,11 @@ func ExampleClient_UpdateDnsAuthorization() { func ExampleClient_DeleteDnsAuthorization() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -516,6 +621,11 @@ func ExampleClient_DeleteDnsAuthorization() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -536,6 +646,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -562,6 +677,11 @@ func ExampleClient_ListLocations() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -580,6 +700,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -598,6 +723,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -618,6 +748,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/certificatemanager/apiv1/doc.go b/certificatemanager/apiv1/doc.go index 62e3ab709c8..31b306b4847 100644 --- a/certificatemanager/apiv1/doc.go +++ b/certificatemanager/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := certificatemanager.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := certificatemanager.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/certificatemanager/go.mod b/certificatemanager/go.mod index e6f9ddfc45a..ef8ddadd8c4 100644 --- a/certificatemanager/go.mod +++ b/certificatemanager/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.86.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220707144311-dc4cdde2ef63 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/certificatemanager/go.sum b/certificatemanager/go.sum index 0a0e37393ad..57d64297e19 100644 --- a/certificatemanager/go.sum +++ b/certificatemanager/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.86.0 h1:ZAnyOHQFIuWso1BodVfSaRyffD74T9ERGFa3k1fNk/U= -google.golang.org/api v0.86.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/channel/apiv1/cloud_channel_client.go b/channel/apiv1/cloud_channel_client.go index 6b55452f0d7..7aa5e472dcc 100644 --- a/channel/apiv1/cloud_channel_client.go +++ b/channel/apiv1/cloud_channel_client.go @@ -622,7 +622,8 @@ func (c *CloudChannelClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudChannelClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -1988,7 +1989,8 @@ func NewCloudChannelClient(ctx context.Context, opts ...option.ClientOption) (*C // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudChannelGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/channel/apiv1/cloud_channel_client_example_test.go b/channel/apiv1/cloud_channel_client_example_test.go index cf43025ebb7..5131b7abf0a 100644 --- a/channel/apiv1/cloud_channel_client_example_test.go +++ b/channel/apiv1/cloud_channel_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCloudChannelClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCloudChannelClient() { func ExampleCloudChannelClient_ListCustomers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleCloudChannelClient_ListCustomers() { func ExampleCloudChannelClient_GetCustomer() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleCloudChannelClient_GetCustomer() { func ExampleCloudChannelClient_CheckCloudIdentityAccountsExist() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleCloudChannelClient_CheckCloudIdentityAccountsExist() { func ExampleCloudChannelClient_CreateCustomer() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleCloudChannelClient_CreateCustomer() { func ExampleCloudChannelClient_UpdateCustomer() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleCloudChannelClient_UpdateCustomer() { func ExampleCloudChannelClient_DeleteCustomer() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleCloudChannelClient_DeleteCustomer() { func ExampleCloudChannelClient_ImportCustomer() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleCloudChannelClient_ImportCustomer() { func ExampleCloudChannelClient_ProvisionCloudIdentity() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleCloudChannelClient_ProvisionCloudIdentity() { func ExampleCloudChannelClient_ListEntitlements() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +284,11 @@ func ExampleCloudChannelClient_ListEntitlements() { func ExampleCloudChannelClient_ListTransferableSkus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -260,6 +315,11 @@ func ExampleCloudChannelClient_ListTransferableSkus() { func ExampleCloudChannelClient_ListTransferableOffers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +346,11 @@ func ExampleCloudChannelClient_ListTransferableOffers() { func ExampleCloudChannelClient_GetEntitlement() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +371,11 @@ func ExampleCloudChannelClient_GetEntitlement() { func ExampleCloudChannelClient_CreateEntitlement() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -331,6 +401,11 @@ func ExampleCloudChannelClient_CreateEntitlement() { func ExampleCloudChannelClient_ChangeParameters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -356,6 +431,11 @@ func ExampleCloudChannelClient_ChangeParameters() { func ExampleCloudChannelClient_ChangeRenewalSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -381,6 +461,11 @@ func ExampleCloudChannelClient_ChangeRenewalSettings() { func ExampleCloudChannelClient_ChangeOffer() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -406,6 +491,11 @@ func ExampleCloudChannelClient_ChangeOffer() { func ExampleCloudChannelClient_StartPaidService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -431,6 +521,11 @@ func ExampleCloudChannelClient_StartPaidService() { func ExampleCloudChannelClient_SuspendEntitlement() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -456,6 +551,11 @@ func ExampleCloudChannelClient_SuspendEntitlement() { func ExampleCloudChannelClient_CancelEntitlement() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -479,6 +579,11 @@ func ExampleCloudChannelClient_CancelEntitlement() { func ExampleCloudChannelClient_ActivateEntitlement() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -504,6 +609,11 @@ func ExampleCloudChannelClient_ActivateEntitlement() { func ExampleCloudChannelClient_TransferEntitlements() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -529,6 +639,11 @@ func ExampleCloudChannelClient_TransferEntitlements() { func ExampleCloudChannelClient_TransferEntitlementsToGoogle() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -552,6 +667,11 @@ func ExampleCloudChannelClient_TransferEntitlementsToGoogle() { func ExampleCloudChannelClient_ListChannelPartnerLinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -578,6 +698,11 @@ func ExampleCloudChannelClient_ListChannelPartnerLinks() { func ExampleCloudChannelClient_GetChannelPartnerLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -598,6 +723,11 @@ func ExampleCloudChannelClient_GetChannelPartnerLink() { func ExampleCloudChannelClient_CreateChannelPartnerLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -618,6 +748,11 @@ func ExampleCloudChannelClient_CreateChannelPartnerLink() { func ExampleCloudChannelClient_UpdateChannelPartnerLink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -638,6 +773,11 @@ func ExampleCloudChannelClient_UpdateChannelPartnerLink() { func ExampleCloudChannelClient_GetCustomerRepricingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -658,6 +798,11 @@ func ExampleCloudChannelClient_GetCustomerRepricingConfig() { func ExampleCloudChannelClient_ListCustomerRepricingConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -684,6 +829,11 @@ func ExampleCloudChannelClient_ListCustomerRepricingConfigs() { func ExampleCloudChannelClient_CreateCustomerRepricingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -704,6 +854,11 @@ func ExampleCloudChannelClient_CreateCustomerRepricingConfig() { func ExampleCloudChannelClient_UpdateCustomerRepricingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -724,6 +879,11 @@ func ExampleCloudChannelClient_UpdateCustomerRepricingConfig() { func ExampleCloudChannelClient_DeleteCustomerRepricingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -742,6 +902,11 @@ func ExampleCloudChannelClient_DeleteCustomerRepricingConfig() { func ExampleCloudChannelClient_GetChannelPartnerRepricingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -762,6 +927,11 @@ func ExampleCloudChannelClient_GetChannelPartnerRepricingConfig() { func ExampleCloudChannelClient_ListChannelPartnerRepricingConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -788,6 +958,11 @@ func ExampleCloudChannelClient_ListChannelPartnerRepricingConfigs() { func ExampleCloudChannelClient_CreateChannelPartnerRepricingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -808,6 +983,11 @@ func ExampleCloudChannelClient_CreateChannelPartnerRepricingConfig() { func ExampleCloudChannelClient_UpdateChannelPartnerRepricingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -828,6 +1008,11 @@ func ExampleCloudChannelClient_UpdateChannelPartnerRepricingConfig() { func ExampleCloudChannelClient_DeleteChannelPartnerRepricingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -846,6 +1031,11 @@ func ExampleCloudChannelClient_DeleteChannelPartnerRepricingConfig() { func ExampleCloudChannelClient_LookupOffer() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -866,6 +1056,11 @@ func ExampleCloudChannelClient_LookupOffer() { func ExampleCloudChannelClient_ListProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -892,6 +1087,11 @@ func ExampleCloudChannelClient_ListProducts() { func ExampleCloudChannelClient_ListSkus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -918,6 +1118,11 @@ func ExampleCloudChannelClient_ListSkus() { func ExampleCloudChannelClient_ListOffers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -944,6 +1149,11 @@ func ExampleCloudChannelClient_ListOffers() { func ExampleCloudChannelClient_ListPurchasableSkus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -970,6 +1180,11 @@ func ExampleCloudChannelClient_ListPurchasableSkus() { func ExampleCloudChannelClient_ListPurchasableOffers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -996,6 +1211,11 @@ func ExampleCloudChannelClient_ListPurchasableOffers() { func ExampleCloudChannelClient_RegisterSubscriber() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -1016,6 +1236,11 @@ func ExampleCloudChannelClient_RegisterSubscriber() { func ExampleCloudChannelClient_UnregisterSubscriber() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -1036,6 +1261,11 @@ func ExampleCloudChannelClient_UnregisterSubscriber() { func ExampleCloudChannelClient_ListSubscribers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -1062,6 +1292,11 @@ func ExampleCloudChannelClient_ListSubscribers() { func ExampleCloudChannelClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -1080,6 +1315,11 @@ func ExampleCloudChannelClient_CancelOperation() { func ExampleCloudChannelClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -1098,6 +1338,11 @@ func ExampleCloudChannelClient_DeleteOperation() { func ExampleCloudChannelClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -1118,6 +1363,11 @@ func ExampleCloudChannelClient_GetOperation() { func ExampleCloudChannelClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/channel/apiv1/doc.go b/channel/apiv1/doc.go index 158f05900d0..5728f795057 100644 --- a/channel/apiv1/doc.go +++ b/channel/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := channel.NewCloudChannelClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := channel.NewCloudChannelClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/channel/go.mod b/channel/go.mod index 2c8dbec3898..23ec36681ab 100644 --- a/channel/go.mod +++ b/channel/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/channel/go.sum b/channel/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/channel/go.sum +++ b/channel/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/cloudbuild/apiv1/v2/cloud_build_client.go b/cloudbuild/apiv1/v2/cloud_build_client.go index 870537e5c7c..2cc46aad4e1 100644 --- a/cloudbuild/apiv1/v2/cloud_build_client.go +++ b/cloudbuild/apiv1/v2/cloud_build_client.go @@ -247,7 +247,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -521,7 +522,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/cloudbuild/apiv1/v2/cloud_build_client_example_test.go b/cloudbuild/apiv1/v2/cloud_build_client_example_test.go index 38811b28a46..9b289626472 100644 --- a/cloudbuild/apiv1/v2/cloud_build_client_example_test.go +++ b/cloudbuild/apiv1/v2/cloud_build_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateBuild() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleClient_CreateBuild() { func ExampleClient_GetBuild() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleClient_GetBuild() { func ExampleClient_ListBuilds() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_ListBuilds() { func ExampleClient_CancelBuild() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleClient_CancelBuild() { func ExampleClient_RetryBuild() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +184,11 @@ func ExampleClient_RetryBuild() { func ExampleClient_ApproveBuild() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleClient_ApproveBuild() { func ExampleClient_CreateBuildTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleClient_CreateBuildTrigger() { func ExampleClient_GetBuildTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleClient_GetBuildTrigger() { func ExampleClient_ListBuildTriggers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleClient_ListBuildTriggers() { func ExampleClient_DeleteBuildTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +318,11 @@ func ExampleClient_DeleteBuildTrigger() { func ExampleClient_UpdateBuildTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -283,6 +343,11 @@ func ExampleClient_UpdateBuildTrigger() { func ExampleClient_RunBuildTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -308,6 +373,11 @@ func ExampleClient_RunBuildTrigger() { func ExampleClient_ReceiveTriggerWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -328,6 +398,11 @@ func ExampleClient_ReceiveTriggerWebhook() { func ExampleClient_CreateWorkerPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -353,6 +428,11 @@ func ExampleClient_CreateWorkerPool() { func ExampleClient_GetWorkerPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -373,6 +453,11 @@ func ExampleClient_GetWorkerPool() { func ExampleClient_DeleteWorkerPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -396,6 +481,11 @@ func ExampleClient_DeleteWorkerPool() { func ExampleClient_UpdateWorkerPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -421,6 +511,11 @@ func ExampleClient_UpdateWorkerPool() { func ExampleClient_ListWorkerPools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/cloudbuild/apiv1/v2/doc.go b/cloudbuild/apiv1/v2/doc.go index 73483a39f0b..86467ea0d7a 100644 --- a/cloudbuild/apiv1/v2/doc.go +++ b/cloudbuild/apiv1/v2/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cloudbuild.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cloudbuild.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/cloudbuild/go.mod b/cloudbuild/go.mod index 59c801d9674..d5c0da1fec7 100644 --- a/cloudbuild/go.mod +++ b/cloudbuild/go.mod @@ -6,8 +6,8 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/cloudbuild/go.sum b/cloudbuild/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/cloudbuild/go.sum +++ b/cloudbuild/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/clouddms/apiv1/data_migration_client.go b/clouddms/apiv1/data_migration_client.go index 5831cfd0f13..56c8286c54f 100644 --- a/clouddms/apiv1/data_migration_client.go +++ b/clouddms/apiv1/data_migration_client.go @@ -164,7 +164,8 @@ func (c *DataMigrationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DataMigrationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -410,7 +411,8 @@ func NewDataMigrationClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *dataMigrationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/clouddms/apiv1/data_migration_client_example_test.go b/clouddms/apiv1/data_migration_client_example_test.go index 2f75802d76e..83d9be0fc8b 100644 --- a/clouddms/apiv1/data_migration_client_example_test.go +++ b/clouddms/apiv1/data_migration_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewDataMigrationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewDataMigrationClient() { func ExampleDataMigrationClient_ListMigrationJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleDataMigrationClient_ListMigrationJobs() { func ExampleDataMigrationClient_GetMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleDataMigrationClient_GetMigrationJob() { func ExampleDataMigrationClient_CreateMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleDataMigrationClient_CreateMigrationJob() { func ExampleDataMigrationClient_UpdateMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleDataMigrationClient_UpdateMigrationJob() { func ExampleDataMigrationClient_DeleteMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleDataMigrationClient_DeleteMigrationJob() { func ExampleDataMigrationClient_StartMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleDataMigrationClient_StartMigrationJob() { func ExampleDataMigrationClient_StopMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -207,6 +247,11 @@ func ExampleDataMigrationClient_StopMigrationJob() { func ExampleDataMigrationClient_ResumeMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +277,11 @@ func ExampleDataMigrationClient_ResumeMigrationJob() { func ExampleDataMigrationClient_PromoteMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -257,6 +307,11 @@ func ExampleDataMigrationClient_PromoteMigrationJob() { func ExampleDataMigrationClient_VerifyMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +337,11 @@ func ExampleDataMigrationClient_VerifyMigrationJob() { func ExampleDataMigrationClient_RestartMigrationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +367,11 @@ func ExampleDataMigrationClient_RestartMigrationJob() { func ExampleDataMigrationClient_GenerateSshScript() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -327,6 +392,11 @@ func ExampleDataMigrationClient_GenerateSshScript() { func ExampleDataMigrationClient_ListConnectionProfiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -353,6 +423,11 @@ func ExampleDataMigrationClient_ListConnectionProfiles() { func ExampleDataMigrationClient_GetConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -373,6 +448,11 @@ func ExampleDataMigrationClient_GetConnectionProfile() { func ExampleDataMigrationClient_CreateConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -398,6 +478,11 @@ func ExampleDataMigrationClient_CreateConnectionProfile() { func ExampleDataMigrationClient_UpdateConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. @@ -423,6 +508,11 @@ func ExampleDataMigrationClient_UpdateConnectionProfile() { func ExampleDataMigrationClient_DeleteConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/clouddms/apiv1/doc.go b/clouddms/apiv1/doc.go index ea07ab7c109..67249133cf9 100644 --- a/clouddms/apiv1/doc.go +++ b/clouddms/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := clouddms.NewDataMigrationClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := clouddms.NewDataMigrationClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/clouddms/go.mod b/clouddms/go.mod index d8b4d2c9de6..d8dae4fc61e 100644 --- a/clouddms/go.mod +++ b/clouddms/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/clouddms/go.sum b/clouddms/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/clouddms/go.sum +++ b/clouddms/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/cloudtasks/apiv2/cloud_tasks_client.go b/cloudtasks/apiv2/cloud_tasks_client.go index 448382002c8..01572862337 100644 --- a/cloudtasks/apiv2/cloud_tasks_client.go +++ b/cloudtasks/apiv2/cloud_tasks_client.go @@ -232,7 +232,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -503,7 +504,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/cloudtasks/apiv2/cloud_tasks_client_example_test.go b/cloudtasks/apiv2/cloud_tasks_client_example_test.go index 8d8e814ad64..c9a1a36580c 100644 --- a/cloudtasks/apiv2/cloud_tasks_client_example_test.go +++ b/cloudtasks/apiv2/cloud_tasks_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_ListQueues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_ListQueues() { func ExampleClient_GetQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleClient_GetQueue() { func ExampleClient_CreateQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleClient_CreateQueue() { func ExampleClient_UpdateQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleClient_UpdateQueue() { func ExampleClient_DeleteQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleClient_DeleteQueue() { func ExampleClient_PurgeQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleClient_PurgeQueue() { func ExampleClient_PauseQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleClient_PauseQueue() { func ExampleClient_ResumeQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleClient_ResumeQueue() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +298,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +323,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_ListTasks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +354,11 @@ func ExampleClient_ListTasks() { func ExampleClient_GetTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -309,6 +379,11 @@ func ExampleClient_GetTask() { func ExampleClient_CreateTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -329,6 +404,11 @@ func ExampleClient_CreateTask() { func ExampleClient_DeleteTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +427,11 @@ func ExampleClient_DeleteTask() { func ExampleClient_RunTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/cloudtasks/apiv2/doc.go b/cloudtasks/apiv2/doc.go index 6dc2c6182be..aa9b8ebae20 100644 --- a/cloudtasks/apiv2/doc.go +++ b/cloudtasks/apiv2/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cloudtasks.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cloudtasks.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/cloudtasks/apiv2beta2/cloud_tasks_client.go b/cloudtasks/apiv2beta2/cloud_tasks_client.go index 483cb2162df..41cd94ce0c3 100644 --- a/cloudtasks/apiv2beta2/cloud_tasks_client.go +++ b/cloudtasks/apiv2beta2/cloud_tasks_client.go @@ -355,7 +355,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -694,7 +695,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -779,7 +781,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1290,8 +1292,12 @@ func (c *restClient) ListQueues(ctx context.Context, req *taskspb.ListQueuesRequ if req.GetPageToken() != "" { params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) } - if req.GetReadMask().GetPaths() != nil { - params.Add("readMask.paths", fmt.Sprintf("%v", req.GetReadMask().GetPaths())) + if req.GetReadMask() != nil { + readMask, err := protojson.Marshal(req.GetReadMask()) + if err != nil { + return nil, "", err + } + params.Add("readMask", string(readMask)) } baseUrl.RawQuery = params.Encode() @@ -1361,8 +1367,12 @@ func (c *restClient) GetQueue(ctx context.Context, req *taskspb.GetQueueRequest, baseUrl.Path += fmt.Sprintf("/v2beta2/%v", req.GetName()) params := url.Values{} - if req.GetReadMask().GetPaths() != nil { - params.Add("readMask.paths", fmt.Sprintf("%v", req.GetReadMask().GetPaths())) + if req.GetReadMask() != nil { + readMask, err := protojson.Marshal(req.GetReadMask()) + if err != nil { + return nil, err + } + params.Add("readMask", string(readMask)) } baseUrl.RawQuery = params.Encode() @@ -1513,8 +1523,12 @@ func (c *restClient) UpdateQueue(ctx context.Context, req *taskspb.UpdateQueueRe baseUrl.Path += fmt.Sprintf("/v2beta2/%v", req.GetQueue().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/cloudtasks/apiv2beta2/cloud_tasks_client_example_test.go b/cloudtasks/apiv2beta2/cloud_tasks_client_example_test.go index eaf72bfe6b5..cc4ade605e1 100644 --- a/cloudtasks/apiv2beta2/cloud_tasks_client_example_test.go +++ b/cloudtasks/apiv2beta2/cloud_tasks_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListQueues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_ListQueues() { func ExampleClient_GetQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleClient_GetQueue() { func ExampleClient_CreateQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleClient_CreateQueue() { func ExampleClient_UpdateQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +167,11 @@ func ExampleClient_UpdateQueue() { func ExampleClient_DeleteQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +190,11 @@ func ExampleClient_DeleteQueue() { func ExampleClient_PurgeQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -175,6 +215,11 @@ func ExampleClient_PurgeQueue() { func ExampleClient_PauseQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -195,6 +240,11 @@ func ExampleClient_PauseQueue() { func ExampleClient_ResumeQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +265,11 @@ func ExampleClient_ResumeQueue() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -235,6 +290,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +315,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +340,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_ListTasks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +371,11 @@ func ExampleClient_ListTasks() { func ExampleClient_GetTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +396,11 @@ func ExampleClient_GetTask() { func ExampleClient_CreateTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +421,11 @@ func ExampleClient_CreateTask() { func ExampleClient_DeleteTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -359,6 +444,11 @@ func ExampleClient_DeleteTask() { func ExampleClient_LeaseTasks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -379,6 +469,11 @@ func ExampleClient_LeaseTasks() { func ExampleClient_AcknowledgeTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -397,6 +492,11 @@ func ExampleClient_AcknowledgeTask() { func ExampleClient_RenewLease() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -417,6 +517,11 @@ func ExampleClient_RenewLease() { func ExampleClient_CancelLease() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -437,6 +542,11 @@ func ExampleClient_CancelLease() { func ExampleClient_RunTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/cloudtasks/apiv2beta2/doc.go b/cloudtasks/apiv2beta2/doc.go index 6e4da137a42..81b7ccca38d 100644 --- a/cloudtasks/apiv2beta2/doc.go +++ b/cloudtasks/apiv2beta2/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cloudtasks.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cloudtasks.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/cloudtasks/apiv2beta3/cloud_tasks_client.go b/cloudtasks/apiv2beta3/cloud_tasks_client.go index 8bea31b5944..d000b2b804e 100644 --- a/cloudtasks/apiv2beta3/cloud_tasks_client.go +++ b/cloudtasks/apiv2beta3/cloud_tasks_client.go @@ -339,7 +339,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -610,7 +611,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -695,7 +697,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1122,8 +1124,12 @@ func (c *restClient) ListQueues(ctx context.Context, req *taskspb.ListQueuesRequ if req.GetPageToken() != "" { params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) } - if req.GetReadMask().GetPaths() != nil { - params.Add("readMask.paths", fmt.Sprintf("%v", req.GetReadMask().GetPaths())) + if req.GetReadMask() != nil { + readMask, err := protojson.Marshal(req.GetReadMask()) + if err != nil { + return nil, "", err + } + params.Add("readMask", string(readMask)) } baseUrl.RawQuery = params.Encode() @@ -1193,8 +1199,12 @@ func (c *restClient) GetQueue(ctx context.Context, req *taskspb.GetQueueRequest, baseUrl.Path += fmt.Sprintf("/v2beta3/%v", req.GetName()) params := url.Values{} - if req.GetReadMask().GetPaths() != nil { - params.Add("readMask.paths", fmt.Sprintf("%v", req.GetReadMask().GetPaths())) + if req.GetReadMask() != nil { + readMask, err := protojson.Marshal(req.GetReadMask()) + if err != nil { + return nil, err + } + params.Add("readMask", string(readMask)) } baseUrl.RawQuery = params.Encode() @@ -1345,8 +1355,12 @@ func (c *restClient) UpdateQueue(ctx context.Context, req *taskspb.UpdateQueueRe baseUrl.Path += fmt.Sprintf("/v2beta3/%v", req.GetQueue().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/cloudtasks/apiv2beta3/cloud_tasks_client_example_test.go b/cloudtasks/apiv2beta3/cloud_tasks_client_example_test.go index 7c5708adee5..ddd76650376 100644 --- a/cloudtasks/apiv2beta3/cloud_tasks_client_example_test.go +++ b/cloudtasks/apiv2beta3/cloud_tasks_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListQueues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_ListQueues() { func ExampleClient_GetQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleClient_GetQueue() { func ExampleClient_CreateQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleClient_CreateQueue() { func ExampleClient_UpdateQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +167,11 @@ func ExampleClient_UpdateQueue() { func ExampleClient_DeleteQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +190,11 @@ func ExampleClient_DeleteQueue() { func ExampleClient_PurgeQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -175,6 +215,11 @@ func ExampleClient_PurgeQueue() { func ExampleClient_PauseQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -195,6 +240,11 @@ func ExampleClient_PauseQueue() { func ExampleClient_ResumeQueue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +265,11 @@ func ExampleClient_ResumeQueue() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -235,6 +290,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +315,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +340,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_ListTasks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +371,11 @@ func ExampleClient_ListTasks() { func ExampleClient_GetTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +396,11 @@ func ExampleClient_GetTask() { func ExampleClient_CreateTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +421,11 @@ func ExampleClient_CreateTask() { func ExampleClient_DeleteTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -359,6 +444,11 @@ func ExampleClient_DeleteTask() { func ExampleClient_RunTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/cloudtasks/apiv2beta3/doc.go b/cloudtasks/apiv2beta3/doc.go index 5cb3c7d49e9..45c29f5fe5c 100644 --- a/cloudtasks/apiv2beta3/doc.go +++ b/cloudtasks/apiv2beta3/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cloudtasks.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cloudtasks.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/cloudtasks/go.mod b/cloudtasks/go.mod index b8bfded0ee3..3cce2943a97 100644 --- a/cloudtasks/go.mod +++ b/cloudtasks/go.mod @@ -3,10 +3,9 @@ module cloud.google.com/go/cloudtasks go 1.17 require ( - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -14,12 +13,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/cloudtasks/go.sum b/cloudtasks/go.sum index 543863e1315..b56eeb96012 100644 --- a/cloudtasks/go.sum +++ b/cloudtasks/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/compute/apiv1/accelerator_types_client.go b/compute/apiv1/accelerator_types_client.go index 708ed42e26d..23c62f827b2 100644 --- a/compute/apiv1/accelerator_types_client.go +++ b/compute/apiv1/accelerator_types_client.go @@ -96,7 +96,8 @@ func (c *AcceleratorTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AcceleratorTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -182,7 +183,7 @@ func (c *acceleratorTypesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *acceleratorTypesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/accelerator_types_client_example_test.go b/compute/apiv1/accelerator_types_client_example_test.go index b8b48b86fc4..d3d2194938d 100644 --- a/compute/apiv1/accelerator_types_client_example_test.go +++ b/compute/apiv1/accelerator_types_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAcceleratorTypesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAcceleratorTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAcceleratorTypesRESTClient() { func ExampleAcceleratorTypesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAcceleratorTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleAcceleratorTypesClient_AggregatedList() { func ExampleAcceleratorTypesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAcceleratorTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleAcceleratorTypesClient_Get() { func ExampleAcceleratorTypesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAcceleratorTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/addresses_client.go b/compute/apiv1/addresses_client.go index ccea254655d..7ebbf742241 100644 --- a/compute/apiv1/addresses_client.go +++ b/compute/apiv1/addresses_client.go @@ -101,7 +101,8 @@ func (c *AddressesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AddressesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -211,7 +212,7 @@ func (c *addressesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *addressesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/addresses_client_example_test.go b/compute/apiv1/addresses_client_example_test.go index e7d5083cac9..04b2edad98d 100644 --- a/compute/apiv1/addresses_client_example_test.go +++ b/compute/apiv1/addresses_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAddressesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAddressesRESTClient() { func ExampleAddressesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleAddressesClient_AggregatedList() { func ExampleAddressesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleAddressesClient_Delete() { func ExampleAddressesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleAddressesClient_Get() { func ExampleAddressesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleAddressesClient_Insert() { func ExampleAddressesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/autoscalers_client.go b/compute/apiv1/autoscalers_client.go index 3b4bb54f01f..d7154496a63 100644 --- a/compute/apiv1/autoscalers_client.go +++ b/compute/apiv1/autoscalers_client.go @@ -107,7 +107,8 @@ func (c *AutoscalersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AutoscalersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -227,7 +228,7 @@ func (c *autoscalersRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *autoscalersRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/autoscalers_client_example_test.go b/compute/apiv1/autoscalers_client_example_test.go index e299bd42125..c07a3cedbd2 100644 --- a/compute/apiv1/autoscalers_client_example_test.go +++ b/compute/apiv1/autoscalers_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAutoscalersRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAutoscalersRESTClient() { func ExampleAutoscalersClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleAutoscalersClient_AggregatedList() { func ExampleAutoscalersClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleAutoscalersClient_Delete() { func ExampleAutoscalersClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleAutoscalersClient_Get() { func ExampleAutoscalersClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleAutoscalersClient_Insert() { func ExampleAutoscalersClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleAutoscalersClient_List() { func ExampleAutoscalersClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleAutoscalersClient_Patch() { func ExampleAutoscalersClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/backend_buckets_client.go b/compute/apiv1/backend_buckets_client.go index 7f5c6f2d068..ab048164a95 100644 --- a/compute/apiv1/backend_buckets_client.go +++ b/compute/apiv1/backend_buckets_client.go @@ -112,7 +112,8 @@ func (c *BackendBucketsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BackendBucketsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -242,7 +243,7 @@ func (c *backendBucketsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *backendBucketsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/backend_buckets_client_example_test.go b/compute/apiv1/backend_buckets_client_example_test.go index 377840ea506..88d4c49bca0 100644 --- a/compute/apiv1/backend_buckets_client_example_test.go +++ b/compute/apiv1/backend_buckets_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBackendBucketsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBackendBucketsRESTClient() { func ExampleBackendBucketsClient_AddSignedUrlKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleBackendBucketsClient_AddSignedUrlKey() { func ExampleBackendBucketsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleBackendBucketsClient_Delete() { func ExampleBackendBucketsClient_DeleteSignedUrlKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleBackendBucketsClient_DeleteSignedUrlKey() { func ExampleBackendBucketsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleBackendBucketsClient_Get() { func ExampleBackendBucketsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleBackendBucketsClient_Insert() { func ExampleBackendBucketsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleBackendBucketsClient_List() { func ExampleBackendBucketsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleBackendBucketsClient_Patch() { func ExampleBackendBucketsClient_SetEdgeSecurityPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleBackendBucketsClient_SetEdgeSecurityPolicy() { func ExampleBackendBucketsClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/backend_services_client.go b/compute/apiv1/backend_services_client.go index 20cb60db6d2..20668e3fab6 100644 --- a/compute/apiv1/backend_services_client.go +++ b/compute/apiv1/backend_services_client.go @@ -122,7 +122,8 @@ func (c *BackendServicesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BackendServicesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -267,7 +268,7 @@ func (c *backendServicesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *backendServicesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/backend_services_client_example_test.go b/compute/apiv1/backend_services_client_example_test.go index 92818209ee2..1c7cf2913ef 100644 --- a/compute/apiv1/backend_services_client_example_test.go +++ b/compute/apiv1/backend_services_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBackendServicesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBackendServicesRESTClient() { func ExampleBackendServicesClient_AddSignedUrlKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleBackendServicesClient_AddSignedUrlKey() { func ExampleBackendServicesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleBackendServicesClient_AggregatedList() { func ExampleBackendServicesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleBackendServicesClient_Delete() { func ExampleBackendServicesClient_DeleteSignedUrlKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleBackendServicesClient_DeleteSignedUrlKey() { func ExampleBackendServicesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleBackendServicesClient_Get() { func ExampleBackendServicesClient_GetHealth() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleBackendServicesClient_GetHealth() { func ExampleBackendServicesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleBackendServicesClient_Insert() { func ExampleBackendServicesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleBackendServicesClient_List() { func ExampleBackendServicesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleBackendServicesClient_Patch() { func ExampleBackendServicesClient_SetEdgeSecurityPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleBackendServicesClient_SetEdgeSecurityPolicy() { func ExampleBackendServicesClient_SetSecurityPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -291,6 +351,11 @@ func ExampleBackendServicesClient_SetSecurityPolicy() { func ExampleBackendServicesClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/disk_types_client.go b/compute/apiv1/disk_types_client.go index a583fb1b1c7..cf2028c0557 100644 --- a/compute/apiv1/disk_types_client.go +++ b/compute/apiv1/disk_types_client.go @@ -94,7 +94,8 @@ func (c *DiskTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DiskTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -178,7 +179,7 @@ func (c *diskTypesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *diskTypesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/disk_types_client_example_test.go b/compute/apiv1/disk_types_client_example_test.go index 70fa28bc874..c488a7f356d 100644 --- a/compute/apiv1/disk_types_client_example_test.go +++ b/compute/apiv1/disk_types_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewDiskTypesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewDiskTypesRESTClient() { func ExampleDiskTypesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleDiskTypesClient_AggregatedList() { func ExampleDiskTypesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleDiskTypesClient_Get() { func ExampleDiskTypesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/disks_client.go b/compute/apiv1/disks_client.go index 19675e75bc4..dbe77434c4b 100644 --- a/compute/apiv1/disks_client.go +++ b/compute/apiv1/disks_client.go @@ -125,7 +125,8 @@ func (c *DisksClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DisksClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -275,7 +276,7 @@ func (c *disksRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *disksRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/disks_client_example_test.go b/compute/apiv1/disks_client_example_test.go index 03e7c2ffaf3..e2a23bd0871 100644 --- a/compute/apiv1/disks_client_example_test.go +++ b/compute/apiv1/disks_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewDisksRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewDisksRESTClient() { func ExampleDisksClient_AddResourcePolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleDisksClient_AddResourcePolicies() { func ExampleDisksClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleDisksClient_AggregatedList() { func ExampleDisksClient_CreateSnapshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleDisksClient_CreateSnapshot() { func ExampleDisksClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleDisksClient_Delete() { func ExampleDisksClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleDisksClient_Get() { func ExampleDisksClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleDisksClient_GetIamPolicy() { func ExampleDisksClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleDisksClient_Insert() { func ExampleDisksClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleDisksClient_List() { func ExampleDisksClient_RemoveResourcePolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleDisksClient_RemoveResourcePolicies() { func ExampleDisksClient_Resize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleDisksClient_Resize() { func ExampleDisksClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -288,6 +348,11 @@ func ExampleDisksClient_SetIamPolicy() { func ExampleDisksClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -311,6 +376,11 @@ func ExampleDisksClient_SetLabels() { func ExampleDisksClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/doc.go b/compute/apiv1/doc.go index 7d691972ba0..8cf1e892bfa 100644 --- a/compute/apiv1/doc.go +++ b/compute/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := compute.NewAcceleratorTypesClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := compute.NewAcceleratorTypesRESTClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/compute/apiv1/external_vpn_gateways_client.go b/compute/apiv1/external_vpn_gateways_client.go index c7cb9a52bca..f27f8cd267b 100644 --- a/compute/apiv1/external_vpn_gateways_client.go +++ b/compute/apiv1/external_vpn_gateways_client.go @@ -103,7 +103,8 @@ func (c *ExternalVpnGatewaysClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ExternalVpnGatewaysClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,7 @@ func (c *externalVpnGatewaysRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *externalVpnGatewaysRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/external_vpn_gateways_client_example_test.go b/compute/apiv1/external_vpn_gateways_client_example_test.go index 2eb14356dcb..d3586ae4ab8 100644 --- a/compute/apiv1/external_vpn_gateways_client_example_test.go +++ b/compute/apiv1/external_vpn_gateways_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewExternalVpnGatewaysRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewExternalVpnGatewaysRESTClient() { func ExampleExternalVpnGatewaysClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleExternalVpnGatewaysClient_Delete() { func ExampleExternalVpnGatewaysClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleExternalVpnGatewaysClient_Get() { func ExampleExternalVpnGatewaysClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleExternalVpnGatewaysClient_Insert() { func ExampleExternalVpnGatewaysClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleExternalVpnGatewaysClient_List() { func ExampleExternalVpnGatewaysClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleExternalVpnGatewaysClient_SetLabels() { func ExampleExternalVpnGatewaysClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/firewall_policies_client.go b/compute/apiv1/firewall_policies_client.go index 9e548c468ca..519a6f43b2c 100644 --- a/compute/apiv1/firewall_policies_client.go +++ b/compute/apiv1/firewall_policies_client.go @@ -139,7 +139,8 @@ func (c *FirewallPoliciesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FirewallPoliciesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -314,7 +315,7 @@ func (c *firewallPoliciesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *firewallPoliciesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/firewall_policies_client_example_test.go b/compute/apiv1/firewall_policies_client_example_test.go index b6dd3ece8ff..397965c1c59 100644 --- a/compute/apiv1/firewall_policies_client_example_test.go +++ b/compute/apiv1/firewall_policies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewFirewallPoliciesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewFirewallPoliciesRESTClient() { func ExampleFirewallPoliciesClient_AddAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleFirewallPoliciesClient_AddAssociation() { func ExampleFirewallPoliciesClient_AddRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleFirewallPoliciesClient_AddRule() { func ExampleFirewallPoliciesClient_CloneRules() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleFirewallPoliciesClient_CloneRules() { func ExampleFirewallPoliciesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleFirewallPoliciesClient_Delete() { func ExampleFirewallPoliciesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleFirewallPoliciesClient_Get() { func ExampleFirewallPoliciesClient_GetAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleFirewallPoliciesClient_GetAssociation() { func ExampleFirewallPoliciesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleFirewallPoliciesClient_GetIamPolicy() { func ExampleFirewallPoliciesClient_GetRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -210,6 +255,11 @@ func ExampleFirewallPoliciesClient_GetRule() { func ExampleFirewallPoliciesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -233,6 +283,11 @@ func ExampleFirewallPoliciesClient_Insert() { func ExampleFirewallPoliciesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -259,6 +314,11 @@ func ExampleFirewallPoliciesClient_List() { func ExampleFirewallPoliciesClient_ListAssociations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -279,6 +339,11 @@ func ExampleFirewallPoliciesClient_ListAssociations() { func ExampleFirewallPoliciesClient_Move() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleFirewallPoliciesClient_Move() { func ExampleFirewallPoliciesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -325,6 +395,11 @@ func ExampleFirewallPoliciesClient_Patch() { func ExampleFirewallPoliciesClient_PatchRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -348,6 +423,11 @@ func ExampleFirewallPoliciesClient_PatchRule() { func ExampleFirewallPoliciesClient_RemoveAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -371,6 +451,11 @@ func ExampleFirewallPoliciesClient_RemoveAssociation() { func ExampleFirewallPoliciesClient_RemoveRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -394,6 +479,11 @@ func ExampleFirewallPoliciesClient_RemoveRule() { func ExampleFirewallPoliciesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -414,6 +504,11 @@ func ExampleFirewallPoliciesClient_SetIamPolicy() { func ExampleFirewallPoliciesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/firewalls_client.go b/compute/apiv1/firewalls_client.go index b22e1640324..2856b5b9b20 100644 --- a/compute/apiv1/firewalls_client.go +++ b/compute/apiv1/firewalls_client.go @@ -103,7 +103,8 @@ func (c *FirewallsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FirewallsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,7 @@ func (c *firewallsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *firewallsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/firewalls_client_example_test.go b/compute/apiv1/firewalls_client_example_test.go index a0b53514acb..d880b0834ab 100644 --- a/compute/apiv1/firewalls_client_example_test.go +++ b/compute/apiv1/firewalls_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewFirewallsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewFirewallsRESTClient() { func ExampleFirewallsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleFirewallsClient_Delete() { func ExampleFirewallsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleFirewallsClient_Get() { func ExampleFirewallsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleFirewallsClient_Insert() { func ExampleFirewallsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleFirewallsClient_List() { func ExampleFirewallsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleFirewallsClient_Patch() { func ExampleFirewallsClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/forwarding_rules_client.go b/compute/apiv1/forwarding_rules_client.go index 0e0b52e8267..5eee1caf9b2 100644 --- a/compute/apiv1/forwarding_rules_client.go +++ b/compute/apiv1/forwarding_rules_client.go @@ -110,7 +110,8 @@ func (c *ForwardingRulesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ForwardingRulesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -235,7 +236,7 @@ func (c *forwardingRulesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *forwardingRulesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/forwarding_rules_client_example_test.go b/compute/apiv1/forwarding_rules_client_example_test.go index 7937a576062..53e0f5cd99f 100644 --- a/compute/apiv1/forwarding_rules_client_example_test.go +++ b/compute/apiv1/forwarding_rules_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewForwardingRulesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewForwardingRulesRESTClient() { func ExampleForwardingRulesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleForwardingRulesClient_AggregatedList() { func ExampleForwardingRulesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleForwardingRulesClient_Delete() { func ExampleForwardingRulesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleForwardingRulesClient_Get() { func ExampleForwardingRulesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleForwardingRulesClient_Insert() { func ExampleForwardingRulesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleForwardingRulesClient_List() { func ExampleForwardingRulesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleForwardingRulesClient_Patch() { func ExampleForwardingRulesClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleForwardingRulesClient_SetLabels() { func ExampleForwardingRulesClient_SetTarget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/global_addresses_client.go b/compute/apiv1/global_addresses_client.go index 2c2d5eb3941..5341627e754 100644 --- a/compute/apiv1/global_addresses_client.go +++ b/compute/apiv1/global_addresses_client.go @@ -97,7 +97,8 @@ func (c *GlobalAddressesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GlobalAddressesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -202,7 +203,7 @@ func (c *globalAddressesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *globalAddressesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/global_addresses_client_example_test.go b/compute/apiv1/global_addresses_client_example_test.go index 53b23f003e8..f36aecd5624 100644 --- a/compute/apiv1/global_addresses_client_example_test.go +++ b/compute/apiv1/global_addresses_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGlobalAddressesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGlobalAddressesRESTClient() { func ExampleGlobalAddressesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleGlobalAddressesClient_Delete() { func ExampleGlobalAddressesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleGlobalAddressesClient_Get() { func ExampleGlobalAddressesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleGlobalAddressesClient_Insert() { func ExampleGlobalAddressesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/global_forwarding_rules_client.go b/compute/apiv1/global_forwarding_rules_client.go index 3e41765fcf9..c888d517df1 100644 --- a/compute/apiv1/global_forwarding_rules_client.go +++ b/compute/apiv1/global_forwarding_rules_client.go @@ -106,7 +106,8 @@ func (c *GlobalForwardingRulesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GlobalForwardingRulesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -226,7 +227,7 @@ func (c *globalForwardingRulesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *globalForwardingRulesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/global_forwarding_rules_client_example_test.go b/compute/apiv1/global_forwarding_rules_client_example_test.go index 062142cffc7..8e9103936d6 100644 --- a/compute/apiv1/global_forwarding_rules_client_example_test.go +++ b/compute/apiv1/global_forwarding_rules_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGlobalForwardingRulesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGlobalForwardingRulesRESTClient() { func ExampleGlobalForwardingRulesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleGlobalForwardingRulesClient_Delete() { func ExampleGlobalForwardingRulesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleGlobalForwardingRulesClient_Get() { func ExampleGlobalForwardingRulesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleGlobalForwardingRulesClient_Insert() { func ExampleGlobalForwardingRulesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleGlobalForwardingRulesClient_List() { func ExampleGlobalForwardingRulesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleGlobalForwardingRulesClient_Patch() { func ExampleGlobalForwardingRulesClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleGlobalForwardingRulesClient_SetLabels() { func ExampleGlobalForwardingRulesClient_SetTarget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/global_network_endpoint_groups_client.go b/compute/apiv1/global_network_endpoint_groups_client.go index 21828b42b19..8cfd3e52f8c 100644 --- a/compute/apiv1/global_network_endpoint_groups_client.go +++ b/compute/apiv1/global_network_endpoint_groups_client.go @@ -106,7 +106,8 @@ func (c *GlobalNetworkEndpointGroupsClient) setGoogleClientInfo(keyval ...string // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GlobalNetworkEndpointGroupsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -226,7 +227,7 @@ func (c *globalNetworkEndpointGroupsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *globalNetworkEndpointGroupsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/global_network_endpoint_groups_client_example_test.go b/compute/apiv1/global_network_endpoint_groups_client_example_test.go index c1f1c3809ef..ddd9b769ddf 100644 --- a/compute/apiv1/global_network_endpoint_groups_client_example_test.go +++ b/compute/apiv1/global_network_endpoint_groups_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGlobalNetworkEndpointGroupsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGlobalNetworkEndpointGroupsRESTClient() { func ExampleGlobalNetworkEndpointGroupsClient_AttachNetworkEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleGlobalNetworkEndpointGroupsClient_AttachNetworkEndpoints() { func ExampleGlobalNetworkEndpointGroupsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGlobalNetworkEndpointGroupsClient_Delete() { func ExampleGlobalNetworkEndpointGroupsClient_DetachNetworkEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleGlobalNetworkEndpointGroupsClient_DetachNetworkEndpoints() { func ExampleGlobalNetworkEndpointGroupsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleGlobalNetworkEndpointGroupsClient_Get() { func ExampleGlobalNetworkEndpointGroupsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleGlobalNetworkEndpointGroupsClient_Insert() { func ExampleGlobalNetworkEndpointGroupsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleGlobalNetworkEndpointGroupsClient_List() { func ExampleGlobalNetworkEndpointGroupsClient_ListNetworkEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/global_operations_client.go b/compute/apiv1/global_operations_client.go index c3e9898c7bf..ab1757e598e 100644 --- a/compute/apiv1/global_operations_client.go +++ b/compute/apiv1/global_operations_client.go @@ -100,7 +100,8 @@ func (c *GlobalOperationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GlobalOperationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -194,7 +195,7 @@ func (c *globalOperationsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *globalOperationsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/global_operations_client_example_test.go b/compute/apiv1/global_operations_client_example_test.go index b02d48c0a9b..a1546ef0058 100644 --- a/compute/apiv1/global_operations_client_example_test.go +++ b/compute/apiv1/global_operations_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGlobalOperationsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGlobalOperationsRESTClient() { func ExampleGlobalOperationsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleGlobalOperationsClient_AggregatedList() { func ExampleGlobalOperationsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGlobalOperationsClient_Delete() { func ExampleGlobalOperationsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleGlobalOperationsClient_Get() { func ExampleGlobalOperationsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleGlobalOperationsClient_List() { func ExampleGlobalOperationsClient_Wait() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/global_organization_operations_client.go b/compute/apiv1/global_organization_operations_client.go index a5d3fee98c7..351c4bf6cd9 100644 --- a/compute/apiv1/global_organization_operations_client.go +++ b/compute/apiv1/global_organization_operations_client.go @@ -93,7 +93,8 @@ func (c *GlobalOrganizationOperationsClient) setGoogleClientInfo(keyval ...strin // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GlobalOrganizationOperationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -177,7 +178,7 @@ func (c *globalOrganizationOperationsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *globalOrganizationOperationsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/global_organization_operations_client_example_test.go b/compute/apiv1/global_organization_operations_client_example_test.go index 6dc645792b6..9d62310e57f 100644 --- a/compute/apiv1/global_organization_operations_client_example_test.go +++ b/compute/apiv1/global_organization_operations_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGlobalOrganizationOperationsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGlobalOrganizationOperationsRESTClient() { func ExampleGlobalOrganizationOperationsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleGlobalOrganizationOperationsClient_Delete() { func ExampleGlobalOrganizationOperationsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleGlobalOrganizationOperationsClient_Get() { func ExampleGlobalOrganizationOperationsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/global_public_delegated_prefixes_client.go b/compute/apiv1/global_public_delegated_prefixes_client.go index f26870f3870..6e90cff8933 100644 --- a/compute/apiv1/global_public_delegated_prefixes_client.go +++ b/compute/apiv1/global_public_delegated_prefixes_client.go @@ -100,7 +100,8 @@ func (c *GlobalPublicDelegatedPrefixesClient) setGoogleClientInfo(keyval ...stri // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GlobalPublicDelegatedPrefixesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -210,7 +211,7 @@ func (c *globalPublicDelegatedPrefixesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *globalPublicDelegatedPrefixesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/global_public_delegated_prefixes_client_example_test.go b/compute/apiv1/global_public_delegated_prefixes_client_example_test.go index 398a6edd138..d5c72a01b76 100644 --- a/compute/apiv1/global_public_delegated_prefixes_client_example_test.go +++ b/compute/apiv1/global_public_delegated_prefixes_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGlobalPublicDelegatedPrefixesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGlobalPublicDelegatedPrefixesRESTClient() { func ExampleGlobalPublicDelegatedPrefixesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleGlobalPublicDelegatedPrefixesClient_Delete() { func ExampleGlobalPublicDelegatedPrefixesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleGlobalPublicDelegatedPrefixesClient_Get() { func ExampleGlobalPublicDelegatedPrefixesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleGlobalPublicDelegatedPrefixesClient_Insert() { func ExampleGlobalPublicDelegatedPrefixesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleGlobalPublicDelegatedPrefixesClient_List() { func ExampleGlobalPublicDelegatedPrefixesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/health_checks_client.go b/compute/apiv1/health_checks_client.go index 34325ac6938..9a5fff077e9 100644 --- a/compute/apiv1/health_checks_client.go +++ b/compute/apiv1/health_checks_client.go @@ -107,7 +107,8 @@ func (c *HealthChecksClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *HealthChecksClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -227,7 +228,7 @@ func (c *healthChecksRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *healthChecksRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/health_checks_client_example_test.go b/compute/apiv1/health_checks_client_example_test.go index c628e4ab3e1..2a233a0a395 100644 --- a/compute/apiv1/health_checks_client_example_test.go +++ b/compute/apiv1/health_checks_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewHealthChecksRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewHealthChecksRESTClient() { func ExampleHealthChecksClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleHealthChecksClient_AggregatedList() { func ExampleHealthChecksClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleHealthChecksClient_Delete() { func ExampleHealthChecksClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleHealthChecksClient_Get() { func ExampleHealthChecksClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleHealthChecksClient_Insert() { func ExampleHealthChecksClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleHealthChecksClient_List() { func ExampleHealthChecksClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleHealthChecksClient_Patch() { func ExampleHealthChecksClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/image_family_views_client.go b/compute/apiv1/image_family_views_client.go index 216f48499c0..3e4e5eaba43 100644 --- a/compute/apiv1/image_family_views_client.go +++ b/compute/apiv1/image_family_views_client.go @@ -84,7 +84,8 @@ func (c *ImageFamilyViewsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ImageFamilyViewsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -158,7 +159,7 @@ func (c *imageFamilyViewsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *imageFamilyViewsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/image_family_views_client_example_test.go b/compute/apiv1/image_family_views_client_example_test.go index dc92550210c..c2dda7100cb 100644 --- a/compute/apiv1/image_family_views_client_example_test.go +++ b/compute/apiv1/image_family_views_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewImageFamilyViewsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImageFamilyViewsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewImageFamilyViewsRESTClient() { func ExampleImageFamilyViewsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImageFamilyViewsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/images_client.go b/compute/apiv1/images_client.go index e4dd01339e9..7711f546584 100644 --- a/compute/apiv1/images_client.go +++ b/compute/apiv1/images_client.go @@ -118,7 +118,8 @@ func (c *ImagesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ImagesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -258,7 +259,7 @@ func (c *imagesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *imagesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/images_client_example_test.go b/compute/apiv1/images_client_example_test.go index 32c3f678a51..e3716cd77db 100644 --- a/compute/apiv1/images_client_example_test.go +++ b/compute/apiv1/images_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewImagesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewImagesRESTClient() { func ExampleImagesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleImagesClient_Delete() { func ExampleImagesClient_Deprecate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleImagesClient_Deprecate() { func ExampleImagesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleImagesClient_Get() { func ExampleImagesClient_GetFromFamily() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleImagesClient_GetFromFamily() { func ExampleImagesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleImagesClient_GetIamPolicy() { func ExampleImagesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -167,6 +202,11 @@ func ExampleImagesClient_Insert() { func ExampleImagesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -193,6 +233,11 @@ func ExampleImagesClient_List() { func ExampleImagesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +261,11 @@ func ExampleImagesClient_Patch() { func ExampleImagesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -236,6 +286,11 @@ func ExampleImagesClient_SetIamPolicy() { func ExampleImagesClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -259,6 +314,11 @@ func ExampleImagesClient_SetLabels() { func ExampleImagesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/instance_group_managers_client.go b/compute/apiv1/instance_group_managers_client.go index 87f44c6be86..514a3a3e968 100644 --- a/compute/apiv1/instance_group_managers_client.go +++ b/compute/apiv1/instance_group_managers_client.go @@ -146,7 +146,8 @@ func (c *InstanceGroupManagersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InstanceGroupManagersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -331,7 +332,7 @@ func (c *instanceGroupManagersRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *instanceGroupManagersRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/instance_group_managers_client_example_test.go b/compute/apiv1/instance_group_managers_client_example_test.go index 9b42406b42e..791d8158b53 100644 --- a/compute/apiv1/instance_group_managers_client_example_test.go +++ b/compute/apiv1/instance_group_managers_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewInstanceGroupManagersRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewInstanceGroupManagersRESTClient() { func ExampleInstanceGroupManagersClient_AbandonInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleInstanceGroupManagersClient_AbandonInstances() { func ExampleInstanceGroupManagersClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleInstanceGroupManagersClient_AggregatedList() { func ExampleInstanceGroupManagersClient_ApplyUpdatesToInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleInstanceGroupManagersClient_ApplyUpdatesToInstances() { func ExampleInstanceGroupManagersClient_CreateInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleInstanceGroupManagersClient_CreateInstances() { func ExampleInstanceGroupManagersClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleInstanceGroupManagersClient_Delete() { func ExampleInstanceGroupManagersClient_DeleteInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleInstanceGroupManagersClient_DeleteInstances() { func ExampleInstanceGroupManagersClient_DeletePerInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleInstanceGroupManagersClient_DeletePerInstanceConfigs() { func ExampleInstanceGroupManagersClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleInstanceGroupManagersClient_Get() { func ExampleInstanceGroupManagersClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleInstanceGroupManagersClient_Insert() { func ExampleInstanceGroupManagersClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleInstanceGroupManagersClient_List() { func ExampleInstanceGroupManagersClient_ListErrors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -297,6 +357,11 @@ func ExampleInstanceGroupManagersClient_ListErrors() { func ExampleInstanceGroupManagersClient_ListManagedInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -323,6 +388,11 @@ func ExampleInstanceGroupManagersClient_ListManagedInstances() { func ExampleInstanceGroupManagersClient_ListPerInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +419,11 @@ func ExampleInstanceGroupManagersClient_ListPerInstanceConfigs() { func ExampleInstanceGroupManagersClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +447,11 @@ func ExampleInstanceGroupManagersClient_Patch() { func ExampleInstanceGroupManagersClient_PatchPerInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -395,6 +475,11 @@ func ExampleInstanceGroupManagersClient_PatchPerInstanceConfigs() { func ExampleInstanceGroupManagersClient_RecreateInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +503,11 @@ func ExampleInstanceGroupManagersClient_RecreateInstances() { func ExampleInstanceGroupManagersClient_Resize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -441,6 +531,11 @@ func ExampleInstanceGroupManagersClient_Resize() { func ExampleInstanceGroupManagersClient_SetInstanceTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -464,6 +559,11 @@ func ExampleInstanceGroupManagersClient_SetInstanceTemplate() { func ExampleInstanceGroupManagersClient_SetTargetPools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -487,6 +587,11 @@ func ExampleInstanceGroupManagersClient_SetTargetPools() { func ExampleInstanceGroupManagersClient_UpdatePerInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/instance_groups_client.go b/compute/apiv1/instance_groups_client.go index 3ccf31d2c5c..a1c50573ddd 100644 --- a/compute/apiv1/instance_groups_client.go +++ b/compute/apiv1/instance_groups_client.go @@ -113,7 +113,8 @@ func (c *InstanceGroupsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InstanceGroupsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,7 @@ func (c *instanceGroupsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *instanceGroupsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/instance_groups_client_example_test.go b/compute/apiv1/instance_groups_client_example_test.go index 856c83895a9..ac0f98bf549 100644 --- a/compute/apiv1/instance_groups_client_example_test.go +++ b/compute/apiv1/instance_groups_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewInstanceGroupsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewInstanceGroupsRESTClient() { func ExampleInstanceGroupsClient_AddInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleInstanceGroupsClient_AddInstances() { func ExampleInstanceGroupsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleInstanceGroupsClient_AggregatedList() { func ExampleInstanceGroupsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleInstanceGroupsClient_Delete() { func ExampleInstanceGroupsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleInstanceGroupsClient_Get() { func ExampleInstanceGroupsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleInstanceGroupsClient_Insert() { func ExampleInstanceGroupsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleInstanceGroupsClient_List() { func ExampleInstanceGroupsClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleInstanceGroupsClient_ListInstances() { func ExampleInstanceGroupsClient_RemoveInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleInstanceGroupsClient_RemoveInstances() { func ExampleInstanceGroupsClient_SetNamedPorts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/instance_templates_client.go b/compute/apiv1/instance_templates_client.go index b76c1d88da0..ac9a23d3b62 100644 --- a/compute/apiv1/instance_templates_client.go +++ b/compute/apiv1/instance_templates_client.go @@ -106,7 +106,8 @@ func (c *InstanceTemplatesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InstanceTemplatesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -226,7 +227,7 @@ func (c *instanceTemplatesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *instanceTemplatesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/instance_templates_client_example_test.go b/compute/apiv1/instance_templates_client_example_test.go index 11a4789bc78..c55d3881bfd 100644 --- a/compute/apiv1/instance_templates_client_example_test.go +++ b/compute/apiv1/instance_templates_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewInstanceTemplatesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewInstanceTemplatesRESTClient() { func ExampleInstanceTemplatesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleInstanceTemplatesClient_Delete() { func ExampleInstanceTemplatesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleInstanceTemplatesClient_Get() { func ExampleInstanceTemplatesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleInstanceTemplatesClient_GetIamPolicy() { func ExampleInstanceTemplatesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleInstanceTemplatesClient_Insert() { func ExampleInstanceTemplatesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleInstanceTemplatesClient_List() { func ExampleInstanceTemplatesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleInstanceTemplatesClient_SetIamPolicy() { func ExampleInstanceTemplatesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/instances_client.go b/compute/apiv1/instances_client.go index c7c681cd372..7cf86d45252 100644 --- a/compute/apiv1/instances_client.go +++ b/compute/apiv1/instances_client.go @@ -221,7 +221,8 @@ func (c *InstancesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InstancesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -531,7 +532,7 @@ func (c *instancesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *instancesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/instances_client_example_test.go b/compute/apiv1/instances_client_example_test.go index 9c144acc52f..a1b51a4d4ad 100644 --- a/compute/apiv1/instances_client_example_test.go +++ b/compute/apiv1/instances_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewInstancesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewInstancesRESTClient() { func ExampleInstancesClient_AddAccessConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleInstancesClient_AddAccessConfig() { func ExampleInstancesClient_AddResourcePolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleInstancesClient_AddResourcePolicies() { func ExampleInstancesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleInstancesClient_AggregatedList() { func ExampleInstancesClient_AttachDisk() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleInstancesClient_AttachDisk() { func ExampleInstancesClient_BulkInsert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleInstancesClient_BulkInsert() { func ExampleInstancesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleInstancesClient_Delete() { func ExampleInstancesClient_DeleteAccessConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleInstancesClient_DeleteAccessConfig() { func ExampleInstancesClient_DetachDisk() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleInstancesClient_DetachDisk() { func ExampleInstancesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleInstancesClient_Get() { func ExampleInstancesClient_GetEffectiveFirewalls() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -265,6 +320,11 @@ func ExampleInstancesClient_GetEffectiveFirewalls() { func ExampleInstancesClient_GetGuestAttributes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -285,6 +345,11 @@ func ExampleInstancesClient_GetGuestAttributes() { func ExampleInstancesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -305,6 +370,11 @@ func ExampleInstancesClient_GetIamPolicy() { func ExampleInstancesClient_GetScreenshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -325,6 +395,11 @@ func ExampleInstancesClient_GetScreenshot() { func ExampleInstancesClient_GetSerialPortOutput() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -345,6 +420,11 @@ func ExampleInstancesClient_GetSerialPortOutput() { func ExampleInstancesClient_GetShieldedInstanceIdentity() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -365,6 +445,11 @@ func ExampleInstancesClient_GetShieldedInstanceIdentity() { func ExampleInstancesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -388,6 +473,11 @@ func ExampleInstancesClient_Insert() { func ExampleInstancesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -414,6 +504,11 @@ func ExampleInstancesClient_List() { func ExampleInstancesClient_ListReferrers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -440,6 +535,11 @@ func ExampleInstancesClient_ListReferrers() { func ExampleInstancesClient_RemoveResourcePolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -463,6 +563,11 @@ func ExampleInstancesClient_RemoveResourcePolicies() { func ExampleInstancesClient_Reset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -486,6 +591,11 @@ func ExampleInstancesClient_Reset() { func ExampleInstancesClient_Resume() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -509,6 +619,11 @@ func ExampleInstancesClient_Resume() { func ExampleInstancesClient_SendDiagnosticInterrupt() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -529,6 +644,11 @@ func ExampleInstancesClient_SendDiagnosticInterrupt() { func ExampleInstancesClient_SetDeletionProtection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -552,6 +672,11 @@ func ExampleInstancesClient_SetDeletionProtection() { func ExampleInstancesClient_SetDiskAutoDelete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -575,6 +700,11 @@ func ExampleInstancesClient_SetDiskAutoDelete() { func ExampleInstancesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -595,6 +725,11 @@ func ExampleInstancesClient_SetIamPolicy() { func ExampleInstancesClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -618,6 +753,11 @@ func ExampleInstancesClient_SetLabels() { func ExampleInstancesClient_SetMachineResources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -641,6 +781,11 @@ func ExampleInstancesClient_SetMachineResources() { func ExampleInstancesClient_SetMachineType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -664,6 +809,11 @@ func ExampleInstancesClient_SetMachineType() { func ExampleInstancesClient_SetMetadata() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -687,6 +837,11 @@ func ExampleInstancesClient_SetMetadata() { func ExampleInstancesClient_SetMinCpuPlatform() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -710,6 +865,11 @@ func ExampleInstancesClient_SetMinCpuPlatform() { func ExampleInstancesClient_SetScheduling() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -733,6 +893,11 @@ func ExampleInstancesClient_SetScheduling() { func ExampleInstancesClient_SetServiceAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -756,6 +921,11 @@ func ExampleInstancesClient_SetServiceAccount() { func ExampleInstancesClient_SetShieldedInstanceIntegrityPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -779,6 +949,11 @@ func ExampleInstancesClient_SetShieldedInstanceIntegrityPolicy() { func ExampleInstancesClient_SetTags() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -802,6 +977,11 @@ func ExampleInstancesClient_SetTags() { func ExampleInstancesClient_SimulateMaintenanceEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -825,6 +1005,11 @@ func ExampleInstancesClient_SimulateMaintenanceEvent() { func ExampleInstancesClient_Start() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -848,6 +1033,11 @@ func ExampleInstancesClient_Start() { func ExampleInstancesClient_StartWithEncryptionKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -871,6 +1061,11 @@ func ExampleInstancesClient_StartWithEncryptionKey() { func ExampleInstancesClient_Stop() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -894,6 +1089,11 @@ func ExampleInstancesClient_Stop() { func ExampleInstancesClient_Suspend() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -917,6 +1117,11 @@ func ExampleInstancesClient_Suspend() { func ExampleInstancesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -937,6 +1142,11 @@ func ExampleInstancesClient_TestIamPermissions() { func ExampleInstancesClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -960,6 +1170,11 @@ func ExampleInstancesClient_Update() { func ExampleInstancesClient_UpdateAccessConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -983,6 +1198,11 @@ func ExampleInstancesClient_UpdateAccessConfig() { func ExampleInstancesClient_UpdateDisplayDevice() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -1006,6 +1226,11 @@ func ExampleInstancesClient_UpdateDisplayDevice() { func ExampleInstancesClient_UpdateNetworkInterface() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -1029,6 +1254,11 @@ func ExampleInstancesClient_UpdateNetworkInterface() { func ExampleInstancesClient_UpdateShieldedInstanceConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/interconnect_attachments_client.go b/compute/apiv1/interconnect_attachments_client.go index 2fd324880a2..de0bfac3773 100644 --- a/compute/apiv1/interconnect_attachments_client.go +++ b/compute/apiv1/interconnect_attachments_client.go @@ -104,7 +104,8 @@ func (c *InterconnectAttachmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InterconnectAttachmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -219,7 +220,7 @@ func (c *interconnectAttachmentsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *interconnectAttachmentsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/interconnect_attachments_client_example_test.go b/compute/apiv1/interconnect_attachments_client_example_test.go index 8562e677477..f841b0f9de4 100644 --- a/compute/apiv1/interconnect_attachments_client_example_test.go +++ b/compute/apiv1/interconnect_attachments_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewInterconnectAttachmentsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewInterconnectAttachmentsRESTClient() { func ExampleInterconnectAttachmentsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleInterconnectAttachmentsClient_AggregatedList() { func ExampleInterconnectAttachmentsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleInterconnectAttachmentsClient_Delete() { func ExampleInterconnectAttachmentsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleInterconnectAttachmentsClient_Get() { func ExampleInterconnectAttachmentsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleInterconnectAttachmentsClient_Insert() { func ExampleInterconnectAttachmentsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleInterconnectAttachmentsClient_List() { func ExampleInterconnectAttachmentsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/interconnect_locations_client.go b/compute/apiv1/interconnect_locations_client.go index 36b6a3d7805..fe99819b4ea 100644 --- a/compute/apiv1/interconnect_locations_client.go +++ b/compute/apiv1/interconnect_locations_client.go @@ -90,7 +90,8 @@ func (c *InterconnectLocationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InterconnectLocationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -169,7 +170,7 @@ func (c *interconnectLocationsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *interconnectLocationsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/interconnect_locations_client_example_test.go b/compute/apiv1/interconnect_locations_client_example_test.go index 69c45c79125..41b6de2210d 100644 --- a/compute/apiv1/interconnect_locations_client_example_test.go +++ b/compute/apiv1/interconnect_locations_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewInterconnectLocationsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectLocationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewInterconnectLocationsRESTClient() { func ExampleInterconnectLocationsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectLocationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleInterconnectLocationsClient_Get() { func ExampleInterconnectLocationsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectLocationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/interconnects_client.go b/compute/apiv1/interconnects_client.go index 581b610dfdf..e93375b0cf3 100644 --- a/compute/apiv1/interconnects_client.go +++ b/compute/apiv1/interconnects_client.go @@ -103,7 +103,8 @@ func (c *InterconnectsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InterconnectsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,7 @@ func (c *interconnectsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *interconnectsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/interconnects_client_example_test.go b/compute/apiv1/interconnects_client_example_test.go index 65e736fb691..1e4055a68c6 100644 --- a/compute/apiv1/interconnects_client_example_test.go +++ b/compute/apiv1/interconnects_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewInterconnectsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewInterconnectsRESTClient() { func ExampleInterconnectsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleInterconnectsClient_Delete() { func ExampleInterconnectsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleInterconnectsClient_Get() { func ExampleInterconnectsClient_GetDiagnostics() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleInterconnectsClient_GetDiagnostics() { func ExampleInterconnectsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleInterconnectsClient_Insert() { func ExampleInterconnectsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleInterconnectsClient_List() { func ExampleInterconnectsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/license_codes_client.go b/compute/apiv1/license_codes_client.go index 9e8e6781187..3e1c3bde0d0 100644 --- a/compute/apiv1/license_codes_client.go +++ b/compute/apiv1/license_codes_client.go @@ -88,7 +88,8 @@ func (c *LicenseCodesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *LicenseCodesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -167,7 +168,7 @@ func (c *licenseCodesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *licenseCodesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/license_codes_client_example_test.go b/compute/apiv1/license_codes_client_example_test.go index 2dabbbb6bcc..5a783aa6bf0 100644 --- a/compute/apiv1/license_codes_client_example_test.go +++ b/compute/apiv1/license_codes_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewLicenseCodesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicenseCodesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewLicenseCodesRESTClient() { func ExampleLicenseCodesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicenseCodesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleLicenseCodesClient_Get() { func ExampleLicenseCodesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicenseCodesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/licenses_client.go b/compute/apiv1/licenses_client.go index f285cb42314..f15a762dbe0 100644 --- a/compute/apiv1/licenses_client.go +++ b/compute/apiv1/licenses_client.go @@ -106,7 +106,8 @@ func (c *LicensesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *LicensesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -226,7 +227,7 @@ func (c *licensesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *licensesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/licenses_client_example_test.go b/compute/apiv1/licenses_client_example_test.go index e88b2f058e3..31aeda986ad 100644 --- a/compute/apiv1/licenses_client_example_test.go +++ b/compute/apiv1/licenses_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewLicensesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewLicensesRESTClient() { func ExampleLicensesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleLicensesClient_Delete() { func ExampleLicensesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleLicensesClient_Get() { func ExampleLicensesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleLicensesClient_GetIamPolicy() { func ExampleLicensesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleLicensesClient_Insert() { func ExampleLicensesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleLicensesClient_List() { func ExampleLicensesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleLicensesClient_SetIamPolicy() { func ExampleLicensesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/machine_images_client.go b/compute/apiv1/machine_images_client.go index e04d3a093b3..c80785ee58e 100644 --- a/compute/apiv1/machine_images_client.go +++ b/compute/apiv1/machine_images_client.go @@ -106,7 +106,8 @@ func (c *MachineImagesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MachineImagesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -226,7 +227,7 @@ func (c *machineImagesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *machineImagesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/machine_images_client_example_test.go b/compute/apiv1/machine_images_client_example_test.go index 31b85f67138..2b61beb8cb5 100644 --- a/compute/apiv1/machine_images_client_example_test.go +++ b/compute/apiv1/machine_images_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewMachineImagesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewMachineImagesRESTClient() { func ExampleMachineImagesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleMachineImagesClient_Delete() { func ExampleMachineImagesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleMachineImagesClient_Get() { func ExampleMachineImagesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleMachineImagesClient_GetIamPolicy() { func ExampleMachineImagesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleMachineImagesClient_Insert() { func ExampleMachineImagesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleMachineImagesClient_List() { func ExampleMachineImagesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleMachineImagesClient_SetIamPolicy() { func ExampleMachineImagesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/machine_types_client.go b/compute/apiv1/machine_types_client.go index 039d1822e8c..6ef577f6f72 100644 --- a/compute/apiv1/machine_types_client.go +++ b/compute/apiv1/machine_types_client.go @@ -94,7 +94,8 @@ func (c *MachineTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MachineTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -178,7 +179,7 @@ func (c *machineTypesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *machineTypesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/machine_types_client_example_test.go b/compute/apiv1/machine_types_client_example_test.go index 281a40bb9c5..9b8f03b63b8 100644 --- a/compute/apiv1/machine_types_client_example_test.go +++ b/compute/apiv1/machine_types_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewMachineTypesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewMachineTypesRESTClient() { func ExampleMachineTypesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleMachineTypesClient_AggregatedList() { func ExampleMachineTypesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleMachineTypesClient_Get() { func ExampleMachineTypesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/network_edge_security_services_client.go b/compute/apiv1/network_edge_security_services_client.go index b6f917274e6..0423738f83f 100644 --- a/compute/apiv1/network_edge_security_services_client.go +++ b/compute/apiv1/network_edge_security_services_client.go @@ -101,7 +101,8 @@ func (c *NetworkEdgeSecurityServicesClient) setGoogleClientInfo(keyval ...string // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NetworkEdgeSecurityServicesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -211,7 +212,7 @@ func (c *networkEdgeSecurityServicesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *networkEdgeSecurityServicesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/network_edge_security_services_client_example_test.go b/compute/apiv1/network_edge_security_services_client_example_test.go index 018bf3c85a5..2a1697015eb 100644 --- a/compute/apiv1/network_edge_security_services_client_example_test.go +++ b/compute/apiv1/network_edge_security_services_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNetworkEdgeSecurityServicesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNetworkEdgeSecurityServicesRESTClient() { func ExampleNetworkEdgeSecurityServicesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleNetworkEdgeSecurityServicesClient_AggregatedList() { func ExampleNetworkEdgeSecurityServicesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleNetworkEdgeSecurityServicesClient_Delete() { func ExampleNetworkEdgeSecurityServicesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleNetworkEdgeSecurityServicesClient_Get() { func ExampleNetworkEdgeSecurityServicesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleNetworkEdgeSecurityServicesClient_Insert() { func ExampleNetworkEdgeSecurityServicesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/network_endpoint_groups_client.go b/compute/apiv1/network_endpoint_groups_client.go index 0108e72f581..3082c35d753 100644 --- a/compute/apiv1/network_endpoint_groups_client.go +++ b/compute/apiv1/network_endpoint_groups_client.go @@ -113,7 +113,8 @@ func (c *NetworkEndpointGroupsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NetworkEndpointGroupsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,7 @@ func (c *networkEndpointGroupsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *networkEndpointGroupsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/network_endpoint_groups_client_example_test.go b/compute/apiv1/network_endpoint_groups_client_example_test.go index a73ad44940c..d97b1f05fb4 100644 --- a/compute/apiv1/network_endpoint_groups_client_example_test.go +++ b/compute/apiv1/network_endpoint_groups_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNetworkEndpointGroupsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNetworkEndpointGroupsRESTClient() { func ExampleNetworkEndpointGroupsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleNetworkEndpointGroupsClient_AggregatedList() { func ExampleNetworkEndpointGroupsClient_AttachNetworkEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleNetworkEndpointGroupsClient_AttachNetworkEndpoints() { func ExampleNetworkEndpointGroupsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleNetworkEndpointGroupsClient_Delete() { func ExampleNetworkEndpointGroupsClient_DetachNetworkEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleNetworkEndpointGroupsClient_DetachNetworkEndpoints() { func ExampleNetworkEndpointGroupsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleNetworkEndpointGroupsClient_Get() { func ExampleNetworkEndpointGroupsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleNetworkEndpointGroupsClient_Insert() { func ExampleNetworkEndpointGroupsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleNetworkEndpointGroupsClient_List() { func ExampleNetworkEndpointGroupsClient_ListNetworkEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleNetworkEndpointGroupsClient_ListNetworkEndpoints() { func ExampleNetworkEndpointGroupsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/network_firewall_policies_client.go b/compute/apiv1/network_firewall_policies_client.go index 48d3260dadf..c60273d5861 100644 --- a/compute/apiv1/network_firewall_policies_client.go +++ b/compute/apiv1/network_firewall_policies_client.go @@ -133,7 +133,8 @@ func (c *NetworkFirewallPoliciesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NetworkFirewallPoliciesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -298,7 +299,7 @@ func (c *networkFirewallPoliciesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *networkFirewallPoliciesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/network_firewall_policies_client_example_test.go b/compute/apiv1/network_firewall_policies_client_example_test.go index 4a484816657..5ba92281f1a 100644 --- a/compute/apiv1/network_firewall_policies_client_example_test.go +++ b/compute/apiv1/network_firewall_policies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNetworkFirewallPoliciesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNetworkFirewallPoliciesRESTClient() { func ExampleNetworkFirewallPoliciesClient_AddAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleNetworkFirewallPoliciesClient_AddAssociation() { func ExampleNetworkFirewallPoliciesClient_AddRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleNetworkFirewallPoliciesClient_AddRule() { func ExampleNetworkFirewallPoliciesClient_CloneRules() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleNetworkFirewallPoliciesClient_CloneRules() { func ExampleNetworkFirewallPoliciesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleNetworkFirewallPoliciesClient_Delete() { func ExampleNetworkFirewallPoliciesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleNetworkFirewallPoliciesClient_Get() { func ExampleNetworkFirewallPoliciesClient_GetAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleNetworkFirewallPoliciesClient_GetAssociation() { func ExampleNetworkFirewallPoliciesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleNetworkFirewallPoliciesClient_GetIamPolicy() { func ExampleNetworkFirewallPoliciesClient_GetRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -210,6 +255,11 @@ func ExampleNetworkFirewallPoliciesClient_GetRule() { func ExampleNetworkFirewallPoliciesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -233,6 +283,11 @@ func ExampleNetworkFirewallPoliciesClient_Insert() { func ExampleNetworkFirewallPoliciesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -259,6 +314,11 @@ func ExampleNetworkFirewallPoliciesClient_List() { func ExampleNetworkFirewallPoliciesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +342,11 @@ func ExampleNetworkFirewallPoliciesClient_Patch() { func ExampleNetworkFirewallPoliciesClient_PatchRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -305,6 +370,11 @@ func ExampleNetworkFirewallPoliciesClient_PatchRule() { func ExampleNetworkFirewallPoliciesClient_RemoveAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -328,6 +398,11 @@ func ExampleNetworkFirewallPoliciesClient_RemoveAssociation() { func ExampleNetworkFirewallPoliciesClient_RemoveRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -351,6 +426,11 @@ func ExampleNetworkFirewallPoliciesClient_RemoveRule() { func ExampleNetworkFirewallPoliciesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -371,6 +451,11 @@ func ExampleNetworkFirewallPoliciesClient_SetIamPolicy() { func ExampleNetworkFirewallPoliciesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/networks_client.go b/compute/apiv1/networks_client.go index e518c1de46c..a14d8b97566 100644 --- a/compute/apiv1/networks_client.go +++ b/compute/apiv1/networks_client.go @@ -118,7 +118,8 @@ func (c *NetworksClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NetworksClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -258,7 +259,7 @@ func (c *networksRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *networksRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/networks_client_example_test.go b/compute/apiv1/networks_client_example_test.go index 8d5a4c9405d..f8159d5bd8b 100644 --- a/compute/apiv1/networks_client_example_test.go +++ b/compute/apiv1/networks_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNetworksRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNetworksRESTClient() { func ExampleNetworksClient_AddPeering() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleNetworksClient_AddPeering() { func ExampleNetworksClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleNetworksClient_Delete() { func ExampleNetworksClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleNetworksClient_Get() { func ExampleNetworksClient_GetEffectiveFirewalls() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleNetworksClient_GetEffectiveFirewalls() { func ExampleNetworksClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleNetworksClient_Insert() { func ExampleNetworksClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleNetworksClient_List() { func ExampleNetworksClient_ListPeeringRoutes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleNetworksClient_ListPeeringRoutes() { func ExampleNetworksClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleNetworksClient_Patch() { func ExampleNetworksClient_RemovePeering() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleNetworksClient_RemovePeering() { func ExampleNetworksClient_SwitchToCustomMode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleNetworksClient_SwitchToCustomMode() { func ExampleNetworksClient_UpdatePeering() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/node_groups_client.go b/compute/apiv1/node_groups_client.go index a46b1224b8b..bd3856d4525 100644 --- a/compute/apiv1/node_groups_client.go +++ b/compute/apiv1/node_groups_client.go @@ -125,7 +125,8 @@ func (c *NodeGroupsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NodeGroupsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -275,7 +276,7 @@ func (c *nodeGroupsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *nodeGroupsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/node_groups_client_example_test.go b/compute/apiv1/node_groups_client_example_test.go index 88accce8720..6e08cbd7417 100644 --- a/compute/apiv1/node_groups_client_example_test.go +++ b/compute/apiv1/node_groups_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNodeGroupsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNodeGroupsRESTClient() { func ExampleNodeGroupsClient_AddNodes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleNodeGroupsClient_AddNodes() { func ExampleNodeGroupsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleNodeGroupsClient_AggregatedList() { func ExampleNodeGroupsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleNodeGroupsClient_Delete() { func ExampleNodeGroupsClient_DeleteNodes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleNodeGroupsClient_DeleteNodes() { func ExampleNodeGroupsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleNodeGroupsClient_Get() { func ExampleNodeGroupsClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleNodeGroupsClient_GetIamPolicy() { func ExampleNodeGroupsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleNodeGroupsClient_Insert() { func ExampleNodeGroupsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleNodeGroupsClient_List() { func ExampleNodeGroupsClient_ListNodes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +298,11 @@ func ExampleNodeGroupsClient_ListNodes() { func ExampleNodeGroupsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleNodeGroupsClient_Patch() { func ExampleNodeGroupsClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -291,6 +351,11 @@ func ExampleNodeGroupsClient_SetIamPolicy() { func ExampleNodeGroupsClient_SetNodeTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -314,6 +379,11 @@ func ExampleNodeGroupsClient_SetNodeTemplate() { func ExampleNodeGroupsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/node_templates_client.go b/compute/apiv1/node_templates_client.go index b72ee6ad634..7727a3573a6 100644 --- a/compute/apiv1/node_templates_client.go +++ b/compute/apiv1/node_templates_client.go @@ -110,7 +110,8 @@ func (c *NodeTemplatesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NodeTemplatesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -235,7 +236,7 @@ func (c *nodeTemplatesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *nodeTemplatesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/node_templates_client_example_test.go b/compute/apiv1/node_templates_client_example_test.go index b18990e985a..ef10a8c3b6c 100644 --- a/compute/apiv1/node_templates_client_example_test.go +++ b/compute/apiv1/node_templates_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNodeTemplatesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNodeTemplatesRESTClient() { func ExampleNodeTemplatesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleNodeTemplatesClient_AggregatedList() { func ExampleNodeTemplatesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleNodeTemplatesClient_Delete() { func ExampleNodeTemplatesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleNodeTemplatesClient_Get() { func ExampleNodeTemplatesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleNodeTemplatesClient_GetIamPolicy() { func ExampleNodeTemplatesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleNodeTemplatesClient_Insert() { func ExampleNodeTemplatesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleNodeTemplatesClient_List() { func ExampleNodeTemplatesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleNodeTemplatesClient_SetIamPolicy() { func ExampleNodeTemplatesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/node_types_client.go b/compute/apiv1/node_types_client.go index e25eadafe1f..ce42c1e6c5a 100644 --- a/compute/apiv1/node_types_client.go +++ b/compute/apiv1/node_types_client.go @@ -94,7 +94,8 @@ func (c *NodeTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NodeTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -178,7 +179,7 @@ func (c *nodeTypesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *nodeTypesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/node_types_client_example_test.go b/compute/apiv1/node_types_client_example_test.go index c56732db86f..afbbd391cc9 100644 --- a/compute/apiv1/node_types_client_example_test.go +++ b/compute/apiv1/node_types_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNodeTypesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNodeTypesRESTClient() { func ExampleNodeTypesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleNodeTypesClient_AggregatedList() { func ExampleNodeTypesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleNodeTypesClient_Get() { func ExampleNodeTypesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/packet_mirrorings_client.go b/compute/apiv1/packet_mirrorings_client.go index 526c252e897..fa673f39dd5 100644 --- a/compute/apiv1/packet_mirrorings_client.go +++ b/compute/apiv1/packet_mirrorings_client.go @@ -107,7 +107,8 @@ func (c *PacketMirroringsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PacketMirroringsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -227,7 +228,7 @@ func (c *packetMirroringsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *packetMirroringsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/packet_mirrorings_client_example_test.go b/compute/apiv1/packet_mirrorings_client_example_test.go index d0178de22f3..8684e9b1a3e 100644 --- a/compute/apiv1/packet_mirrorings_client_example_test.go +++ b/compute/apiv1/packet_mirrorings_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewPacketMirroringsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewPacketMirroringsRESTClient() { func ExamplePacketMirroringsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExamplePacketMirroringsClient_AggregatedList() { func ExamplePacketMirroringsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExamplePacketMirroringsClient_Delete() { func ExamplePacketMirroringsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExamplePacketMirroringsClient_Get() { func ExamplePacketMirroringsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExamplePacketMirroringsClient_Insert() { func ExamplePacketMirroringsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExamplePacketMirroringsClient_List() { func ExamplePacketMirroringsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExamplePacketMirroringsClient_Patch() { func ExamplePacketMirroringsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/projects_client.go b/compute/apiv1/projects_client.go index 016de47a7cc..b79746f2077 100644 --- a/compute/apiv1/projects_client.go +++ b/compute/apiv1/projects_client.go @@ -124,7 +124,8 @@ func (c *ProjectsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ProjectsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -274,7 +275,7 @@ func (c *projectsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *projectsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/projects_client_example_test.go b/compute/apiv1/projects_client_example_test.go index 0012c42d7ea..e60ce7cbccb 100644 --- a/compute/apiv1/projects_client_example_test.go +++ b/compute/apiv1/projects_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewProjectsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewProjectsRESTClient() { func ExampleProjectsClient_DisableXpnHost() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleProjectsClient_DisableXpnHost() { func ExampleProjectsClient_DisableXpnResource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleProjectsClient_DisableXpnResource() { func ExampleProjectsClient_EnableXpnHost() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleProjectsClient_EnableXpnHost() { func ExampleProjectsClient_EnableXpnResource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleProjectsClient_EnableXpnResource() { func ExampleProjectsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleProjectsClient_Get() { func ExampleProjectsClient_GetXpnHost() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleProjectsClient_GetXpnHost() { func ExampleProjectsClient_GetXpnResources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleProjectsClient_GetXpnResources() { func ExampleProjectsClient_ListXpnHosts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleProjectsClient_ListXpnHosts() { func ExampleProjectsClient_MoveDisk() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleProjectsClient_MoveDisk() { func ExampleProjectsClient_MoveInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleProjectsClient_MoveInstance() { func ExampleProjectsClient_SetCommonInstanceMetadata() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -291,6 +351,11 @@ func ExampleProjectsClient_SetCommonInstanceMetadata() { func ExampleProjectsClient_SetDefaultNetworkTier() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -314,6 +379,11 @@ func ExampleProjectsClient_SetDefaultNetworkTier() { func ExampleProjectsClient_SetUsageExportBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/public_advertised_prefixes_client.go b/compute/apiv1/public_advertised_prefixes_client.go index 5dbd933bc07..60f87f4479c 100644 --- a/compute/apiv1/public_advertised_prefixes_client.go +++ b/compute/apiv1/public_advertised_prefixes_client.go @@ -100,7 +100,8 @@ func (c *PublicAdvertisedPrefixesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PublicAdvertisedPrefixesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -210,7 +211,7 @@ func (c *publicAdvertisedPrefixesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *publicAdvertisedPrefixesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/public_advertised_prefixes_client_example_test.go b/compute/apiv1/public_advertised_prefixes_client_example_test.go index 07f23cd7e5d..d6133cf720e 100644 --- a/compute/apiv1/public_advertised_prefixes_client_example_test.go +++ b/compute/apiv1/public_advertised_prefixes_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewPublicAdvertisedPrefixesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewPublicAdvertisedPrefixesRESTClient() { func ExamplePublicAdvertisedPrefixesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExamplePublicAdvertisedPrefixesClient_Delete() { func ExamplePublicAdvertisedPrefixesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExamplePublicAdvertisedPrefixesClient_Get() { func ExamplePublicAdvertisedPrefixesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExamplePublicAdvertisedPrefixesClient_Insert() { func ExamplePublicAdvertisedPrefixesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExamplePublicAdvertisedPrefixesClient_List() { func ExamplePublicAdvertisedPrefixesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/public_delegated_prefixes_client.go b/compute/apiv1/public_delegated_prefixes_client.go index d68ac8f56d7..f3a440c0785 100644 --- a/compute/apiv1/public_delegated_prefixes_client.go +++ b/compute/apiv1/public_delegated_prefixes_client.go @@ -104,7 +104,8 @@ func (c *PublicDelegatedPrefixesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PublicDelegatedPrefixesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -219,7 +220,7 @@ func (c *publicDelegatedPrefixesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *publicDelegatedPrefixesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/public_delegated_prefixes_client_example_test.go b/compute/apiv1/public_delegated_prefixes_client_example_test.go index 4f5c60ce085..2013bd8dd99 100644 --- a/compute/apiv1/public_delegated_prefixes_client_example_test.go +++ b/compute/apiv1/public_delegated_prefixes_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewPublicDelegatedPrefixesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewPublicDelegatedPrefixesRESTClient() { func ExamplePublicDelegatedPrefixesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExamplePublicDelegatedPrefixesClient_AggregatedList() { func ExamplePublicDelegatedPrefixesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExamplePublicDelegatedPrefixesClient_Delete() { func ExamplePublicDelegatedPrefixesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExamplePublicDelegatedPrefixesClient_Get() { func ExamplePublicDelegatedPrefixesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExamplePublicDelegatedPrefixesClient_Insert() { func ExamplePublicDelegatedPrefixesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExamplePublicDelegatedPrefixesClient_List() { func ExamplePublicDelegatedPrefixesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_autoscalers_client.go b/compute/apiv1/region_autoscalers_client.go index 98f7478f1e0..a0fe6490513 100644 --- a/compute/apiv1/region_autoscalers_client.go +++ b/compute/apiv1/region_autoscalers_client.go @@ -103,7 +103,8 @@ func (c *RegionAutoscalersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionAutoscalersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,7 @@ func (c *regionAutoscalersRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionAutoscalersRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_autoscalers_client_example_test.go b/compute/apiv1/region_autoscalers_client_example_test.go index 21a554391cc..0c16c23db77 100644 --- a/compute/apiv1/region_autoscalers_client_example_test.go +++ b/compute/apiv1/region_autoscalers_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionAutoscalersRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionAutoscalersRESTClient() { func ExampleRegionAutoscalersClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionAutoscalersClient_Delete() { func ExampleRegionAutoscalersClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionAutoscalersClient_Get() { func ExampleRegionAutoscalersClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionAutoscalersClient_Insert() { func ExampleRegionAutoscalersClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionAutoscalersClient_List() { func ExampleRegionAutoscalersClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleRegionAutoscalersClient_Patch() { func ExampleRegionAutoscalersClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_backend_services_client.go b/compute/apiv1/region_backend_services_client.go index 7305026d6c6..13ebb5a26a0 100644 --- a/compute/apiv1/region_backend_services_client.go +++ b/compute/apiv1/region_backend_services_client.go @@ -106,7 +106,8 @@ func (c *RegionBackendServicesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionBackendServicesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -226,7 +227,7 @@ func (c *regionBackendServicesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionBackendServicesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_backend_services_client_example_test.go b/compute/apiv1/region_backend_services_client_example_test.go index 14aeebed616..9e837e3d6e2 100644 --- a/compute/apiv1/region_backend_services_client_example_test.go +++ b/compute/apiv1/region_backend_services_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionBackendServicesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionBackendServicesRESTClient() { func ExampleRegionBackendServicesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionBackendServicesClient_Delete() { func ExampleRegionBackendServicesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionBackendServicesClient_Get() { func ExampleRegionBackendServicesClient_GetHealth() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleRegionBackendServicesClient_GetHealth() { func ExampleRegionBackendServicesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleRegionBackendServicesClient_Insert() { func ExampleRegionBackendServicesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleRegionBackendServicesClient_List() { func ExampleRegionBackendServicesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleRegionBackendServicesClient_Patch() { func ExampleRegionBackendServicesClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_commitments_client.go b/compute/apiv1/region_commitments_client.go index 8234ef96c79..ef8032320ab 100644 --- a/compute/apiv1/region_commitments_client.go +++ b/compute/apiv1/region_commitments_client.go @@ -101,7 +101,8 @@ func (c *RegionCommitmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionCommitmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -211,7 +212,7 @@ func (c *regionCommitmentsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionCommitmentsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_commitments_client_example_test.go b/compute/apiv1/region_commitments_client_example_test.go index 1b7ab080c79..bbb4891a9ff 100644 --- a/compute/apiv1/region_commitments_client_example_test.go +++ b/compute/apiv1/region_commitments_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionCommitmentsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionCommitmentsRESTClient() { func ExampleRegionCommitmentsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleRegionCommitmentsClient_AggregatedList() { func ExampleRegionCommitmentsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleRegionCommitmentsClient_Get() { func ExampleRegionCommitmentsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleRegionCommitmentsClient_Insert() { func ExampleRegionCommitmentsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleRegionCommitmentsClient_List() { func ExampleRegionCommitmentsClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_disk_types_client.go b/compute/apiv1/region_disk_types_client.go index 61a6a53f616..48a24e98fe3 100644 --- a/compute/apiv1/region_disk_types_client.go +++ b/compute/apiv1/region_disk_types_client.go @@ -90,7 +90,8 @@ func (c *RegionDiskTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionDiskTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -169,7 +170,7 @@ func (c *regionDiskTypesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionDiskTypesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_disk_types_client_example_test.go b/compute/apiv1/region_disk_types_client_example_test.go index 6c10043f63d..c3d0c149f2e 100644 --- a/compute/apiv1/region_disk_types_client_example_test.go +++ b/compute/apiv1/region_disk_types_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionDiskTypesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionDiskTypesRESTClient() { func ExampleRegionDiskTypesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleRegionDiskTypesClient_Get() { func ExampleRegionDiskTypesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_disks_client.go b/compute/apiv1/region_disks_client.go index 35e4ecc63ae..12fe8dd29ac 100644 --- a/compute/apiv1/region_disks_client.go +++ b/compute/apiv1/region_disks_client.go @@ -121,7 +121,8 @@ func (c *RegionDisksClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionDisksClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -266,7 +267,7 @@ func (c *regionDisksRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionDisksRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_disks_client_example_test.go b/compute/apiv1/region_disks_client_example_test.go index e75bb8935ff..08541637cc6 100644 --- a/compute/apiv1/region_disks_client_example_test.go +++ b/compute/apiv1/region_disks_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionDisksRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionDisksRESTClient() { func ExampleRegionDisksClient_AddResourcePolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionDisksClient_AddResourcePolicies() { func ExampleRegionDisksClient_CreateSnapshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleRegionDisksClient_CreateSnapshot() { func ExampleRegionDisksClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleRegionDisksClient_Delete() { func ExampleRegionDisksClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleRegionDisksClient_Get() { func ExampleRegionDisksClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleRegionDisksClient_GetIamPolicy() { func ExampleRegionDisksClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleRegionDisksClient_Insert() { func ExampleRegionDisksClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleRegionDisksClient_List() { func ExampleRegionDisksClient_RemoveResourcePolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleRegionDisksClient_RemoveResourcePolicies() { func ExampleRegionDisksClient_Resize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +292,11 @@ func ExampleRegionDisksClient_Resize() { func ExampleRegionDisksClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -262,6 +317,11 @@ func ExampleRegionDisksClient_SetIamPolicy() { func ExampleRegionDisksClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -285,6 +345,11 @@ func ExampleRegionDisksClient_SetLabels() { func ExampleRegionDisksClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_health_check_services_client.go b/compute/apiv1/region_health_check_services_client.go index 1c7e1041674..6be27603ca9 100644 --- a/compute/apiv1/region_health_check_services_client.go +++ b/compute/apiv1/region_health_check_services_client.go @@ -100,7 +100,8 @@ func (c *RegionHealthCheckServicesClient) setGoogleClientInfo(keyval ...string) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionHealthCheckServicesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -210,7 +211,7 @@ func (c *regionHealthCheckServicesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionHealthCheckServicesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_health_check_services_client_example_test.go b/compute/apiv1/region_health_check_services_client_example_test.go index 846ea0876df..4e5586254b2 100644 --- a/compute/apiv1/region_health_check_services_client_example_test.go +++ b/compute/apiv1/region_health_check_services_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionHealthCheckServicesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionHealthCheckServicesRESTClient() { func ExampleRegionHealthCheckServicesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionHealthCheckServicesClient_Delete() { func ExampleRegionHealthCheckServicesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionHealthCheckServicesClient_Get() { func ExampleRegionHealthCheckServicesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionHealthCheckServicesClient_Insert() { func ExampleRegionHealthCheckServicesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionHealthCheckServicesClient_List() { func ExampleRegionHealthCheckServicesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_health_checks_client.go b/compute/apiv1/region_health_checks_client.go index 4b2a20c5a4e..7f6e9712151 100644 --- a/compute/apiv1/region_health_checks_client.go +++ b/compute/apiv1/region_health_checks_client.go @@ -103,7 +103,8 @@ func (c *RegionHealthChecksClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionHealthChecksClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,7 @@ func (c *regionHealthChecksRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionHealthChecksRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_health_checks_client_example_test.go b/compute/apiv1/region_health_checks_client_example_test.go index 24f1e7fb562..7e0cbed9a9a 100644 --- a/compute/apiv1/region_health_checks_client_example_test.go +++ b/compute/apiv1/region_health_checks_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionHealthChecksRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionHealthChecksRESTClient() { func ExampleRegionHealthChecksClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionHealthChecksClient_Delete() { func ExampleRegionHealthChecksClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionHealthChecksClient_Get() { func ExampleRegionHealthChecksClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionHealthChecksClient_Insert() { func ExampleRegionHealthChecksClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionHealthChecksClient_List() { func ExampleRegionHealthChecksClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleRegionHealthChecksClient_Patch() { func ExampleRegionHealthChecksClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_instance_group_managers_client.go b/compute/apiv1/region_instance_group_managers_client.go index ee6a798a033..973f478597b 100644 --- a/compute/apiv1/region_instance_group_managers_client.go +++ b/compute/apiv1/region_instance_group_managers_client.go @@ -142,7 +142,8 @@ func (c *RegionInstanceGroupManagersClient) setGoogleClientInfo(keyval ...string // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionInstanceGroupManagersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -322,7 +323,7 @@ func (c *regionInstanceGroupManagersRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionInstanceGroupManagersRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_instance_group_managers_client_example_test.go b/compute/apiv1/region_instance_group_managers_client_example_test.go index 724a5ed068f..c5d1162f1fd 100644 --- a/compute/apiv1/region_instance_group_managers_client_example_test.go +++ b/compute/apiv1/region_instance_group_managers_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionInstanceGroupManagersRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionInstanceGroupManagersRESTClient() { func ExampleRegionInstanceGroupManagersClient_AbandonInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionInstanceGroupManagersClient_AbandonInstances() { func ExampleRegionInstanceGroupManagersClient_ApplyUpdatesToInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleRegionInstanceGroupManagersClient_ApplyUpdatesToInstances() { func ExampleRegionInstanceGroupManagersClient_CreateInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleRegionInstanceGroupManagersClient_CreateInstances() { func ExampleRegionInstanceGroupManagersClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionInstanceGroupManagersClient_Delete() { func ExampleRegionInstanceGroupManagersClient_DeleteInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleRegionInstanceGroupManagersClient_DeleteInstances() { func ExampleRegionInstanceGroupManagersClient_DeletePerInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleRegionInstanceGroupManagersClient_DeletePerInstanceConfigs() { func ExampleRegionInstanceGroupManagersClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleRegionInstanceGroupManagersClient_Get() { func ExampleRegionInstanceGroupManagersClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleRegionInstanceGroupManagersClient_Insert() { func ExampleRegionInstanceGroupManagersClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleRegionInstanceGroupManagersClient_List() { func ExampleRegionInstanceGroupManagersClient_ListErrors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleRegionInstanceGroupManagersClient_ListErrors() { func ExampleRegionInstanceGroupManagersClient_ListManagedInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -297,6 +357,11 @@ func ExampleRegionInstanceGroupManagersClient_ListManagedInstances() { func ExampleRegionInstanceGroupManagersClient_ListPerInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -323,6 +388,11 @@ func ExampleRegionInstanceGroupManagersClient_ListPerInstanceConfigs() { func ExampleRegionInstanceGroupManagersClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -346,6 +416,11 @@ func ExampleRegionInstanceGroupManagersClient_Patch() { func ExampleRegionInstanceGroupManagersClient_PatchPerInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -369,6 +444,11 @@ func ExampleRegionInstanceGroupManagersClient_PatchPerInstanceConfigs() { func ExampleRegionInstanceGroupManagersClient_RecreateInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -392,6 +472,11 @@ func ExampleRegionInstanceGroupManagersClient_RecreateInstances() { func ExampleRegionInstanceGroupManagersClient_Resize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -415,6 +500,11 @@ func ExampleRegionInstanceGroupManagersClient_Resize() { func ExampleRegionInstanceGroupManagersClient_SetInstanceTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +528,11 @@ func ExampleRegionInstanceGroupManagersClient_SetInstanceTemplate() { func ExampleRegionInstanceGroupManagersClient_SetTargetPools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -461,6 +556,11 @@ func ExampleRegionInstanceGroupManagersClient_SetTargetPools() { func ExampleRegionInstanceGroupManagersClient_UpdatePerInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_instance_groups_client.go b/compute/apiv1/region_instance_groups_client.go index 60914d28e54..21f83efefd4 100644 --- a/compute/apiv1/region_instance_groups_client.go +++ b/compute/apiv1/region_instance_groups_client.go @@ -97,7 +97,8 @@ func (c *RegionInstanceGroupsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionInstanceGroupsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -202,7 +203,7 @@ func (c *regionInstanceGroupsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionInstanceGroupsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_instance_groups_client_example_test.go b/compute/apiv1/region_instance_groups_client_example_test.go index f2e1b8f144b..8c2df969a16 100644 --- a/compute/apiv1/region_instance_groups_client_example_test.go +++ b/compute/apiv1/region_instance_groups_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionInstanceGroupsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionInstanceGroupsRESTClient() { func ExampleRegionInstanceGroupsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleRegionInstanceGroupsClient_Get() { func ExampleRegionInstanceGroupsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleRegionInstanceGroupsClient_List() { func ExampleRegionInstanceGroupsClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleRegionInstanceGroupsClient_ListInstances() { func ExampleRegionInstanceGroupsClient_SetNamedPorts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_instances_client.go b/compute/apiv1/region_instances_client.go index 328534e8bcc..206e8de56bc 100644 --- a/compute/apiv1/region_instances_client.go +++ b/compute/apiv1/region_instances_client.go @@ -85,7 +85,8 @@ func (c *RegionInstancesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionInstancesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -175,7 +176,7 @@ func (c *regionInstancesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionInstancesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_instances_client_example_test.go b/compute/apiv1/region_instances_client_example_test.go index 61baa64c6af..463301bf150 100644 --- a/compute/apiv1/region_instances_client_example_test.go +++ b/compute/apiv1/region_instances_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewRegionInstancesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewRegionInstancesRESTClient() { func ExampleRegionInstancesClient_BulkInsert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_network_endpoint_groups_client.go b/compute/apiv1/region_network_endpoint_groups_client.go index 433e0f1a22f..38aadf5fab0 100644 --- a/compute/apiv1/region_network_endpoint_groups_client.go +++ b/compute/apiv1/region_network_endpoint_groups_client.go @@ -97,7 +97,8 @@ func (c *RegionNetworkEndpointGroupsClient) setGoogleClientInfo(keyval ...string // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionNetworkEndpointGroupsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -202,7 +203,7 @@ func (c *regionNetworkEndpointGroupsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionNetworkEndpointGroupsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_network_endpoint_groups_client_example_test.go b/compute/apiv1/region_network_endpoint_groups_client_example_test.go index 3d00aea023c..634c79b0f30 100644 --- a/compute/apiv1/region_network_endpoint_groups_client_example_test.go +++ b/compute/apiv1/region_network_endpoint_groups_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionNetworkEndpointGroupsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionNetworkEndpointGroupsRESTClient() { func ExampleRegionNetworkEndpointGroupsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionNetworkEndpointGroupsClient_Delete() { func ExampleRegionNetworkEndpointGroupsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionNetworkEndpointGroupsClient_Get() { func ExampleRegionNetworkEndpointGroupsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionNetworkEndpointGroupsClient_Insert() { func ExampleRegionNetworkEndpointGroupsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_network_firewall_policies_client.go b/compute/apiv1/region_network_firewall_policies_client.go index 59ed6cd69af..e4286de95c5 100644 --- a/compute/apiv1/region_network_firewall_policies_client.go +++ b/compute/apiv1/region_network_firewall_policies_client.go @@ -136,7 +136,8 @@ func (c *RegionNetworkFirewallPoliciesClient) setGoogleClientInfo(keyval ...stri // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionNetworkFirewallPoliciesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -306,7 +307,7 @@ func (c *regionNetworkFirewallPoliciesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionNetworkFirewallPoliciesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_network_firewall_policies_client_example_test.go b/compute/apiv1/region_network_firewall_policies_client_example_test.go index 460c85a4869..ca640b9a2bc 100644 --- a/compute/apiv1/region_network_firewall_policies_client_example_test.go +++ b/compute/apiv1/region_network_firewall_policies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionNetworkFirewallPoliciesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionNetworkFirewallPoliciesRESTClient() { func ExampleRegionNetworkFirewallPoliciesClient_AddAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_AddAssociation() { func ExampleRegionNetworkFirewallPoliciesClient_AddRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_AddRule() { func ExampleRegionNetworkFirewallPoliciesClient_CloneRules() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_CloneRules() { func ExampleRegionNetworkFirewallPoliciesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_Delete() { func ExampleRegionNetworkFirewallPoliciesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_Get() { func ExampleRegionNetworkFirewallPoliciesClient_GetAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_GetAssociation() { func ExampleRegionNetworkFirewallPoliciesClient_GetEffectiveFirewalls() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_GetEffectiveFirewalls() { func ExampleRegionNetworkFirewallPoliciesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -210,6 +255,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_GetIamPolicy() { func ExampleRegionNetworkFirewallPoliciesClient_GetRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -230,6 +280,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_GetRule() { func ExampleRegionNetworkFirewallPoliciesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +308,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_Insert() { func ExampleRegionNetworkFirewallPoliciesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -279,6 +339,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_List() { func ExampleRegionNetworkFirewallPoliciesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_Patch() { func ExampleRegionNetworkFirewallPoliciesClient_PatchRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -325,6 +395,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_PatchRule() { func ExampleRegionNetworkFirewallPoliciesClient_RemoveAssociation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -348,6 +423,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_RemoveAssociation() { func ExampleRegionNetworkFirewallPoliciesClient_RemoveRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -371,6 +451,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_RemoveRule() { func ExampleRegionNetworkFirewallPoliciesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -391,6 +476,11 @@ func ExampleRegionNetworkFirewallPoliciesClient_SetIamPolicy() { func ExampleRegionNetworkFirewallPoliciesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_notification_endpoints_client.go b/compute/apiv1/region_notification_endpoints_client.go index f3ab95a70c4..abd08b15b99 100644 --- a/compute/apiv1/region_notification_endpoints_client.go +++ b/compute/apiv1/region_notification_endpoints_client.go @@ -97,7 +97,8 @@ func (c *RegionNotificationEndpointsClient) setGoogleClientInfo(keyval ...string // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionNotificationEndpointsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -202,7 +203,7 @@ func (c *regionNotificationEndpointsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionNotificationEndpointsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_notification_endpoints_client_example_test.go b/compute/apiv1/region_notification_endpoints_client_example_test.go index b382c5e4053..59037b9b95a 100644 --- a/compute/apiv1/region_notification_endpoints_client_example_test.go +++ b/compute/apiv1/region_notification_endpoints_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionNotificationEndpointsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionNotificationEndpointsRESTClient() { func ExampleRegionNotificationEndpointsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionNotificationEndpointsClient_Delete() { func ExampleRegionNotificationEndpointsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionNotificationEndpointsClient_Get() { func ExampleRegionNotificationEndpointsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionNotificationEndpointsClient_Insert() { func ExampleRegionNotificationEndpointsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_operations_client.go b/compute/apiv1/region_operations_client.go index 25fa748b7a4..9b8d6fb94a9 100644 --- a/compute/apiv1/region_operations_client.go +++ b/compute/apiv1/region_operations_client.go @@ -96,7 +96,8 @@ func (c *RegionOperationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionOperationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -185,7 +186,7 @@ func (c *regionOperationsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionOperationsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_operations_client_example_test.go b/compute/apiv1/region_operations_client_example_test.go index c824fe84259..5fa4deed8f7 100644 --- a/compute/apiv1/region_operations_client_example_test.go +++ b/compute/apiv1/region_operations_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionOperationsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionOperationsRESTClient() { func ExampleRegionOperationsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleRegionOperationsClient_Delete() { func ExampleRegionOperationsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleRegionOperationsClient_Get() { func ExampleRegionOperationsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionOperationsClient_List() { func ExampleRegionOperationsClient_Wait() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_security_policies_client.go b/compute/apiv1/region_security_policies_client.go index 8a224068609..e63830f799c 100644 --- a/compute/apiv1/region_security_policies_client.go +++ b/compute/apiv1/region_security_policies_client.go @@ -100,7 +100,8 @@ func (c *RegionSecurityPoliciesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionSecurityPoliciesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -210,7 +211,7 @@ func (c *regionSecurityPoliciesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionSecurityPoliciesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_security_policies_client_example_test.go b/compute/apiv1/region_security_policies_client_example_test.go index 8755b540b6d..ce884b8ef58 100644 --- a/compute/apiv1/region_security_policies_client_example_test.go +++ b/compute/apiv1/region_security_policies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionSecurityPoliciesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionSecurityPoliciesRESTClient() { func ExampleRegionSecurityPoliciesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionSecurityPoliciesClient_Delete() { func ExampleRegionSecurityPoliciesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionSecurityPoliciesClient_Get() { func ExampleRegionSecurityPoliciesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionSecurityPoliciesClient_Insert() { func ExampleRegionSecurityPoliciesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionSecurityPoliciesClient_List() { func ExampleRegionSecurityPoliciesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_ssl_certificates_client.go b/compute/apiv1/region_ssl_certificates_client.go index 939bc762a54..f0e81e62ea0 100644 --- a/compute/apiv1/region_ssl_certificates_client.go +++ b/compute/apiv1/region_ssl_certificates_client.go @@ -97,7 +97,8 @@ func (c *RegionSslCertificatesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionSslCertificatesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -202,7 +203,7 @@ func (c *regionSslCertificatesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionSslCertificatesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_ssl_certificates_client_example_test.go b/compute/apiv1/region_ssl_certificates_client_example_test.go index 3d90f002e6d..a554975fa73 100644 --- a/compute/apiv1/region_ssl_certificates_client_example_test.go +++ b/compute/apiv1/region_ssl_certificates_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionSslCertificatesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionSslCertificatesRESTClient() { func ExampleRegionSslCertificatesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionSslCertificatesClient_Delete() { func ExampleRegionSslCertificatesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionSslCertificatesClient_Get() { func ExampleRegionSslCertificatesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionSslCertificatesClient_Insert() { func ExampleRegionSslCertificatesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_target_http_proxies_client.go b/compute/apiv1/region_target_http_proxies_client.go index a469c06615d..9083b222f39 100644 --- a/compute/apiv1/region_target_http_proxies_client.go +++ b/compute/apiv1/region_target_http_proxies_client.go @@ -100,7 +100,8 @@ func (c *RegionTargetHttpProxiesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionTargetHttpProxiesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -210,7 +211,7 @@ func (c *regionTargetHttpProxiesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionTargetHttpProxiesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_target_http_proxies_client_example_test.go b/compute/apiv1/region_target_http_proxies_client_example_test.go index 7551c3a5b3d..1949c3100b2 100644 --- a/compute/apiv1/region_target_http_proxies_client_example_test.go +++ b/compute/apiv1/region_target_http_proxies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionTargetHttpProxiesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionTargetHttpProxiesRESTClient() { func ExampleRegionTargetHttpProxiesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionTargetHttpProxiesClient_Delete() { func ExampleRegionTargetHttpProxiesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionTargetHttpProxiesClient_Get() { func ExampleRegionTargetHttpProxiesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionTargetHttpProxiesClient_Insert() { func ExampleRegionTargetHttpProxiesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionTargetHttpProxiesClient_List() { func ExampleRegionTargetHttpProxiesClient_SetUrlMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_target_https_proxies_client.go b/compute/apiv1/region_target_https_proxies_client.go index 8751afa613b..89d1cf6635b 100644 --- a/compute/apiv1/region_target_https_proxies_client.go +++ b/compute/apiv1/region_target_https_proxies_client.go @@ -106,7 +106,8 @@ func (c *RegionTargetHttpsProxiesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionTargetHttpsProxiesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -226,7 +227,7 @@ func (c *regionTargetHttpsProxiesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionTargetHttpsProxiesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_target_https_proxies_client_example_test.go b/compute/apiv1/region_target_https_proxies_client_example_test.go index b6ccb9441ea..c60efb61af5 100644 --- a/compute/apiv1/region_target_https_proxies_client_example_test.go +++ b/compute/apiv1/region_target_https_proxies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionTargetHttpsProxiesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionTargetHttpsProxiesRESTClient() { func ExampleRegionTargetHttpsProxiesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionTargetHttpsProxiesClient_Delete() { func ExampleRegionTargetHttpsProxiesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionTargetHttpsProxiesClient_Get() { func ExampleRegionTargetHttpsProxiesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionTargetHttpsProxiesClient_Insert() { func ExampleRegionTargetHttpsProxiesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionTargetHttpsProxiesClient_List() { func ExampleRegionTargetHttpsProxiesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleRegionTargetHttpsProxiesClient_Patch() { func ExampleRegionTargetHttpsProxiesClient_SetSslCertificates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleRegionTargetHttpsProxiesClient_SetSslCertificates() { func ExampleRegionTargetHttpsProxiesClient_SetUrlMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/region_url_maps_client.go b/compute/apiv1/region_url_maps_client.go index 287dac8856f..f08416d1a32 100644 --- a/compute/apiv1/region_url_maps_client.go +++ b/compute/apiv1/region_url_maps_client.go @@ -106,7 +106,8 @@ func (c *RegionUrlMapsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionUrlMapsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -226,7 +227,7 @@ func (c *regionUrlMapsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionUrlMapsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/region_url_maps_client_example_test.go b/compute/apiv1/region_url_maps_client_example_test.go index 683370d37fe..6ec72c31f08 100644 --- a/compute/apiv1/region_url_maps_client_example_test.go +++ b/compute/apiv1/region_url_maps_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionUrlMapsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionUrlMapsRESTClient() { func ExampleRegionUrlMapsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRegionUrlMapsClient_Delete() { func ExampleRegionUrlMapsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRegionUrlMapsClient_Get() { func ExampleRegionUrlMapsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRegionUrlMapsClient_Insert() { func ExampleRegionUrlMapsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleRegionUrlMapsClient_List() { func ExampleRegionUrlMapsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleRegionUrlMapsClient_Patch() { func ExampleRegionUrlMapsClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleRegionUrlMapsClient_Update() { func ExampleRegionUrlMapsClient_Validate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/regions_client.go b/compute/apiv1/regions_client.go index 01f01fdd280..5301f8d8cf7 100644 --- a/compute/apiv1/regions_client.go +++ b/compute/apiv1/regions_client.go @@ -90,7 +90,8 @@ func (c *RegionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -169,7 +170,7 @@ func (c *regionsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *regionsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/regions_client_example_test.go b/compute/apiv1/regions_client_example_test.go index 8c77af8156f..e0b7ac6cccb 100644 --- a/compute/apiv1/regions_client_example_test.go +++ b/compute/apiv1/regions_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRegionsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRegionsRESTClient() { func ExampleRegionsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleRegionsClient_Get() { func ExampleRegionsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/reservations_client.go b/compute/apiv1/reservations_client.go index fe90bb49460..43e82ea3c82 100644 --- a/compute/apiv1/reservations_client.go +++ b/compute/apiv1/reservations_client.go @@ -116,7 +116,8 @@ func (c *ReservationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ReservationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -251,7 +252,7 @@ func (c *reservationsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *reservationsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/reservations_client_example_test.go b/compute/apiv1/reservations_client_example_test.go index d8f42abb275..4e7daf4d9d8 100644 --- a/compute/apiv1/reservations_client_example_test.go +++ b/compute/apiv1/reservations_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewReservationsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewReservationsRESTClient() { func ExampleReservationsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleReservationsClient_AggregatedList() { func ExampleReservationsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleReservationsClient_Delete() { func ExampleReservationsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleReservationsClient_Get() { func ExampleReservationsClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleReservationsClient_GetIamPolicy() { func ExampleReservationsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleReservationsClient_Insert() { func ExampleReservationsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleReservationsClient_List() { func ExampleReservationsClient_Resize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleReservationsClient_Resize() { func ExampleReservationsClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleReservationsClient_SetIamPolicy() { func ExampleReservationsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -239,6 +289,11 @@ func ExampleReservationsClient_TestIamPermissions() { func ExampleReservationsClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/resource_policies_client.go b/compute/apiv1/resource_policies_client.go index 90a41c6bc0a..50f401a27c6 100644 --- a/compute/apiv1/resource_policies_client.go +++ b/compute/apiv1/resource_policies_client.go @@ -110,7 +110,8 @@ func (c *ResourcePoliciesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ResourcePoliciesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -235,7 +236,7 @@ func (c *resourcePoliciesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *resourcePoliciesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/resource_policies_client_example_test.go b/compute/apiv1/resource_policies_client_example_test.go index 7f183618a61..316ff814c8c 100644 --- a/compute/apiv1/resource_policies_client_example_test.go +++ b/compute/apiv1/resource_policies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewResourcePoliciesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewResourcePoliciesRESTClient() { func ExampleResourcePoliciesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleResourcePoliciesClient_AggregatedList() { func ExampleResourcePoliciesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleResourcePoliciesClient_Delete() { func ExampleResourcePoliciesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleResourcePoliciesClient_Get() { func ExampleResourcePoliciesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleResourcePoliciesClient_GetIamPolicy() { func ExampleResourcePoliciesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleResourcePoliciesClient_Insert() { func ExampleResourcePoliciesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleResourcePoliciesClient_List() { func ExampleResourcePoliciesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleResourcePoliciesClient_SetIamPolicy() { func ExampleResourcePoliciesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/routers_client.go b/compute/apiv1/routers_client.go index f0d5257e667..5af848e0acf 100644 --- a/compute/apiv1/routers_client.go +++ b/compute/apiv1/routers_client.go @@ -116,7 +116,8 @@ func (c *RoutersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RoutersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -251,7 +252,7 @@ func (c *routersRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *routersRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/routers_client_example_test.go b/compute/apiv1/routers_client_example_test.go index 0c0bf657dcc..146db82bf8a 100644 --- a/compute/apiv1/routers_client_example_test.go +++ b/compute/apiv1/routers_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRoutersRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRoutersRESTClient() { func ExampleRoutersClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleRoutersClient_AggregatedList() { func ExampleRoutersClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleRoutersClient_Delete() { func ExampleRoutersClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleRoutersClient_Get() { func ExampleRoutersClient_GetNatMappingInfo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleRoutersClient_GetNatMappingInfo() { func ExampleRoutersClient_GetRouterStatus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleRoutersClient_GetRouterStatus() { func ExampleRoutersClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleRoutersClient_Insert() { func ExampleRoutersClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleRoutersClient_List() { func ExampleRoutersClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleRoutersClient_Patch() { func ExampleRoutersClient_Preview() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleRoutersClient_Preview() { func ExampleRoutersClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/routes_client.go b/compute/apiv1/routes_client.go index 0c8947d2af5..8c7b2913b81 100644 --- a/compute/apiv1/routes_client.go +++ b/compute/apiv1/routes_client.go @@ -97,7 +97,8 @@ func (c *RoutesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RoutesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -202,7 +203,7 @@ func (c *routesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *routesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/routes_client_example_test.go b/compute/apiv1/routes_client_example_test.go index b8ed6e4975a..422ef0fdcd5 100644 --- a/compute/apiv1/routes_client_example_test.go +++ b/compute/apiv1/routes_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRoutesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRoutesRESTClient() { func ExampleRoutesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleRoutesClient_Delete() { func ExampleRoutesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleRoutesClient_Get() { func ExampleRoutesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleRoutesClient_Insert() { func ExampleRoutesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/security_policies_client.go b/compute/apiv1/security_policies_client.go index 1d84d65fb65..63356cc9341 100644 --- a/compute/apiv1/security_policies_client.go +++ b/compute/apiv1/security_policies_client.go @@ -119,7 +119,8 @@ func (c *SecurityPoliciesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SecurityPoliciesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -259,7 +260,7 @@ func (c *securityPoliciesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *securityPoliciesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/security_policies_client_example_test.go b/compute/apiv1/security_policies_client_example_test.go index a7cbc07e059..feb127a98b0 100644 --- a/compute/apiv1/security_policies_client_example_test.go +++ b/compute/apiv1/security_policies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewSecurityPoliciesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewSecurityPoliciesRESTClient() { func ExampleSecurityPoliciesClient_AddRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleSecurityPoliciesClient_AddRule() { func ExampleSecurityPoliciesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleSecurityPoliciesClient_AggregatedList() { func ExampleSecurityPoliciesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleSecurityPoliciesClient_Delete() { func ExampleSecurityPoliciesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleSecurityPoliciesClient_Get() { func ExampleSecurityPoliciesClient_GetRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleSecurityPoliciesClient_GetRule() { func ExampleSecurityPoliciesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleSecurityPoliciesClient_Insert() { func ExampleSecurityPoliciesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleSecurityPoliciesClient_List() { func ExampleSecurityPoliciesClient_ListPreconfiguredExpressionSets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleSecurityPoliciesClient_ListPreconfiguredExpressionSets() { func ExampleSecurityPoliciesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +292,11 @@ func ExampleSecurityPoliciesClient_Patch() { func ExampleSecurityPoliciesClient_PatchRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -265,6 +320,11 @@ func ExampleSecurityPoliciesClient_PatchRule() { func ExampleSecurityPoliciesClient_RemoveRule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/service_attachments_client.go b/compute/apiv1/service_attachments_client.go index 8e02b91f1e6..0eaa2bae141 100644 --- a/compute/apiv1/service_attachments_client.go +++ b/compute/apiv1/service_attachments_client.go @@ -113,7 +113,8 @@ func (c *ServiceAttachmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServiceAttachmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,7 @@ func (c *serviceAttachmentsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *serviceAttachmentsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/service_attachments_client_example_test.go b/compute/apiv1/service_attachments_client_example_test.go index d2a1a92f09b..ee092095ee8 100644 --- a/compute/apiv1/service_attachments_client_example_test.go +++ b/compute/apiv1/service_attachments_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewServiceAttachmentsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewServiceAttachmentsRESTClient() { func ExampleServiceAttachmentsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleServiceAttachmentsClient_AggregatedList() { func ExampleServiceAttachmentsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleServiceAttachmentsClient_Delete() { func ExampleServiceAttachmentsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleServiceAttachmentsClient_Get() { func ExampleServiceAttachmentsClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleServiceAttachmentsClient_GetIamPolicy() { func ExampleServiceAttachmentsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleServiceAttachmentsClient_Insert() { func ExampleServiceAttachmentsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleServiceAttachmentsClient_List() { func ExampleServiceAttachmentsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleServiceAttachmentsClient_Patch() { func ExampleServiceAttachmentsClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleServiceAttachmentsClient_SetIamPolicy() { func ExampleServiceAttachmentsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/snapshots_client.go b/compute/apiv1/snapshots_client.go index c347ed33460..3e6a1075d6d 100644 --- a/compute/apiv1/snapshots_client.go +++ b/compute/apiv1/snapshots_client.go @@ -109,7 +109,8 @@ func (c *SnapshotsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SnapshotsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -234,7 +235,7 @@ func (c *snapshotsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *snapshotsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/snapshots_client_example_test.go b/compute/apiv1/snapshots_client_example_test.go index 091e8b11480..d010863e136 100644 --- a/compute/apiv1/snapshots_client_example_test.go +++ b/compute/apiv1/snapshots_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewSnapshotsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewSnapshotsRESTClient() { func ExampleSnapshotsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleSnapshotsClient_Delete() { func ExampleSnapshotsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleSnapshotsClient_Get() { func ExampleSnapshotsClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleSnapshotsClient_GetIamPolicy() { func ExampleSnapshotsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleSnapshotsClient_Insert() { func ExampleSnapshotsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleSnapshotsClient_List() { func ExampleSnapshotsClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleSnapshotsClient_SetIamPolicy() { func ExampleSnapshotsClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -193,6 +233,11 @@ func ExampleSnapshotsClient_SetLabels() { func ExampleSnapshotsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/ssl_certificates_client.go b/compute/apiv1/ssl_certificates_client.go index e2d8ba2f746..99f45d613a3 100644 --- a/compute/apiv1/ssl_certificates_client.go +++ b/compute/apiv1/ssl_certificates_client.go @@ -101,7 +101,8 @@ func (c *SslCertificatesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SslCertificatesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -211,7 +212,7 @@ func (c *sslCertificatesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *sslCertificatesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/ssl_certificates_client_example_test.go b/compute/apiv1/ssl_certificates_client_example_test.go index 2c63170bc48..d89cc42dc73 100644 --- a/compute/apiv1/ssl_certificates_client_example_test.go +++ b/compute/apiv1/ssl_certificates_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewSslCertificatesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewSslCertificatesRESTClient() { func ExampleSslCertificatesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleSslCertificatesClient_AggregatedList() { func ExampleSslCertificatesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleSslCertificatesClient_Delete() { func ExampleSslCertificatesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleSslCertificatesClient_Get() { func ExampleSslCertificatesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleSslCertificatesClient_Insert() { func ExampleSslCertificatesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/ssl_policies_client.go b/compute/apiv1/ssl_policies_client.go index 0178aa8679e..06abd18e284 100644 --- a/compute/apiv1/ssl_policies_client.go +++ b/compute/apiv1/ssl_policies_client.go @@ -103,7 +103,8 @@ func (c *SslPoliciesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SslPoliciesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,7 @@ func (c *sslPoliciesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *sslPoliciesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/ssl_policies_client_example_test.go b/compute/apiv1/ssl_policies_client_example_test.go index f6f8d187e84..899348da36d 100644 --- a/compute/apiv1/ssl_policies_client_example_test.go +++ b/compute/apiv1/ssl_policies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewSslPoliciesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewSslPoliciesRESTClient() { func ExampleSslPoliciesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleSslPoliciesClient_Delete() { func ExampleSslPoliciesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleSslPoliciesClient_Get() { func ExampleSslPoliciesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleSslPoliciesClient_Insert() { func ExampleSslPoliciesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleSslPoliciesClient_List() { func ExampleSslPoliciesClient_ListAvailableFeatures() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleSslPoliciesClient_ListAvailableFeatures() { func ExampleSslPoliciesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/subnetworks_client.go b/compute/apiv1/subnetworks_client.go index 5a00b93e530..7f11c662686 100644 --- a/compute/apiv1/subnetworks_client.go +++ b/compute/apiv1/subnetworks_client.go @@ -122,7 +122,8 @@ func (c *SubnetworksClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SubnetworksClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -267,7 +268,7 @@ func (c *subnetworksRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *subnetworksRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/subnetworks_client_example_test.go b/compute/apiv1/subnetworks_client_example_test.go index dddcd2a0804..1e8a6dc5a1d 100644 --- a/compute/apiv1/subnetworks_client_example_test.go +++ b/compute/apiv1/subnetworks_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewSubnetworksRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewSubnetworksRESTClient() { func ExampleSubnetworksClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleSubnetworksClient_AggregatedList() { func ExampleSubnetworksClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleSubnetworksClient_Delete() { func ExampleSubnetworksClient_ExpandIpCidrRange() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleSubnetworksClient_ExpandIpCidrRange() { func ExampleSubnetworksClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleSubnetworksClient_Get() { func ExampleSubnetworksClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleSubnetworksClient_GetIamPolicy() { func ExampleSubnetworksClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleSubnetworksClient_Insert() { func ExampleSubnetworksClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleSubnetworksClient_List() { func ExampleSubnetworksClient_ListUsable() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleSubnetworksClient_ListUsable() { func ExampleSubnetworksClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +298,11 @@ func ExampleSubnetworksClient_Patch() { func ExampleSubnetworksClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleSubnetworksClient_SetIamPolicy() { func ExampleSubnetworksClient_SetPrivateIpGoogleAccess() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -291,6 +351,11 @@ func ExampleSubnetworksClient_SetPrivateIpGoogleAccess() { func ExampleSubnetworksClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/target_grpc_proxies_client.go b/compute/apiv1/target_grpc_proxies_client.go index 5987381d7b1..3f02afde6e6 100644 --- a/compute/apiv1/target_grpc_proxies_client.go +++ b/compute/apiv1/target_grpc_proxies_client.go @@ -100,7 +100,8 @@ func (c *TargetGrpcProxiesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TargetGrpcProxiesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -210,7 +211,7 @@ func (c *targetGrpcProxiesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *targetGrpcProxiesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/target_grpc_proxies_client_example_test.go b/compute/apiv1/target_grpc_proxies_client_example_test.go index 814d6517118..01d3a7a143e 100644 --- a/compute/apiv1/target_grpc_proxies_client_example_test.go +++ b/compute/apiv1/target_grpc_proxies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTargetGrpcProxiesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTargetGrpcProxiesRESTClient() { func ExampleTargetGrpcProxiesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleTargetGrpcProxiesClient_Delete() { func ExampleTargetGrpcProxiesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleTargetGrpcProxiesClient_Get() { func ExampleTargetGrpcProxiesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleTargetGrpcProxiesClient_Insert() { func ExampleTargetGrpcProxiesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleTargetGrpcProxiesClient_List() { func ExampleTargetGrpcProxiesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/target_http_proxies_client.go b/compute/apiv1/target_http_proxies_client.go index 8f996576783..178a2ba7942 100644 --- a/compute/apiv1/target_http_proxies_client.go +++ b/compute/apiv1/target_http_proxies_client.go @@ -107,7 +107,8 @@ func (c *TargetHttpProxiesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TargetHttpProxiesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -227,7 +228,7 @@ func (c *targetHttpProxiesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *targetHttpProxiesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/target_http_proxies_client_example_test.go b/compute/apiv1/target_http_proxies_client_example_test.go index c2cd5aa5232..688ab8b4c8f 100644 --- a/compute/apiv1/target_http_proxies_client_example_test.go +++ b/compute/apiv1/target_http_proxies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTargetHttpProxiesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTargetHttpProxiesRESTClient() { func ExampleTargetHttpProxiesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleTargetHttpProxiesClient_AggregatedList() { func ExampleTargetHttpProxiesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleTargetHttpProxiesClient_Delete() { func ExampleTargetHttpProxiesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleTargetHttpProxiesClient_Get() { func ExampleTargetHttpProxiesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleTargetHttpProxiesClient_Insert() { func ExampleTargetHttpProxiesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleTargetHttpProxiesClient_List() { func ExampleTargetHttpProxiesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleTargetHttpProxiesClient_Patch() { func ExampleTargetHttpProxiesClient_SetUrlMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/target_https_proxies_client.go b/compute/apiv1/target_https_proxies_client.go index 1e31119389b..4ad1946c92c 100644 --- a/compute/apiv1/target_https_proxies_client.go +++ b/compute/apiv1/target_https_proxies_client.go @@ -119,7 +119,8 @@ func (c *TargetHttpsProxiesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TargetHttpsProxiesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -259,7 +260,7 @@ func (c *targetHttpsProxiesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *targetHttpsProxiesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/target_https_proxies_client_example_test.go b/compute/apiv1/target_https_proxies_client_example_test.go index 308366b6f6f..20e9a6014d0 100644 --- a/compute/apiv1/target_https_proxies_client_example_test.go +++ b/compute/apiv1/target_https_proxies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTargetHttpsProxiesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTargetHttpsProxiesRESTClient() { func ExampleTargetHttpsProxiesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleTargetHttpsProxiesClient_AggregatedList() { func ExampleTargetHttpsProxiesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleTargetHttpsProxiesClient_Delete() { func ExampleTargetHttpsProxiesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleTargetHttpsProxiesClient_Get() { func ExampleTargetHttpsProxiesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleTargetHttpsProxiesClient_Insert() { func ExampleTargetHttpsProxiesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleTargetHttpsProxiesClient_List() { func ExampleTargetHttpsProxiesClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleTargetHttpsProxiesClient_Patch() { func ExampleTargetHttpsProxiesClient_SetCertificateMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleTargetHttpsProxiesClient_SetCertificateMap() { func ExampleTargetHttpsProxiesClient_SetQuicOverride() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleTargetHttpsProxiesClient_SetQuicOverride() { func ExampleTargetHttpsProxiesClient_SetSslCertificates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +298,11 @@ func ExampleTargetHttpsProxiesClient_SetSslCertificates() { func ExampleTargetHttpsProxiesClient_SetSslPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleTargetHttpsProxiesClient_SetSslPolicy() { func ExampleTargetHttpsProxiesClient_SetUrlMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/target_instances_client.go b/compute/apiv1/target_instances_client.go index 6349f301521..2a1e2427611 100644 --- a/compute/apiv1/target_instances_client.go +++ b/compute/apiv1/target_instances_client.go @@ -101,7 +101,8 @@ func (c *TargetInstancesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TargetInstancesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -211,7 +212,7 @@ func (c *targetInstancesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *targetInstancesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/target_instances_client_example_test.go b/compute/apiv1/target_instances_client_example_test.go index 3d132954f60..5236bd6f652 100644 --- a/compute/apiv1/target_instances_client_example_test.go +++ b/compute/apiv1/target_instances_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTargetInstancesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTargetInstancesRESTClient() { func ExampleTargetInstancesClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleTargetInstancesClient_AggregatedList() { func ExampleTargetInstancesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleTargetInstancesClient_Delete() { func ExampleTargetInstancesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleTargetInstancesClient_Get() { func ExampleTargetInstancesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleTargetInstancesClient_Insert() { func ExampleTargetInstancesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/target_pools_client.go b/compute/apiv1/target_pools_client.go index cf77fd9fd65..8e304b33d47 100644 --- a/compute/apiv1/target_pools_client.go +++ b/compute/apiv1/target_pools_client.go @@ -119,7 +119,8 @@ func (c *TargetPoolsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TargetPoolsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -259,7 +260,7 @@ func (c *targetPoolsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *targetPoolsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/target_pools_client_example_test.go b/compute/apiv1/target_pools_client_example_test.go index 9c86cbbc52d..97bb8f40fc8 100644 --- a/compute/apiv1/target_pools_client_example_test.go +++ b/compute/apiv1/target_pools_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTargetPoolsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTargetPoolsRESTClient() { func ExampleTargetPoolsClient_AddHealthCheck() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleTargetPoolsClient_AddHealthCheck() { func ExampleTargetPoolsClient_AddInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleTargetPoolsClient_AddInstance() { func ExampleTargetPoolsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleTargetPoolsClient_AggregatedList() { func ExampleTargetPoolsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +158,11 @@ func ExampleTargetPoolsClient_Delete() { func ExampleTargetPoolsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleTargetPoolsClient_Get() { func ExampleTargetPoolsClient_GetHealth() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleTargetPoolsClient_GetHealth() { func ExampleTargetPoolsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleTargetPoolsClient_Insert() { func ExampleTargetPoolsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleTargetPoolsClient_List() { func ExampleTargetPoolsClient_RemoveHealthCheck() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -245,6 +295,11 @@ func ExampleTargetPoolsClient_RemoveHealthCheck() { func ExampleTargetPoolsClient_RemoveInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleTargetPoolsClient_RemoveInstance() { func ExampleTargetPoolsClient_SetBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/target_ssl_proxies_client.go b/compute/apiv1/target_ssl_proxies_client.go index c96f8f2d98c..5f7d94e43d0 100644 --- a/compute/apiv1/target_ssl_proxies_client.go +++ b/compute/apiv1/target_ssl_proxies_client.go @@ -112,7 +112,8 @@ func (c *TargetSslProxiesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TargetSslProxiesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -242,7 +243,7 @@ func (c *targetSslProxiesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *targetSslProxiesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/target_ssl_proxies_client_example_test.go b/compute/apiv1/target_ssl_proxies_client_example_test.go index fde6bcad9b8..3af2d582a20 100644 --- a/compute/apiv1/target_ssl_proxies_client_example_test.go +++ b/compute/apiv1/target_ssl_proxies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTargetSslProxiesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTargetSslProxiesRESTClient() { func ExampleTargetSslProxiesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleTargetSslProxiesClient_Delete() { func ExampleTargetSslProxiesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleTargetSslProxiesClient_Get() { func ExampleTargetSslProxiesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleTargetSslProxiesClient_Insert() { func ExampleTargetSslProxiesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleTargetSslProxiesClient_List() { func ExampleTargetSslProxiesClient_SetBackendService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleTargetSslProxiesClient_SetBackendService() { func ExampleTargetSslProxiesClient_SetCertificateMap() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleTargetSslProxiesClient_SetCertificateMap() { func ExampleTargetSslProxiesClient_SetProxyHeader() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleTargetSslProxiesClient_SetProxyHeader() { func ExampleTargetSslProxiesClient_SetSslCertificates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleTargetSslProxiesClient_SetSslCertificates() { func ExampleTargetSslProxiesClient_SetSslPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/target_tcp_proxies_client.go b/compute/apiv1/target_tcp_proxies_client.go index 3410577e3dd..f46cf90c6e5 100644 --- a/compute/apiv1/target_tcp_proxies_client.go +++ b/compute/apiv1/target_tcp_proxies_client.go @@ -103,7 +103,8 @@ func (c *TargetTcpProxiesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TargetTcpProxiesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,7 @@ func (c *targetTcpProxiesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *targetTcpProxiesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/target_tcp_proxies_client_example_test.go b/compute/apiv1/target_tcp_proxies_client_example_test.go index 1e9c7826dd2..debca114d90 100644 --- a/compute/apiv1/target_tcp_proxies_client_example_test.go +++ b/compute/apiv1/target_tcp_proxies_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTargetTcpProxiesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTargetTcpProxiesRESTClient() { func ExampleTargetTcpProxiesClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleTargetTcpProxiesClient_Delete() { func ExampleTargetTcpProxiesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleTargetTcpProxiesClient_Get() { func ExampleTargetTcpProxiesClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleTargetTcpProxiesClient_Insert() { func ExampleTargetTcpProxiesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleTargetTcpProxiesClient_List() { func ExampleTargetTcpProxiesClient_SetBackendService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleTargetTcpProxiesClient_SetBackendService() { func ExampleTargetTcpProxiesClient_SetProxyHeader() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/target_vpn_gateways_client.go b/compute/apiv1/target_vpn_gateways_client.go index 7ffbc98ab2e..1c5dd8368b5 100644 --- a/compute/apiv1/target_vpn_gateways_client.go +++ b/compute/apiv1/target_vpn_gateways_client.go @@ -101,7 +101,8 @@ func (c *TargetVpnGatewaysClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TargetVpnGatewaysClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -211,7 +212,7 @@ func (c *targetVpnGatewaysRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *targetVpnGatewaysRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/target_vpn_gateways_client_example_test.go b/compute/apiv1/target_vpn_gateways_client_example_test.go index f57670225f5..eafaa20f5f2 100644 --- a/compute/apiv1/target_vpn_gateways_client_example_test.go +++ b/compute/apiv1/target_vpn_gateways_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTargetVpnGatewaysRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTargetVpnGatewaysRESTClient() { func ExampleTargetVpnGatewaysClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleTargetVpnGatewaysClient_AggregatedList() { func ExampleTargetVpnGatewaysClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleTargetVpnGatewaysClient_Delete() { func ExampleTargetVpnGatewaysClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleTargetVpnGatewaysClient_Get() { func ExampleTargetVpnGatewaysClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleTargetVpnGatewaysClient_Insert() { func ExampleTargetVpnGatewaysClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/url_maps_client.go b/compute/apiv1/url_maps_client.go index 884baa704d2..9e3bf35b45e 100644 --- a/compute/apiv1/url_maps_client.go +++ b/compute/apiv1/url_maps_client.go @@ -113,7 +113,8 @@ func (c *UrlMapsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *UrlMapsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,7 @@ func (c *urlMapsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *urlMapsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/url_maps_client_example_test.go b/compute/apiv1/url_maps_client_example_test.go index 1c2293224ee..f6c4529b1f4 100644 --- a/compute/apiv1/url_maps_client_example_test.go +++ b/compute/apiv1/url_maps_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewUrlMapsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewUrlMapsRESTClient() { func ExampleUrlMapsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleUrlMapsClient_AggregatedList() { func ExampleUrlMapsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleUrlMapsClient_Delete() { func ExampleUrlMapsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleUrlMapsClient_Get() { func ExampleUrlMapsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleUrlMapsClient_Insert() { func ExampleUrlMapsClient_InvalidateCache() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -153,6 +183,11 @@ func ExampleUrlMapsClient_InvalidateCache() { func ExampleUrlMapsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleUrlMapsClient_List() { func ExampleUrlMapsClient_Patch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleUrlMapsClient_Patch() { func ExampleUrlMapsClient_Update() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleUrlMapsClient_Update() { func ExampleUrlMapsClient_Validate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/vpn_gateways_client.go b/compute/apiv1/vpn_gateways_client.go index 5f64f8b3474..674bc3efb5c 100644 --- a/compute/apiv1/vpn_gateways_client.go +++ b/compute/apiv1/vpn_gateways_client.go @@ -110,7 +110,8 @@ func (c *VpnGatewaysClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VpnGatewaysClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -235,7 +236,7 @@ func (c *vpnGatewaysRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *vpnGatewaysRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/vpn_gateways_client_example_test.go b/compute/apiv1/vpn_gateways_client_example_test.go index 1e11fd72fa0..5ca7225ea50 100644 --- a/compute/apiv1/vpn_gateways_client_example_test.go +++ b/compute/apiv1/vpn_gateways_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewVpnGatewaysRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewVpnGatewaysRESTClient() { func ExampleVpnGatewaysClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleVpnGatewaysClient_AggregatedList() { func ExampleVpnGatewaysClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleVpnGatewaysClient_Delete() { func ExampleVpnGatewaysClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleVpnGatewaysClient_Get() { func ExampleVpnGatewaysClient_GetStatus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleVpnGatewaysClient_GetStatus() { func ExampleVpnGatewaysClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleVpnGatewaysClient_Insert() { func ExampleVpnGatewaysClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +211,11 @@ func ExampleVpnGatewaysClient_List() { func ExampleVpnGatewaysClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleVpnGatewaysClient_SetLabels() { func ExampleVpnGatewaysClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/vpn_tunnels_client.go b/compute/apiv1/vpn_tunnels_client.go index a37395dccb4..ab26a7a36a5 100644 --- a/compute/apiv1/vpn_tunnels_client.go +++ b/compute/apiv1/vpn_tunnels_client.go @@ -101,7 +101,8 @@ func (c *VpnTunnelsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VpnTunnelsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -211,7 +212,7 @@ func (c *vpnTunnelsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *vpnTunnelsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/vpn_tunnels_client_example_test.go b/compute/apiv1/vpn_tunnels_client_example_test.go index b17e460a760..3b9d6bdcf66 100644 --- a/compute/apiv1/vpn_tunnels_client_example_test.go +++ b/compute/apiv1/vpn_tunnels_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewVpnTunnelsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewVpnTunnelsRESTClient() { func ExampleVpnTunnelsClient_AggregatedList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleVpnTunnelsClient_AggregatedList() { func ExampleVpnTunnelsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleVpnTunnelsClient_Delete() { func ExampleVpnTunnelsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleVpnTunnelsClient_Get() { func ExampleVpnTunnelsClient_Insert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleVpnTunnelsClient_Insert() { func ExampleVpnTunnelsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/zone_operations_client.go b/compute/apiv1/zone_operations_client.go index 5431635f432..9a33a4412c6 100644 --- a/compute/apiv1/zone_operations_client.go +++ b/compute/apiv1/zone_operations_client.go @@ -96,7 +96,8 @@ func (c *ZoneOperationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ZoneOperationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -185,7 +186,7 @@ func (c *zoneOperationsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *zoneOperationsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/zone_operations_client_example_test.go b/compute/apiv1/zone_operations_client_example_test.go index 262a9220955..3807ad19983 100644 --- a/compute/apiv1/zone_operations_client_example_test.go +++ b/compute/apiv1/zone_operations_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewZoneOperationsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewZoneOperationsRESTClient() { func ExampleZoneOperationsClient_Delete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleZoneOperationsClient_Delete() { func ExampleZoneOperationsClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleZoneOperationsClient_Get() { func ExampleZoneOperationsClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleZoneOperationsClient_List() { func ExampleZoneOperationsClient_Wait() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/apiv1/zones_client.go b/compute/apiv1/zones_client.go index 48d1edbcd61..dbb26d7e78b 100644 --- a/compute/apiv1/zones_client.go +++ b/compute/apiv1/zones_client.go @@ -90,7 +90,8 @@ func (c *ZonesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ZonesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -169,7 +170,7 @@ func (c *zonesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *zonesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/compute/apiv1/zones_client_example_test.go b/compute/apiv1/zones_client_example_test.go index 8ffbc469d00..661beccda5f 100644 --- a/compute/apiv1/zones_client_example_test.go +++ b/compute/apiv1/zones_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewZonesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZonesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewZonesRESTClient() { func ExampleZonesClient_Get() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZonesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleZonesClient_Get() { func ExampleZonesClient_List() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZonesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/compute/go.mod b/compute/go.mod index 3d4203be11f..29976657674 100644 --- a/compute/go.mod +++ b/compute/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220819153447-c7cd466b0e09 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/compute/go.sum b/compute/go.sum index b2d668a58dd..68bf4df4f7f 100644 --- a/compute/go.sum +++ b/compute/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/contactcenterinsights/apiv1/contact_center_insights_client.go b/contactcenterinsights/apiv1/contact_center_insights_client.go index 6e051222846..30de245b45d 100644 --- a/contactcenterinsights/apiv1/contact_center_insights_client.go +++ b/contactcenterinsights/apiv1/contact_center_insights_client.go @@ -589,7 +589,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -897,7 +898,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/contactcenterinsights/apiv1/contact_center_insights_client_example_test.go b/contactcenterinsights/apiv1/contact_center_insights_client_example_test.go index 30e7fab8816..dac72900913 100644 --- a/contactcenterinsights/apiv1/contact_center_insights_client_example_test.go +++ b/contactcenterinsights/apiv1/contact_center_insights_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_CreateConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleClient_CreateConversation() { func ExampleClient_UpdateConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleClient_UpdateConversation() { func ExampleClient_GetConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleClient_GetConversation() { func ExampleClient_ListConversations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleClient_ListConversations() { func ExampleClient_DeleteConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleClient_DeleteConversation() { func ExampleClient_CreateAnalysis() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleClient_CreateAnalysis() { func ExampleClient_GetAnalysis() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleClient_GetAnalysis() { func ExampleClient_ListAnalyses() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +259,11 @@ func ExampleClient_ListAnalyses() { func ExampleClient_DeleteAnalysis() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +282,11 @@ func ExampleClient_DeleteAnalysis() { func ExampleClient_ExportInsightsData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -257,6 +312,11 @@ func ExampleClient_ExportInsightsData() { func ExampleClient_CreateIssueModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +342,11 @@ func ExampleClient_CreateIssueModel() { func ExampleClient_UpdateIssueModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleClient_UpdateIssueModel() { func ExampleClient_GetIssueModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +392,11 @@ func ExampleClient_GetIssueModel() { func ExampleClient_ListIssueModels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -342,6 +417,11 @@ func ExampleClient_ListIssueModels() { func ExampleClient_DeleteIssueModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -365,6 +445,11 @@ func ExampleClient_DeleteIssueModel() { func ExampleClient_DeployIssueModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -390,6 +475,11 @@ func ExampleClient_DeployIssueModel() { func ExampleClient_UndeployIssueModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -415,6 +505,11 @@ func ExampleClient_UndeployIssueModel() { func ExampleClient_GetIssue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -435,6 +530,11 @@ func ExampleClient_GetIssue() { func ExampleClient_ListIssues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -455,6 +555,11 @@ func ExampleClient_ListIssues() { func ExampleClient_UpdateIssue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -475,6 +580,11 @@ func ExampleClient_UpdateIssue() { func ExampleClient_CalculateIssueModelStats() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -495,6 +605,11 @@ func ExampleClient_CalculateIssueModelStats() { func ExampleClient_CreatePhraseMatcher() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -515,6 +630,11 @@ func ExampleClient_CreatePhraseMatcher() { func ExampleClient_GetPhraseMatcher() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -535,6 +655,11 @@ func ExampleClient_GetPhraseMatcher() { func ExampleClient_ListPhraseMatchers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -561,6 +686,11 @@ func ExampleClient_ListPhraseMatchers() { func ExampleClient_DeletePhraseMatcher() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -579,6 +709,11 @@ func ExampleClient_DeletePhraseMatcher() { func ExampleClient_UpdatePhraseMatcher() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -599,6 +734,11 @@ func ExampleClient_UpdatePhraseMatcher() { func ExampleClient_CalculateStats() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -619,6 +759,11 @@ func ExampleClient_CalculateStats() { func ExampleClient_GetSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -639,6 +784,11 @@ func ExampleClient_GetSettings() { func ExampleClient_UpdateSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -659,6 +809,11 @@ func ExampleClient_UpdateSettings() { func ExampleClient_CreateView() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -679,6 +834,11 @@ func ExampleClient_CreateView() { func ExampleClient_GetView() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -699,6 +859,11 @@ func ExampleClient_GetView() { func ExampleClient_ListViews() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -725,6 +890,11 @@ func ExampleClient_ListViews() { func ExampleClient_UpdateView() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -745,6 +915,11 @@ func ExampleClient_UpdateView() { func ExampleClient_DeleteView() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -763,6 +938,11 @@ func ExampleClient_DeleteView() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -781,6 +961,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -801,6 +986,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/contactcenterinsights/apiv1/doc.go b/contactcenterinsights/apiv1/doc.go index 4a9cd23d0ea..2efd0a47223 100644 --- a/contactcenterinsights/apiv1/doc.go +++ b/contactcenterinsights/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := contactcenterinsights.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := contactcenterinsights.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/contactcenterinsights/go.mod b/contactcenterinsights/go.mod index 4182f1ab260..96778b024f7 100644 --- a/contactcenterinsights/go.mod +++ b/contactcenterinsights/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/contactcenterinsights/go.sum b/contactcenterinsights/go.sum index d53b92237a3..98ea25417ac 100644 --- a/contactcenterinsights/go.sum +++ b/contactcenterinsights/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/container/apiv1/cluster_manager_client.go b/container/apiv1/cluster_manager_client.go index 84b4317f22f..86b6ab7a6cd 100644 --- a/container/apiv1/cluster_manager_client.go +++ b/container/apiv1/cluster_manager_client.go @@ -292,7 +292,8 @@ func (c *ClusterManagerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ClusterManagerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -558,7 +559,8 @@ func NewClusterManagerClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *clusterManagerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/container/apiv1/cluster_manager_client_example_test.go b/container/apiv1/cluster_manager_client_example_test.go index 8b2672c599d..a24ee68e3eb 100644 --- a/container/apiv1/cluster_manager_client_example_test.go +++ b/container/apiv1/cluster_manager_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClusterManagerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClusterManagerClient() { func ExampleClusterManagerClient_ListClusters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClusterManagerClient_ListClusters() { func ExampleClusterManagerClient_GetCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClusterManagerClient_GetCluster() { func ExampleClusterManagerClient_CreateCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleClusterManagerClient_CreateCluster() { func ExampleClusterManagerClient_UpdateCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleClusterManagerClient_UpdateCluster() { func ExampleClusterManagerClient_UpdateNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleClusterManagerClient_UpdateNodePool() { func ExampleClusterManagerClient_SetNodePoolAutoscaling() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -158,6 +193,11 @@ func ExampleClusterManagerClient_SetNodePoolAutoscaling() { func ExampleClusterManagerClient_SetLoggingService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -178,6 +218,11 @@ func ExampleClusterManagerClient_SetLoggingService() { func ExampleClusterManagerClient_SetMonitoringService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -198,6 +243,11 @@ func ExampleClusterManagerClient_SetMonitoringService() { func ExampleClusterManagerClient_SetAddonsConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +268,11 @@ func ExampleClusterManagerClient_SetAddonsConfig() { func ExampleClusterManagerClient_SetLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +293,11 @@ func ExampleClusterManagerClient_SetLocations() { func ExampleClusterManagerClient_UpdateMaster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +318,11 @@ func ExampleClusterManagerClient_UpdateMaster() { func ExampleClusterManagerClient_SetMasterAuth() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +343,11 @@ func ExampleClusterManagerClient_SetMasterAuth() { func ExampleClusterManagerClient_DeleteCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -298,6 +368,11 @@ func ExampleClusterManagerClient_DeleteCluster() { func ExampleClusterManagerClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +393,11 @@ func ExampleClusterManagerClient_ListOperations() { func ExampleClusterManagerClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -338,6 +418,11 @@ func ExampleClusterManagerClient_GetOperation() { func ExampleClusterManagerClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -356,6 +441,11 @@ func ExampleClusterManagerClient_CancelOperation() { func ExampleClusterManagerClient_GetServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -376,6 +466,11 @@ func ExampleClusterManagerClient_GetServerConfig() { func ExampleClusterManagerClient_GetJSONWebKeys() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -396,6 +491,11 @@ func ExampleClusterManagerClient_GetJSONWebKeys() { func ExampleClusterManagerClient_ListNodePools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -416,6 +516,11 @@ func ExampleClusterManagerClient_ListNodePools() { func ExampleClusterManagerClient_GetNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -436,6 +541,11 @@ func ExampleClusterManagerClient_GetNodePool() { func ExampleClusterManagerClient_CreateNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -456,6 +566,11 @@ func ExampleClusterManagerClient_CreateNodePool() { func ExampleClusterManagerClient_DeleteNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -476,6 +591,11 @@ func ExampleClusterManagerClient_DeleteNodePool() { func ExampleClusterManagerClient_CompleteNodePoolUpgrade() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -494,6 +614,11 @@ func ExampleClusterManagerClient_CompleteNodePoolUpgrade() { func ExampleClusterManagerClient_RollbackNodePoolUpgrade() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -514,6 +639,11 @@ func ExampleClusterManagerClient_RollbackNodePoolUpgrade() { func ExampleClusterManagerClient_SetNodePoolManagement() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -534,6 +664,11 @@ func ExampleClusterManagerClient_SetNodePoolManagement() { func ExampleClusterManagerClient_SetLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -554,6 +689,11 @@ func ExampleClusterManagerClient_SetLabels() { func ExampleClusterManagerClient_SetLegacyAbac() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -574,6 +714,11 @@ func ExampleClusterManagerClient_SetLegacyAbac() { func ExampleClusterManagerClient_StartIPRotation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -594,6 +739,11 @@ func ExampleClusterManagerClient_StartIPRotation() { func ExampleClusterManagerClient_CompleteIPRotation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -614,6 +764,11 @@ func ExampleClusterManagerClient_CompleteIPRotation() { func ExampleClusterManagerClient_SetNodePoolSize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -634,6 +789,11 @@ func ExampleClusterManagerClient_SetNodePoolSize() { func ExampleClusterManagerClient_SetNetworkPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -654,6 +814,11 @@ func ExampleClusterManagerClient_SetNetworkPolicy() { func ExampleClusterManagerClient_SetMaintenancePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -674,6 +839,11 @@ func ExampleClusterManagerClient_SetMaintenancePolicy() { func ExampleClusterManagerClient_ListUsableSubnetworks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/container/apiv1/doc.go b/container/apiv1/doc.go index 89c030c614a..9e7a13ef71e 100644 --- a/container/apiv1/doc.go +++ b/container/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := container.NewClusterManagerClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := container.NewClusterManagerClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/container/go.mod b/container/go.mod index 3ba2630e5d8..1e5f3c87d32 100644 --- a/container/go.mod +++ b/container/go.mod @@ -4,9 +4,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -15,12 +14,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/container/go.sum b/container/go.sum index 76c87faf83d..741db6bb224 100644 --- a/container/go.sum +++ b/container/go.sum @@ -314,8 +314,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -501,8 +502,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/containeranalysis/apiv1beta1/container_analysis_v1_beta1_client.go b/containeranalysis/apiv1beta1/container_analysis_v1_beta1_client.go index 7b380c6cb80..d8f788eebd7 100644 --- a/containeranalysis/apiv1beta1/container_analysis_v1_beta1_client.go +++ b/containeranalysis/apiv1beta1/container_analysis_v1_beta1_client.go @@ -184,7 +184,8 @@ func (c *ContainerAnalysisV1Beta1Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ContainerAnalysisV1Beta1Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -311,7 +312,8 @@ func NewContainerAnalysisV1Beta1Client(ctx context.Context, opts ...option.Clien // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *containerAnalysisV1Beta1GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -407,7 +409,7 @@ func (c *containerAnalysisV1Beta1RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *containerAnalysisV1Beta1RESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/containeranalysis/apiv1beta1/container_analysis_v1_beta1_client_example_test.go b/containeranalysis/apiv1beta1/container_analysis_v1_beta1_client_example_test.go index f447c5a6121..bdf4bf68ce8 100644 --- a/containeranalysis/apiv1beta1/container_analysis_v1_beta1_client_example_test.go +++ b/containeranalysis/apiv1beta1/container_analysis_v1_beta1_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewContainerAnalysisV1Beta1Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewContainerAnalysisV1Beta1Client() { func ExampleNewContainerAnalysisV1Beta1RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewContainerAnalysisV1Beta1RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewContainerAnalysisV1Beta1RESTClient() { func ExampleContainerAnalysisV1Beta1Client_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -71,6 +86,11 @@ func ExampleContainerAnalysisV1Beta1Client_SetIamPolicy() { func ExampleContainerAnalysisV1Beta1Client_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -91,6 +111,11 @@ func ExampleContainerAnalysisV1Beta1Client_GetIamPolicy() { func ExampleContainerAnalysisV1Beta1Client_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +136,11 @@ func ExampleContainerAnalysisV1Beta1Client_TestIamPermissions() { func ExampleContainerAnalysisV1Beta1Client_GetScanConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -131,6 +161,11 @@ func ExampleContainerAnalysisV1Beta1Client_GetScanConfig() { func ExampleContainerAnalysisV1Beta1Client_ListScanConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +192,11 @@ func ExampleContainerAnalysisV1Beta1Client_ListScanConfigs() { func ExampleContainerAnalysisV1Beta1Client_UpdateScanConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewContainerAnalysisV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/containeranalysis/apiv1beta1/doc.go b/containeranalysis/apiv1beta1/doc.go index 99b1993cc22..ef8aebf4daf 100644 --- a/containeranalysis/apiv1beta1/doc.go +++ b/containeranalysis/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. diff --git a/containeranalysis/apiv1beta1/grafeas_v1_beta1_client.go b/containeranalysis/apiv1beta1/grafeas_v1_beta1_client.go index 36ebccfe06b..83c658a0e4e 100644 --- a/containeranalysis/apiv1beta1/grafeas_v1_beta1_client.go +++ b/containeranalysis/apiv1beta1/grafeas_v1_beta1_client.go @@ -367,7 +367,8 @@ func (c *GrafeasV1Beta1Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GrafeasV1Beta1Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -525,7 +526,8 @@ func NewGrafeasV1Beta1Client(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *grafeasV1Beta1GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -622,7 +624,7 @@ func (c *grafeasV1Beta1RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *grafeasV1Beta1RESTClient) Connection() *grpc.ClientConn { return nil } @@ -1332,8 +1334,12 @@ func (c *grafeasV1Beta1RESTClient) UpdateOccurrence(ctx context.Context, req *gr baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -1757,8 +1763,12 @@ func (c *grafeasV1Beta1RESTClient) UpdateNote(ctx context.Context, req *grafeasp baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/containeranalysis/apiv1beta1/grafeas_v1_beta1_client_example_test.go b/containeranalysis/apiv1beta1/grafeas_v1_beta1_client_example_test.go index c35c88b1029..5ffbd64a8bf 100644 --- a/containeranalysis/apiv1beta1/grafeas_v1_beta1_client_example_test.go +++ b/containeranalysis/apiv1beta1/grafeas_v1_beta1_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGrafeasV1Beta1Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGrafeasV1Beta1Client() { func ExampleNewGrafeasV1Beta1RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewGrafeasV1Beta1RESTClient() { func ExampleGrafeasV1Beta1Client_GetOccurrence() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleGrafeasV1Beta1Client_GetOccurrence() { func ExampleGrafeasV1Beta1Client_ListOccurrences() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleGrafeasV1Beta1Client_ListOccurrences() { func ExampleGrafeasV1Beta1Client_DeleteOccurrence() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -114,6 +139,11 @@ func ExampleGrafeasV1Beta1Client_DeleteOccurrence() { func ExampleGrafeasV1Beta1Client_CreateOccurrence() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +164,11 @@ func ExampleGrafeasV1Beta1Client_CreateOccurrence() { func ExampleGrafeasV1Beta1Client_BatchCreateOccurrences() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +189,11 @@ func ExampleGrafeasV1Beta1Client_BatchCreateOccurrences() { func ExampleGrafeasV1Beta1Client_UpdateOccurrence() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -174,6 +214,11 @@ func ExampleGrafeasV1Beta1Client_UpdateOccurrence() { func ExampleGrafeasV1Beta1Client_GetOccurrenceNote() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +239,11 @@ func ExampleGrafeasV1Beta1Client_GetOccurrenceNote() { func ExampleGrafeasV1Beta1Client_GetNote() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +264,11 @@ func ExampleGrafeasV1Beta1Client_GetNote() { func ExampleGrafeasV1Beta1Client_ListNotes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExampleGrafeasV1Beta1Client_ListNotes() { func ExampleGrafeasV1Beta1Client_DeleteNote() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +318,11 @@ func ExampleGrafeasV1Beta1Client_DeleteNote() { func ExampleGrafeasV1Beta1Client_CreateNote() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +343,11 @@ func ExampleGrafeasV1Beta1Client_CreateNote() { func ExampleGrafeasV1Beta1Client_BatchCreateNotes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -298,6 +368,11 @@ func ExampleGrafeasV1Beta1Client_BatchCreateNotes() { func ExampleGrafeasV1Beta1Client_UpdateNote() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +393,11 @@ func ExampleGrafeasV1Beta1Client_UpdateNote() { func ExampleGrafeasV1Beta1Client_ListNoteOccurrences() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -344,6 +424,11 @@ func ExampleGrafeasV1Beta1Client_ListNoteOccurrences() { func ExampleGrafeasV1Beta1Client_GetVulnerabilityOccurrencesSummary() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/containeranalysis/go.mod b/containeranalysis/go.mod index 67792b6ee02..629ba713ddc 100644 --- a/containeranalysis/go.mod +++ b/containeranalysis/go.mod @@ -5,9 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 cloud.google.com/go/grafeas v0.2.0 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -16,11 +15,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/containeranalysis/go.sum b/containeranalysis/go.sum index e86e3ce98ce..d43a1194f3a 100644 --- a/containeranalysis/go.sum +++ b/containeranalysis/go.sum @@ -315,8 +315,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -501,8 +502,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/datacatalog/apiv1/data_catalog_client.go b/datacatalog/apiv1/data_catalog_client.go index bdc89fe7dc1..db4a00458c4 100644 --- a/datacatalog/apiv1/data_catalog_client.go +++ b/datacatalog/apiv1/data_catalog_client.go @@ -272,7 +272,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -698,7 +699,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datacatalog/apiv1/data_catalog_client_example_test.go b/datacatalog/apiv1/data_catalog_client_example_test.go index cb21edccecb..1bacac3f1fd 100644 --- a/datacatalog/apiv1/data_catalog_client_example_test.go +++ b/datacatalog/apiv1/data_catalog_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_SearchCatalog() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_SearchCatalog() { func ExampleClient_CreateEntryGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleClient_CreateEntryGroup() { func ExampleClient_GetEntryGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleClient_GetEntryGroup() { func ExampleClient_UpdateEntryGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleClient_UpdateEntryGroup() { func ExampleClient_DeleteEntryGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleClient_DeleteEntryGroup() { func ExampleClient_ListEntryGroups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleClient_ListEntryGroups() { func ExampleClient_CreateEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -189,6 +229,11 @@ func ExampleClient_CreateEntry() { func ExampleClient_UpdateEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +254,11 @@ func ExampleClient_UpdateEntry() { func ExampleClient_DeleteEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -227,6 +277,11 @@ func ExampleClient_DeleteEntry() { func ExampleClient_GetEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +302,11 @@ func ExampleClient_GetEntry() { func ExampleClient_LookupEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -267,6 +327,11 @@ func ExampleClient_LookupEntry() { func ExampleClient_ListEntries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -293,6 +358,11 @@ func ExampleClient_ListEntries() { func ExampleClient_ModifyEntryOverview() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -313,6 +383,11 @@ func ExampleClient_ModifyEntryOverview() { func ExampleClient_ModifyEntryContacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -333,6 +408,11 @@ func ExampleClient_ModifyEntryContacts() { func ExampleClient_CreateTagTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -353,6 +433,11 @@ func ExampleClient_CreateTagTemplate() { func ExampleClient_GetTagTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -373,6 +458,11 @@ func ExampleClient_GetTagTemplate() { func ExampleClient_UpdateTagTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -393,6 +483,11 @@ func ExampleClient_UpdateTagTemplate() { func ExampleClient_DeleteTagTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -411,6 +506,11 @@ func ExampleClient_DeleteTagTemplate() { func ExampleClient_CreateTagTemplateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -431,6 +531,11 @@ func ExampleClient_CreateTagTemplateField() { func ExampleClient_UpdateTagTemplateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -451,6 +556,11 @@ func ExampleClient_UpdateTagTemplateField() { func ExampleClient_RenameTagTemplateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -471,6 +581,11 @@ func ExampleClient_RenameTagTemplateField() { func ExampleClient_RenameTagTemplateFieldEnumValue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -491,6 +606,11 @@ func ExampleClient_RenameTagTemplateFieldEnumValue() { func ExampleClient_DeleteTagTemplateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -509,6 +629,11 @@ func ExampleClient_DeleteTagTemplateField() { func ExampleClient_CreateTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -529,6 +654,11 @@ func ExampleClient_CreateTag() { func ExampleClient_UpdateTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -549,6 +679,11 @@ func ExampleClient_UpdateTag() { func ExampleClient_DeleteTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -567,6 +702,11 @@ func ExampleClient_DeleteTag() { func ExampleClient_ListTags() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -593,6 +733,11 @@ func ExampleClient_ListTags() { func ExampleClient_StarEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -613,6 +758,11 @@ func ExampleClient_StarEntry() { func ExampleClient_UnstarEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -633,6 +783,11 @@ func ExampleClient_UnstarEntry() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -653,6 +808,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -673,6 +833,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datacatalog/apiv1/doc.go b/datacatalog/apiv1/doc.go index 0dfca9cc8c8..bf60e8dcd13 100644 --- a/datacatalog/apiv1/doc.go +++ b/datacatalog/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datacatalog.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datacatalog.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/datacatalog/apiv1/policy_tag_manager_client.go b/datacatalog/apiv1/policy_tag_manager_client.go index 4854a28bad9..6814e0f06f1 100644 --- a/datacatalog/apiv1/policy_tag_manager_client.go +++ b/datacatalog/apiv1/policy_tag_manager_client.go @@ -138,7 +138,8 @@ func (c *PolicyTagManagerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PolicyTagManagerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -288,7 +289,8 @@ func NewPolicyTagManagerClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *policyTagManagerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datacatalog/apiv1/policy_tag_manager_client_example_test.go b/datacatalog/apiv1/policy_tag_manager_client_example_test.go index ce8ef086a78..660ad24dbc9 100644 --- a/datacatalog/apiv1/policy_tag_manager_client_example_test.go +++ b/datacatalog/apiv1/policy_tag_manager_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewPolicyTagManagerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewPolicyTagManagerClient() { func ExamplePolicyTagManagerClient_CreateTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExamplePolicyTagManagerClient_CreateTaxonomy() { func ExamplePolicyTagManagerClient_DeleteTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExamplePolicyTagManagerClient_DeleteTaxonomy() { func ExamplePolicyTagManagerClient_UpdateTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExamplePolicyTagManagerClient_UpdateTaxonomy() { func ExamplePolicyTagManagerClient_ListTaxonomies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExamplePolicyTagManagerClient_ListTaxonomies() { func ExamplePolicyTagManagerClient_GetTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExamplePolicyTagManagerClient_GetTaxonomy() { func ExamplePolicyTagManagerClient_CreatePolicyTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExamplePolicyTagManagerClient_CreatePolicyTag() { func ExamplePolicyTagManagerClient_DeletePolicyTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +221,11 @@ func ExamplePolicyTagManagerClient_DeletePolicyTag() { func ExamplePolicyTagManagerClient_UpdatePolicyTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +246,11 @@ func ExamplePolicyTagManagerClient_UpdatePolicyTag() { func ExamplePolicyTagManagerClient_ListPolicyTags() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -227,6 +277,11 @@ func ExamplePolicyTagManagerClient_ListPolicyTags() { func ExamplePolicyTagManagerClient_GetPolicyTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +302,11 @@ func ExamplePolicyTagManagerClient_GetPolicyTag() { func ExamplePolicyTagManagerClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -267,6 +327,11 @@ func ExamplePolicyTagManagerClient_GetIamPolicy() { func ExamplePolicyTagManagerClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -287,6 +352,11 @@ func ExamplePolicyTagManagerClient_SetIamPolicy() { func ExamplePolicyTagManagerClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datacatalog/apiv1/policy_tag_manager_serialization_client.go b/datacatalog/apiv1/policy_tag_manager_serialization_client.go index 45b624fba1c..7a6e3d04275 100644 --- a/datacatalog/apiv1/policy_tag_manager_serialization_client.go +++ b/datacatalog/apiv1/policy_tag_manager_serialization_client.go @@ -103,7 +103,8 @@ func (c *PolicyTagManagerSerializationClient) setGoogleClientInfo(keyval ...stri // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PolicyTagManagerSerializationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -212,7 +213,8 @@ func NewPolicyTagManagerSerializationClient(ctx context.Context, opts ...option. // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *policyTagManagerSerializationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datacatalog/apiv1/policy_tag_manager_serialization_client_example_test.go b/datacatalog/apiv1/policy_tag_manager_serialization_client_example_test.go index 1c76848e926..59865554db0 100644 --- a/datacatalog/apiv1/policy_tag_manager_serialization_client_example_test.go +++ b/datacatalog/apiv1/policy_tag_manager_serialization_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewPolicyTagManagerSerializationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewPolicyTagManagerSerializationClient() { func ExamplePolicyTagManagerSerializationClient_ReplaceTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExamplePolicyTagManagerSerializationClient_ReplaceTaxonomy() { func ExamplePolicyTagManagerSerializationClient_ImportTaxonomies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExamplePolicyTagManagerSerializationClient_ImportTaxonomies() { func ExamplePolicyTagManagerSerializationClient_ExportTaxonomies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datacatalog/apiv1beta1/data_catalog_client.go b/datacatalog/apiv1beta1/data_catalog_client.go index c8d89614375..727304c558e 100644 --- a/datacatalog/apiv1beta1/data_catalog_client.go +++ b/datacatalog/apiv1beta1/data_catalog_client.go @@ -287,7 +287,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -628,7 +629,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datacatalog/apiv1beta1/data_catalog_client_example_test.go b/datacatalog/apiv1beta1/data_catalog_client_example_test.go index 5278da60391..0ba106df4a2 100644 --- a/datacatalog/apiv1beta1/data_catalog_client_example_test.go +++ b/datacatalog/apiv1beta1/data_catalog_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_SearchCatalog() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_SearchCatalog() { func ExampleClient_CreateEntryGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleClient_CreateEntryGroup() { func ExampleClient_UpdateEntryGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleClient_UpdateEntryGroup() { func ExampleClient_GetEntryGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleClient_GetEntryGroup() { func ExampleClient_DeleteEntryGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleClient_DeleteEntryGroup() { func ExampleClient_ListEntryGroups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleClient_ListEntryGroups() { func ExampleClient_CreateEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -189,6 +229,11 @@ func ExampleClient_CreateEntry() { func ExampleClient_UpdateEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +254,11 @@ func ExampleClient_UpdateEntry() { func ExampleClient_DeleteEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -227,6 +277,11 @@ func ExampleClient_DeleteEntry() { func ExampleClient_GetEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +302,11 @@ func ExampleClient_GetEntry() { func ExampleClient_LookupEntry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -267,6 +327,11 @@ func ExampleClient_LookupEntry() { func ExampleClient_ListEntries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -293,6 +358,11 @@ func ExampleClient_ListEntries() { func ExampleClient_CreateTagTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -313,6 +383,11 @@ func ExampleClient_CreateTagTemplate() { func ExampleClient_GetTagTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -333,6 +408,11 @@ func ExampleClient_GetTagTemplate() { func ExampleClient_UpdateTagTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -353,6 +433,11 @@ func ExampleClient_UpdateTagTemplate() { func ExampleClient_DeleteTagTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -371,6 +456,11 @@ func ExampleClient_DeleteTagTemplate() { func ExampleClient_CreateTagTemplateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -391,6 +481,11 @@ func ExampleClient_CreateTagTemplateField() { func ExampleClient_UpdateTagTemplateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -411,6 +506,11 @@ func ExampleClient_UpdateTagTemplateField() { func ExampleClient_RenameTagTemplateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -431,6 +531,11 @@ func ExampleClient_RenameTagTemplateField() { func ExampleClient_DeleteTagTemplateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -449,6 +554,11 @@ func ExampleClient_DeleteTagTemplateField() { func ExampleClient_CreateTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -469,6 +579,11 @@ func ExampleClient_CreateTag() { func ExampleClient_UpdateTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -489,6 +604,11 @@ func ExampleClient_UpdateTag() { func ExampleClient_DeleteTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -507,6 +627,11 @@ func ExampleClient_DeleteTag() { func ExampleClient_ListTags() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -533,6 +658,11 @@ func ExampleClient_ListTags() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -553,6 +683,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -573,6 +708,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datacatalog/apiv1beta1/doc.go b/datacatalog/apiv1beta1/doc.go index 9379470788f..5d05cdd970e 100644 --- a/datacatalog/apiv1beta1/doc.go +++ b/datacatalog/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datacatalog.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datacatalog.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/datacatalog/apiv1beta1/policy_tag_manager_client.go b/datacatalog/apiv1beta1/policy_tag_manager_client.go index 098a744c336..f94b0c9a9c0 100644 --- a/datacatalog/apiv1beta1/policy_tag_manager_client.go +++ b/datacatalog/apiv1beta1/policy_tag_manager_client.go @@ -133,7 +133,8 @@ func (c *PolicyTagManagerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PolicyTagManagerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -267,7 +268,8 @@ func NewPolicyTagManagerClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *policyTagManagerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datacatalog/apiv1beta1/policy_tag_manager_client_example_test.go b/datacatalog/apiv1beta1/policy_tag_manager_client_example_test.go index bcc24bc979a..32db004fb11 100644 --- a/datacatalog/apiv1beta1/policy_tag_manager_client_example_test.go +++ b/datacatalog/apiv1beta1/policy_tag_manager_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewPolicyTagManagerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewPolicyTagManagerClient() { func ExamplePolicyTagManagerClient_CreateTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExamplePolicyTagManagerClient_CreateTaxonomy() { func ExamplePolicyTagManagerClient_DeleteTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExamplePolicyTagManagerClient_DeleteTaxonomy() { func ExamplePolicyTagManagerClient_UpdateTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExamplePolicyTagManagerClient_UpdateTaxonomy() { func ExamplePolicyTagManagerClient_ListTaxonomies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExamplePolicyTagManagerClient_ListTaxonomies() { func ExamplePolicyTagManagerClient_GetTaxonomy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExamplePolicyTagManagerClient_GetTaxonomy() { func ExamplePolicyTagManagerClient_CreatePolicyTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExamplePolicyTagManagerClient_CreatePolicyTag() { func ExamplePolicyTagManagerClient_DeletePolicyTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +221,11 @@ func ExamplePolicyTagManagerClient_DeletePolicyTag() { func ExamplePolicyTagManagerClient_UpdatePolicyTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +246,11 @@ func ExamplePolicyTagManagerClient_UpdatePolicyTag() { func ExamplePolicyTagManagerClient_ListPolicyTags() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -227,6 +277,11 @@ func ExamplePolicyTagManagerClient_ListPolicyTags() { func ExamplePolicyTagManagerClient_GetPolicyTag() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +302,11 @@ func ExamplePolicyTagManagerClient_GetPolicyTag() { func ExamplePolicyTagManagerClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -267,6 +327,11 @@ func ExamplePolicyTagManagerClient_GetIamPolicy() { func ExamplePolicyTagManagerClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -287,6 +352,11 @@ func ExamplePolicyTagManagerClient_SetIamPolicy() { func ExamplePolicyTagManagerClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datacatalog/apiv1beta1/policy_tag_manager_serialization_client.go b/datacatalog/apiv1beta1/policy_tag_manager_serialization_client.go index 1dcf8cd092e..329d2f6fe7a 100644 --- a/datacatalog/apiv1beta1/policy_tag_manager_serialization_client.go +++ b/datacatalog/apiv1beta1/policy_tag_manager_serialization_client.go @@ -97,7 +97,8 @@ func (c *PolicyTagManagerSerializationClient) setGoogleClientInfo(keyval ...stri // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PolicyTagManagerSerializationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -180,7 +181,8 @@ func NewPolicyTagManagerSerializationClient(ctx context.Context, opts ...option. // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *policyTagManagerSerializationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datacatalog/apiv1beta1/policy_tag_manager_serialization_client_example_test.go b/datacatalog/apiv1beta1/policy_tag_manager_serialization_client_example_test.go index afe913969d0..39fb471e1ec 100644 --- a/datacatalog/apiv1beta1/policy_tag_manager_serialization_client_example_test.go +++ b/datacatalog/apiv1beta1/policy_tag_manager_serialization_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewPolicyTagManagerSerializationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewPolicyTagManagerSerializationClient() { func ExamplePolicyTagManagerSerializationClient_ImportTaxonomies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExamplePolicyTagManagerSerializationClient_ImportTaxonomies() { func ExamplePolicyTagManagerSerializationClient_ExportTaxonomies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datacatalog/go.mod b/datacatalog/go.mod index f4c07212cc6..38f668928e2 100644 --- a/datacatalog/go.mod +++ b/datacatalog/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -17,9 +17,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/datacatalog/go.sum b/datacatalog/go.sum index 543863e1315..b56eeb96012 100644 --- a/datacatalog/go.sum +++ b/datacatalog/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/dataflow/apiv1beta3/doc.go b/dataflow/apiv1beta3/doc.go index 93439f0797d..306f256b17a 100644 --- a/dataflow/apiv1beta3/doc.go +++ b/dataflow/apiv1beta3/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dataflow/apiv1beta3/flex_templates_client.go b/dataflow/apiv1beta3/flex_templates_client.go index 3758cbecf3c..989aca945ea 100644 --- a/dataflow/apiv1beta3/flex_templates_client.go +++ b/dataflow/apiv1beta3/flex_templates_client.go @@ -105,7 +105,8 @@ func (c *FlexTemplatesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FlexTemplatesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -175,7 +176,8 @@ func NewFlexTemplatesClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *flexTemplatesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -259,7 +261,7 @@ func (c *flexTemplatesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *flexTemplatesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/dataflow/apiv1beta3/flex_templates_client_example_test.go b/dataflow/apiv1beta3/flex_templates_client_example_test.go index 436d5940a7b..fb1f19a7100 100644 --- a/dataflow/apiv1beta3/flex_templates_client_example_test.go +++ b/dataflow/apiv1beta3/flex_templates_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewFlexTemplatesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewFlexTemplatesClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewFlexTemplatesClient() { func ExampleNewFlexTemplatesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewFlexTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewFlexTemplatesRESTClient() { func ExampleFlexTemplatesClient_LaunchFlexTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewFlexTemplatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataflow/apiv1beta3/jobs_v1_beta3_client.go b/dataflow/apiv1beta3/jobs_v1_beta3_client.go index f5e99e8f7df..2231f61f5da 100644 --- a/dataflow/apiv1beta3/jobs_v1_beta3_client.go +++ b/dataflow/apiv1beta3/jobs_v1_beta3_client.go @@ -133,7 +133,8 @@ func (c *JobsV1Beta3Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *JobsV1Beta3Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -259,7 +260,8 @@ func NewJobsV1Beta3Client(ctx context.Context, opts ...option.ClientOption) (*Jo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *jobsV1Beta3GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -344,7 +346,7 @@ func (c *jobsV1Beta3RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *jobsV1Beta3RESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/dataflow/apiv1beta3/jobs_v1_beta3_client_example_test.go b/dataflow/apiv1beta3/jobs_v1_beta3_client_example_test.go index 8ff7c00f8ce..b451749e3df 100644 --- a/dataflow/apiv1beta3/jobs_v1_beta3_client_example_test.go +++ b/dataflow/apiv1beta3/jobs_v1_beta3_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewJobsV1Beta3Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewJobsV1Beta3Client() { func ExampleNewJobsV1Beta3RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewJobsV1Beta3RESTClient() { func ExampleJobsV1Beta3Client_CreateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleJobsV1Beta3Client_CreateJob() { func ExampleJobsV1Beta3Client_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +110,11 @@ func ExampleJobsV1Beta3Client_GetJob() { func ExampleJobsV1Beta3Client_UpdateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +135,11 @@ func ExampleJobsV1Beta3Client_UpdateJob() { func ExampleJobsV1Beta3Client_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleJobsV1Beta3Client_ListJobs() { func ExampleJobsV1Beta3Client_AggregatedListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleJobsV1Beta3Client_AggregatedListJobs() { func ExampleJobsV1Beta3Client_CheckActiveJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleJobsV1Beta3Client_CheckActiveJobs() { func ExampleJobsV1Beta3Client_SnapshotJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/dataflow/apiv1beta3/messages_v1_beta3_client.go b/dataflow/apiv1beta3/messages_v1_beta3_client.go index 4c144a458ba..4f20837b0f4 100644 --- a/dataflow/apiv1beta3/messages_v1_beta3_client.go +++ b/dataflow/apiv1beta3/messages_v1_beta3_client.go @@ -107,7 +107,8 @@ func (c *MessagesV1Beta3Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MessagesV1Beta3Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -184,7 +185,8 @@ func NewMessagesV1Beta3Client(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *messagesV1Beta3GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -269,7 +271,7 @@ func (c *messagesV1Beta3RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *messagesV1Beta3RESTClient) Connection() *grpc.ClientConn { return nil } @@ -346,11 +348,12 @@ func (c *messagesV1Beta3RESTClient) ListJobMessages(ctx context.Context, req *da baseUrl.Path += fmt.Sprintf("/v1b3/projects/%v/locations/%v/jobs/%v/messages", req.GetProjectId(), req.GetLocation(), req.GetJobId()) params := url.Values{} - if req.GetEndTime().GetNanos() != 0 { - params.Add("endTime.nanos", fmt.Sprintf("%v", req.GetEndTime().GetNanos())) - } - if req.GetEndTime().GetSeconds() != 0 { - params.Add("endTime.seconds", fmt.Sprintf("%v", req.GetEndTime().GetSeconds())) + if req.GetEndTime() != nil { + endTime, err := protojson.Marshal(req.GetEndTime()) + if err != nil { + return nil, "", err + } + params.Add("endTime", string(endTime)) } if req.GetMinimumImportance() != 0 { params.Add("minimumImportance", fmt.Sprintf("%v", req.GetMinimumImportance())) @@ -361,11 +364,12 @@ func (c *messagesV1Beta3RESTClient) ListJobMessages(ctx context.Context, req *da if req.GetPageToken() != "" { params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) } - if req.GetStartTime().GetNanos() != 0 { - params.Add("startTime.nanos", fmt.Sprintf("%v", req.GetStartTime().GetNanos())) - } - if req.GetStartTime().GetSeconds() != 0 { - params.Add("startTime.seconds", fmt.Sprintf("%v", req.GetStartTime().GetSeconds())) + if req.GetStartTime() != nil { + startTime, err := protojson.Marshal(req.GetStartTime()) + if err != nil { + return nil, "", err + } + params.Add("startTime", string(startTime)) } baseUrl.RawQuery = params.Encode() diff --git a/dataflow/apiv1beta3/messages_v1_beta3_client_example_test.go b/dataflow/apiv1beta3/messages_v1_beta3_client_example_test.go index 3a5a3b2d803..bdbd2f14169 100644 --- a/dataflow/apiv1beta3/messages_v1_beta3_client_example_test.go +++ b/dataflow/apiv1beta3/messages_v1_beta3_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewMessagesV1Beta3Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMessagesV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewMessagesV1Beta3Client() { func ExampleNewMessagesV1Beta3RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMessagesV1Beta3RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewMessagesV1Beta3RESTClient() { func ExampleMessagesV1Beta3Client_ListJobMessages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMessagesV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/dataflow/apiv1beta3/metrics_v1_beta3_client.go b/dataflow/apiv1beta3/metrics_v1_beta3_client.go index b3a1ac3ca69..b8dc9d5b837 100644 --- a/dataflow/apiv1beta3/metrics_v1_beta3_client.go +++ b/dataflow/apiv1beta3/metrics_v1_beta3_client.go @@ -116,7 +116,8 @@ func (c *MetricsV1Beta3Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MetricsV1Beta3Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -208,7 +209,8 @@ func NewMetricsV1Beta3Client(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *metricsV1Beta3GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -293,7 +295,7 @@ func (c *metricsV1Beta3RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *metricsV1Beta3RESTClient) Connection() *grpc.ClientConn { return nil } @@ -424,11 +426,12 @@ func (c *metricsV1Beta3RESTClient) GetJobMetrics(ctx context.Context, req *dataf baseUrl.Path += fmt.Sprintf("/v1b3/projects/%v/locations/%v/jobs/%v/metrics", req.GetProjectId(), req.GetLocation(), req.GetJobId()) params := url.Values{} - if req.GetStartTime().GetNanos() != 0 { - params.Add("startTime.nanos", fmt.Sprintf("%v", req.GetStartTime().GetNanos())) - } - if req.GetStartTime().GetSeconds() != 0 { - params.Add("startTime.seconds", fmt.Sprintf("%v", req.GetStartTime().GetSeconds())) + if req.GetStartTime() != nil { + startTime, err := protojson.Marshal(req.GetStartTime()) + if err != nil { + return nil, err + } + params.Add("startTime", string(startTime)) } baseUrl.RawQuery = params.Encode() @@ -592,11 +595,12 @@ func (c *metricsV1Beta3RESTClient) GetStageExecutionDetails(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1b3/projects/%v/locations/%v/jobs/%v/stages/%v/executionDetails", req.GetProjectId(), req.GetLocation(), req.GetJobId(), req.GetStageId()) params := url.Values{} - if req.GetEndTime().GetNanos() != 0 { - params.Add("endTime.nanos", fmt.Sprintf("%v", req.GetEndTime().GetNanos())) - } - if req.GetEndTime().GetSeconds() != 0 { - params.Add("endTime.seconds", fmt.Sprintf("%v", req.GetEndTime().GetSeconds())) + if req.GetEndTime() != nil { + endTime, err := protojson.Marshal(req.GetEndTime()) + if err != nil { + return nil, "", err + } + params.Add("endTime", string(endTime)) } if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) @@ -604,11 +608,12 @@ func (c *metricsV1Beta3RESTClient) GetStageExecutionDetails(ctx context.Context, if req.GetPageToken() != "" { params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) } - if req.GetStartTime().GetNanos() != 0 { - params.Add("startTime.nanos", fmt.Sprintf("%v", req.GetStartTime().GetNanos())) - } - if req.GetStartTime().GetSeconds() != 0 { - params.Add("startTime.seconds", fmt.Sprintf("%v", req.GetStartTime().GetSeconds())) + if req.GetStartTime() != nil { + startTime, err := protojson.Marshal(req.GetStartTime()) + if err != nil { + return nil, "", err + } + params.Add("startTime", string(startTime)) } baseUrl.RawQuery = params.Encode() diff --git a/dataflow/apiv1beta3/metrics_v1_beta3_client_example_test.go b/dataflow/apiv1beta3/metrics_v1_beta3_client_example_test.go index e4f8e5eeae0..99d6813005d 100644 --- a/dataflow/apiv1beta3/metrics_v1_beta3_client_example_test.go +++ b/dataflow/apiv1beta3/metrics_v1_beta3_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewMetricsV1Beta3Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMetricsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewMetricsV1Beta3Client() { func ExampleNewMetricsV1Beta3RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMetricsV1Beta3RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewMetricsV1Beta3RESTClient() { func ExampleMetricsV1Beta3Client_GetJobMetrics() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMetricsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleMetricsV1Beta3Client_GetJobMetrics() { func ExampleMetricsV1Beta3Client_GetJobExecutionDetails() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMetricsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleMetricsV1Beta3Client_GetJobExecutionDetails() { func ExampleMetricsV1Beta3Client_GetStageExecutionDetails() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMetricsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/dataflow/apiv1beta3/snapshots_v1_beta3_client.go b/dataflow/apiv1beta3/snapshots_v1_beta3_client.go index 9081bd5b14d..90e959d98aa 100644 --- a/dataflow/apiv1beta3/snapshots_v1_beta3_client.go +++ b/dataflow/apiv1beta3/snapshots_v1_beta3_client.go @@ -113,7 +113,8 @@ func (c *SnapshotsV1Beta3Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SnapshotsV1Beta3Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -193,7 +194,8 @@ func NewSnapshotsV1Beta3Client(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *snapshotsV1Beta3GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -277,7 +279,7 @@ func (c *snapshotsV1Beta3RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *snapshotsV1Beta3RESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/dataflow/apiv1beta3/snapshots_v1_beta3_client_example_test.go b/dataflow/apiv1beta3/snapshots_v1_beta3_client_example_test.go index e39114790df..4a4343a8556 100644 --- a/dataflow/apiv1beta3/snapshots_v1_beta3_client_example_test.go +++ b/dataflow/apiv1beta3/snapshots_v1_beta3_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewSnapshotsV1Beta3Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewSnapshotsV1Beta3Client() { func ExampleNewSnapshotsV1Beta3RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewSnapshotsV1Beta3RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewSnapshotsV1Beta3RESTClient() { func ExampleSnapshotsV1Beta3Client_GetSnapshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleSnapshotsV1Beta3Client_GetSnapshot() { func ExampleSnapshotsV1Beta3Client_DeleteSnapshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +109,11 @@ func ExampleSnapshotsV1Beta3Client_DeleteSnapshot() { func ExampleSnapshotsV1Beta3Client_ListSnapshots() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/dataflow/apiv1beta3/templates_client.go b/dataflow/apiv1beta3/templates_client.go index 19781ed3353..2c6b3b9c06a 100644 --- a/dataflow/apiv1beta3/templates_client.go +++ b/dataflow/apiv1beta3/templates_client.go @@ -114,7 +114,8 @@ func (c *TemplatesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TemplatesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -194,7 +195,8 @@ func NewTemplatesClient(ctx context.Context, opts ...option.ClientOption) (*Temp // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *templatesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -278,7 +280,7 @@ func (c *templatesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *templatesRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/dataflow/apiv1beta3/templates_client_example_test.go b/dataflow/apiv1beta3/templates_client_example_test.go index eb13dd038d2..6e21af5d7c4 100644 --- a/dataflow/apiv1beta3/templates_client_example_test.go +++ b/dataflow/apiv1beta3/templates_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewTemplatesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewTemplatesClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewTemplatesClient() { func ExampleNewTemplatesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewTemplatesRESTClient() { func ExampleTemplatesClient_CreateJobFromTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewTemplatesClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleTemplatesClient_CreateJobFromTemplate() { func ExampleTemplatesClient_LaunchTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewTemplatesClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +109,11 @@ func ExampleTemplatesClient_LaunchTemplate() { func ExampleTemplatesClient_GetTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewTemplatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataflow/go.mod b/dataflow/go.mod index b407eb5059b..c156be7af09 100644 --- a/dataflow/go.mod +++ b/dataflow/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/dataflow/go.sum b/dataflow/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/dataflow/go.sum +++ b/dataflow/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/dataform/apiv1alpha2/dataform_client.go b/dataform/apiv1alpha2/dataform_client.go index 3fae083017e..4d058c4de84 100644 --- a/dataform/apiv1alpha2/dataform_client.go +++ b/dataform/apiv1alpha2/dataform_client.go @@ -270,7 +270,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -559,7 +560,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -644,7 +646,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1756,8 +1758,12 @@ func (c *restClient) UpdateRepository(ctx context.Context, req *dataformpb.Updat baseUrl.Path += fmt.Sprintf("/v1alpha2/%v", req.GetRepository().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dataform/apiv1alpha2/dataform_client_example_test.go b/dataform/apiv1alpha2/dataform_client_example_test.go index bdeb995e6d9..d0c7782eace 100644 --- a/dataform/apiv1alpha2/dataform_client_example_test.go +++ b/dataform/apiv1alpha2/dataform_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListRepositories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_ListRepositories() { func ExampleClient_GetRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleClient_GetRepository() { func ExampleClient_CreateRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleClient_CreateRepository() { func ExampleClient_UpdateRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleClient_UpdateRepository() { func ExampleClient_DeleteRepository() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleClient_DeleteRepository() { func ExampleClient_FetchRemoteBranches() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleClient_FetchRemoteBranches() { func ExampleClient_ListWorkspaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleClient_ListWorkspaces() { func ExampleClient_GetWorkspace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +272,11 @@ func ExampleClient_GetWorkspace() { func ExampleClient_CreateWorkspace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +297,11 @@ func ExampleClient_CreateWorkspace() { func ExampleClient_DeleteWorkspace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -260,6 +320,11 @@ func ExampleClient_DeleteWorkspace() { func ExampleClient_InstallNpmPackages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +345,11 @@ func ExampleClient_InstallNpmPackages() { func ExampleClient_PullGitCommits() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -298,6 +368,11 @@ func ExampleClient_PullGitCommits() { func ExampleClient_PushGitCommits() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -316,6 +391,11 @@ func ExampleClient_PushGitCommits() { func ExampleClient_FetchFileGitStatuses() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -336,6 +416,11 @@ func ExampleClient_FetchFileGitStatuses() { func ExampleClient_FetchGitAheadBehind() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -356,6 +441,11 @@ func ExampleClient_FetchGitAheadBehind() { func ExampleClient_CommitWorkspaceChanges() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -374,6 +464,11 @@ func ExampleClient_CommitWorkspaceChanges() { func ExampleClient_ResetWorkspaceChanges() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -392,6 +487,11 @@ func ExampleClient_ResetWorkspaceChanges() { func ExampleClient_FetchFileDiff() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -412,6 +512,11 @@ func ExampleClient_FetchFileDiff() { func ExampleClient_QueryDirectoryContents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +543,11 @@ func ExampleClient_QueryDirectoryContents() { func ExampleClient_MakeDirectory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -458,6 +568,11 @@ func ExampleClient_MakeDirectory() { func ExampleClient_RemoveDirectory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -476,6 +591,11 @@ func ExampleClient_RemoveDirectory() { func ExampleClient_MoveDirectory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -496,6 +616,11 @@ func ExampleClient_MoveDirectory() { func ExampleClient_ReadFile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -516,6 +641,11 @@ func ExampleClient_ReadFile() { func ExampleClient_RemoveFile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -534,6 +664,11 @@ func ExampleClient_RemoveFile() { func ExampleClient_MoveFile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -554,6 +689,11 @@ func ExampleClient_MoveFile() { func ExampleClient_WriteFile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -574,6 +714,11 @@ func ExampleClient_WriteFile() { func ExampleClient_ListCompilationResults() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -600,6 +745,11 @@ func ExampleClient_ListCompilationResults() { func ExampleClient_GetCompilationResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -620,6 +770,11 @@ func ExampleClient_GetCompilationResult() { func ExampleClient_CreateCompilationResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -640,6 +795,11 @@ func ExampleClient_CreateCompilationResult() { func ExampleClient_QueryCompilationResultActions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -666,6 +826,11 @@ func ExampleClient_QueryCompilationResultActions() { func ExampleClient_ListWorkflowInvocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -692,6 +857,11 @@ func ExampleClient_ListWorkflowInvocations() { func ExampleClient_GetWorkflowInvocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -712,6 +882,11 @@ func ExampleClient_GetWorkflowInvocation() { func ExampleClient_CreateWorkflowInvocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -732,6 +907,11 @@ func ExampleClient_CreateWorkflowInvocation() { func ExampleClient_DeleteWorkflowInvocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -750,6 +930,11 @@ func ExampleClient_DeleteWorkflowInvocation() { func ExampleClient_CancelWorkflowInvocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -768,6 +953,11 @@ func ExampleClient_CancelWorkflowInvocation() { func ExampleClient_QueryWorkflowInvocationActions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -794,6 +984,11 @@ func ExampleClient_QueryWorkflowInvocationActions() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -814,6 +1009,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -840,6 +1040,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -860,6 +1065,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -880,6 +1090,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataform/apiv1alpha2/doc.go b/dataform/apiv1alpha2/doc.go index 917fd4d4f44..b2244825697 100644 --- a/dataform/apiv1alpha2/doc.go +++ b/dataform/apiv1alpha2/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataform.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataform.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dataform/go.mod b/dataform/go.mod index 8db6567b769..ac501208ad7 100644 --- a/dataform/go.mod +++ b/dataform/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.90.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/dataform/go.sum b/dataform/go.sum index e5114c0e595..930aae1a0fb 100644 --- a/dataform/go.sum +++ b/dataform/go.sum @@ -311,8 +311,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -497,8 +498,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.90.0 h1:WMnUWAvihIClUYFNeFA69VTuR3duKS3IalMGDQcLvq8= -google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/datafusion/apiv1/data_fusion_client.go b/datafusion/apiv1/data_fusion_client.go index 2a6e5986a16..6a11959f2f2 100644 --- a/datafusion/apiv1/data_fusion_client.go +++ b/datafusion/apiv1/data_fusion_client.go @@ -128,7 +128,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -272,7 +273,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datafusion/apiv1/data_fusion_client_example_test.go b/datafusion/apiv1/data_fusion_client_example_test.go index b03531eb8f0..4a84fa9ee2c 100644 --- a/datafusion/apiv1/data_fusion_client_example_test.go +++ b/datafusion/apiv1/data_fusion_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListAvailableVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListAvailableVersions() { func ExampleClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +105,11 @@ func ExampleClient_ListInstances() { func ExampleClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleClient_GetInstance() { func ExampleClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleClient_CreateInstance() { func ExampleClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -158,6 +188,11 @@ func ExampleClient_DeleteInstance() { func ExampleClient_UpdateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleClient_UpdateInstance() { func ExampleClient_RestartInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datafusion/apiv1/doc.go b/datafusion/apiv1/doc.go index 5cbacb2dbd1..8984acdb61d 100644 --- a/datafusion/apiv1/doc.go +++ b/datafusion/apiv1/doc.go @@ -30,6 +30,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datafusion.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -45,6 +50,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datafusion.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/datafusion/go.mod b/datafusion/go.mod index 39e04c4ac62..c07fbd59245 100644 --- a/datafusion/go.mod +++ b/datafusion/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/datafusion/go.sum b/datafusion/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/datafusion/go.sum +++ b/datafusion/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/datalabeling/apiv1beta1/data_labeling_client.go b/datalabeling/apiv1beta1/data_labeling_client.go index 40992c9fdda..0d3cb3435d4 100644 --- a/datalabeling/apiv1beta1/data_labeling_client.go +++ b/datalabeling/apiv1beta1/data_labeling_client.go @@ -441,7 +441,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -748,7 +749,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datalabeling/apiv1beta1/data_labeling_client_example_test.go b/datalabeling/apiv1beta1/data_labeling_client_example_test.go index c6eebe55282..a5cb36c469c 100644 --- a/datalabeling/apiv1beta1/data_labeling_client_example_test.go +++ b/datalabeling/apiv1beta1/data_labeling_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateDataset() { func ExampleClient_GetDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_GetDataset() { func ExampleClient_ListDatasets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_ListDatasets() { func ExampleClient_DeleteDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleClient_DeleteDataset() { func ExampleClient_ImportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleClient_ImportData() { func ExampleClient_ExportData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleClient_ExportData() { func ExampleClient_GetDataItem() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleClient_GetDataItem() { func ExampleClient_ListDataItems() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleClient_ListDataItems() { func ExampleClient_GetAnnotatedDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleClient_GetAnnotatedDataset() { func ExampleClient_ListAnnotatedDatasets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -264,6 +319,11 @@ func ExampleClient_ListAnnotatedDatasets() { func ExampleClient_DeleteAnnotatedDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +342,11 @@ func ExampleClient_DeleteAnnotatedDataset() { func ExampleClient_LabelImage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +372,11 @@ func ExampleClient_LabelImage() { func ExampleClient_LabelVideo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -332,6 +402,11 @@ func ExampleClient_LabelVideo() { func ExampleClient_LabelText() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -357,6 +432,11 @@ func ExampleClient_LabelText() { func ExampleClient_GetExample() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -377,6 +457,11 @@ func ExampleClient_GetExample() { func ExampleClient_ListExamples() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -403,6 +488,11 @@ func ExampleClient_ListExamples() { func ExampleClient_CreateAnnotationSpecSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -423,6 +513,11 @@ func ExampleClient_CreateAnnotationSpecSet() { func ExampleClient_GetAnnotationSpecSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +538,11 @@ func ExampleClient_GetAnnotationSpecSet() { func ExampleClient_ListAnnotationSpecSets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -469,6 +569,11 @@ func ExampleClient_ListAnnotationSpecSets() { func ExampleClient_DeleteAnnotationSpecSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -487,6 +592,11 @@ func ExampleClient_DeleteAnnotationSpecSet() { func ExampleClient_CreateInstruction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -512,6 +622,11 @@ func ExampleClient_CreateInstruction() { func ExampleClient_GetInstruction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -532,6 +647,11 @@ func ExampleClient_GetInstruction() { func ExampleClient_ListInstructions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -558,6 +678,11 @@ func ExampleClient_ListInstructions() { func ExampleClient_DeleteInstruction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -576,6 +701,11 @@ func ExampleClient_DeleteInstruction() { func ExampleClient_GetEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -596,6 +726,11 @@ func ExampleClient_GetEvaluation() { func ExampleClient_SearchEvaluations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -622,6 +757,11 @@ func ExampleClient_SearchEvaluations() { func ExampleClient_SearchExampleComparisons() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -648,6 +788,11 @@ func ExampleClient_SearchExampleComparisons() { func ExampleClient_CreateEvaluationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -668,6 +813,11 @@ func ExampleClient_CreateEvaluationJob() { func ExampleClient_UpdateEvaluationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -688,6 +838,11 @@ func ExampleClient_UpdateEvaluationJob() { func ExampleClient_GetEvaluationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -708,6 +863,11 @@ func ExampleClient_GetEvaluationJob() { func ExampleClient_PauseEvaluationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -726,6 +886,11 @@ func ExampleClient_PauseEvaluationJob() { func ExampleClient_ResumeEvaluationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -744,6 +909,11 @@ func ExampleClient_ResumeEvaluationJob() { func ExampleClient_DeleteEvaluationJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -762,6 +932,11 @@ func ExampleClient_DeleteEvaluationJob() { func ExampleClient_ListEvaluationJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datalabeling/apiv1beta1/doc.go b/datalabeling/apiv1beta1/doc.go index 2ab5f6defd4..5cca20ef0c2 100644 --- a/datalabeling/apiv1beta1/doc.go +++ b/datalabeling/apiv1beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datalabeling.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datalabeling.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/datalabeling/go.mod b/datalabeling/go.mod index 45f40661539..fa0e4a08f50 100644 --- a/datalabeling/go.mod +++ b/datalabeling/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/datalabeling/go.sum b/datalabeling/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/datalabeling/go.sum +++ b/datalabeling/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/dataplex/apiv1/content_client.go b/dataplex/apiv1/content_client.go index dfcf4769570..f59cafb633f 100644 --- a/dataplex/apiv1/content_client.go +++ b/dataplex/apiv1/content_client.go @@ -179,7 +179,8 @@ func (c *ContentClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ContentClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -338,7 +339,8 @@ func NewContentClient(ctx context.Context, opts ...option.ClientOption) (*Conten // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *contentGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dataplex/apiv1/content_client_example_test.go b/dataplex/apiv1/content_client_example_test.go index d5cebaa08ea..e970393fe47 100644 --- a/dataplex/apiv1/content_client_example_test.go +++ b/dataplex/apiv1/content_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewContentClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewContentClient() { func ExampleContentClient_CreateContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleContentClient_CreateContent() { func ExampleContentClient_UpdateContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleContentClient_UpdateContent() { func ExampleContentClient_DeleteContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleContentClient_DeleteContent() { func ExampleContentClient_GetContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -119,6 +144,11 @@ func ExampleContentClient_GetContent() { func ExampleContentClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -139,6 +169,11 @@ func ExampleContentClient_GetIamPolicy() { func ExampleContentClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +194,11 @@ func ExampleContentClient_SetIamPolicy() { func ExampleContentClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +219,11 @@ func ExampleContentClient_TestIamPermissions() { func ExampleContentClient_ListContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +250,11 @@ func ExampleContentClient_ListContent() { func ExampleContentClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +275,11 @@ func ExampleContentClient_GetLocation() { func ExampleContentClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +306,11 @@ func ExampleContentClient_ListLocations() { func ExampleContentClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +329,11 @@ func ExampleContentClient_CancelOperation() { func ExampleContentClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -287,6 +352,11 @@ func ExampleContentClient_DeleteOperation() { func ExampleContentClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +377,11 @@ func ExampleContentClient_GetOperation() { func ExampleContentClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataplex/apiv1/dataplex_client.go b/dataplex/apiv1/dataplex_client.go index 38ba6f9c5c3..bbd7a052213 100644 --- a/dataplex/apiv1/dataplex_client.go +++ b/dataplex/apiv1/dataplex_client.go @@ -386,7 +386,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -761,7 +762,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dataplex/apiv1/dataplex_client_example_test.go b/dataplex/apiv1/dataplex_client_example_test.go index 16440eb2f2b..f4a1af5fc63 100644 --- a/dataplex/apiv1/dataplex_client_example_test.go +++ b/dataplex/apiv1/dataplex_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewClient() { func ExampleClient_CreateLake() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_CreateLake() { func ExampleClient_UpdateLake() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +105,11 @@ func ExampleClient_UpdateLake() { func ExampleClient_DeleteLake() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -113,6 +133,11 @@ func ExampleClient_DeleteLake() { func ExampleClient_ListLakes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -139,6 +164,11 @@ func ExampleClient_ListLakes() { func ExampleClient_GetLake() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleClient_GetLake() { func ExampleClient_ListLakeActions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -185,6 +220,11 @@ func ExampleClient_ListLakeActions() { func ExampleClient_CreateZone() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -210,6 +250,11 @@ func ExampleClient_CreateZone() { func ExampleClient_UpdateZone() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -235,6 +280,11 @@ func ExampleClient_UpdateZone() { func ExampleClient_DeleteZone() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +308,11 @@ func ExampleClient_DeleteZone() { func ExampleClient_ListZones() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -284,6 +339,11 @@ func ExampleClient_ListZones() { func ExampleClient_GetZone() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -304,6 +364,11 @@ func ExampleClient_GetZone() { func ExampleClient_ListZoneActions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -330,6 +395,11 @@ func ExampleClient_ListZoneActions() { func ExampleClient_CreateAsset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -355,6 +425,11 @@ func ExampleClient_CreateAsset() { func ExampleClient_UpdateAsset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -380,6 +455,11 @@ func ExampleClient_UpdateAsset() { func ExampleClient_DeleteAsset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -403,6 +483,11 @@ func ExampleClient_DeleteAsset() { func ExampleClient_ListAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -429,6 +514,11 @@ func ExampleClient_ListAssets() { func ExampleClient_GetAsset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -449,6 +539,11 @@ func ExampleClient_GetAsset() { func ExampleClient_ListAssetActions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -475,6 +570,11 @@ func ExampleClient_ListAssetActions() { func ExampleClient_CreateTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -500,6 +600,11 @@ func ExampleClient_CreateTask() { func ExampleClient_UpdateTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -525,6 +630,11 @@ func ExampleClient_UpdateTask() { func ExampleClient_DeleteTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -548,6 +658,11 @@ func ExampleClient_DeleteTask() { func ExampleClient_ListTasks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -574,6 +689,11 @@ func ExampleClient_ListTasks() { func ExampleClient_GetTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -594,6 +714,11 @@ func ExampleClient_GetTask() { func ExampleClient_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -620,6 +745,11 @@ func ExampleClient_ListJobs() { func ExampleClient_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -640,6 +770,11 @@ func ExampleClient_GetJob() { func ExampleClient_CancelJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -658,6 +793,11 @@ func ExampleClient_CancelJob() { func ExampleClient_CreateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -683,6 +823,11 @@ func ExampleClient_CreateEnvironment() { func ExampleClient_UpdateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -708,6 +853,11 @@ func ExampleClient_UpdateEnvironment() { func ExampleClient_DeleteEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -731,6 +881,11 @@ func ExampleClient_DeleteEnvironment() { func ExampleClient_ListEnvironments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -757,6 +912,11 @@ func ExampleClient_ListEnvironments() { func ExampleClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -777,6 +937,11 @@ func ExampleClient_GetEnvironment() { func ExampleClient_ListSessions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -803,6 +968,11 @@ func ExampleClient_ListSessions() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -823,6 +993,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -849,6 +1024,11 @@ func ExampleClient_ListLocations() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -867,6 +1047,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -885,6 +1070,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -905,6 +1095,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataplex/apiv1/doc.go b/dataplex/apiv1/doc.go index cfac8deacf5..e974d408384 100644 --- a/dataplex/apiv1/doc.go +++ b/dataplex/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataplex.NewContentClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataplex.NewContentClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dataplex/apiv1/metadata_client.go b/dataplex/apiv1/metadata_client.go index fba7c8b68bb..913602b289f 100644 --- a/dataplex/apiv1/metadata_client.go +++ b/dataplex/apiv1/metadata_client.go @@ -182,7 +182,8 @@ func (c *MetadataClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MetadataClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -329,7 +330,8 @@ func NewMetadataClient(ctx context.Context, opts ...option.ClientOption) (*Metad // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *metadataGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dataplex/apiv1/metadata_client_example_test.go b/dataplex/apiv1/metadata_client_example_test.go index ae9dac40b47..c3b8766df01 100644 --- a/dataplex/apiv1/metadata_client_example_test.go +++ b/dataplex/apiv1/metadata_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewMetadataClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewMetadataClient() { func ExampleMetadataClient_CreateEntity() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleMetadataClient_CreateEntity() { func ExampleMetadataClient_UpdateEntity() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleMetadataClient_UpdateEntity() { func ExampleMetadataClient_DeleteEntity() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleMetadataClient_DeleteEntity() { func ExampleMetadataClient_GetEntity() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleMetadataClient_GetEntity() { func ExampleMetadataClient_ListEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleMetadataClient_ListEntities() { func ExampleMetadataClient_CreatePartition() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleMetadataClient_CreatePartition() { func ExampleMetadataClient_DeletePartition() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleMetadataClient_DeletePartition() { func ExampleMetadataClient_GetPartition() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleMetadataClient_GetPartition() { func ExampleMetadataClient_ListPartitions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleMetadataClient_ListPartitions() { func ExampleMetadataClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +303,11 @@ func ExampleMetadataClient_GetLocation() { func ExampleMetadataClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +334,11 @@ func ExampleMetadataClient_ListLocations() { func ExampleMetadataClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -292,6 +357,11 @@ func ExampleMetadataClient_CancelOperation() { func ExampleMetadataClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -310,6 +380,11 @@ func ExampleMetadataClient_DeleteOperation() { func ExampleMetadataClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. @@ -330,6 +405,11 @@ func ExampleMetadataClient_GetOperation() { func ExampleMetadataClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataplex/go.mod b/dataplex/go.mod index b053f28157c..ff8d2c9b434 100644 --- a/dataplex/go.mod +++ b/dataplex/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/dataplex/go.sum b/dataplex/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/dataplex/go.sum +++ b/dataplex/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/dataproc/apiv1/autoscaling_policy_client.go b/dataproc/apiv1/autoscaling_policy_client.go index 24f71bc5534..952bf7255f1 100644 --- a/dataproc/apiv1/autoscaling_policy_client.go +++ b/dataproc/apiv1/autoscaling_policy_client.go @@ -143,7 +143,8 @@ func (c *AutoscalingPolicyClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AutoscalingPolicyClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -238,7 +239,8 @@ func NewAutoscalingPolicyClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *autoscalingPolicyGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dataproc/apiv1/autoscaling_policy_client_example_test.go b/dataproc/apiv1/autoscaling_policy_client_example_test.go index 3d40dcc6724..aafe766dfb5 100644 --- a/dataproc/apiv1/autoscaling_policy_client_example_test.go +++ b/dataproc/apiv1/autoscaling_policy_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAutoscalingPolicyClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAutoscalingPolicyClient() { func ExampleAutoscalingPolicyClient_CreateAutoscalingPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleAutoscalingPolicyClient_CreateAutoscalingPolicy() { func ExampleAutoscalingPolicyClient_UpdateAutoscalingPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleAutoscalingPolicyClient_UpdateAutoscalingPolicy() { func ExampleAutoscalingPolicyClient_GetAutoscalingPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleAutoscalingPolicyClient_GetAutoscalingPolicy() { func ExampleAutoscalingPolicyClient_ListAutoscalingPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleAutoscalingPolicyClient_ListAutoscalingPolicies() { func ExampleAutoscalingPolicyClient_DeleteAutoscalingPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataproc/apiv1/batch_controller_client.go b/dataproc/apiv1/batch_controller_client.go index caf68d83e3e..df26594c11b 100644 --- a/dataproc/apiv1/batch_controller_client.go +++ b/dataproc/apiv1/batch_controller_client.go @@ -114,7 +114,8 @@ func (c *BatchControllerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BatchControllerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -222,7 +223,8 @@ func NewBatchControllerClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *batchControllerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dataproc/apiv1/batch_controller_client_example_test.go b/dataproc/apiv1/batch_controller_client_example_test.go index e9e48d93d1c..3cc6c17d76b 100644 --- a/dataproc/apiv1/batch_controller_client_example_test.go +++ b/dataproc/apiv1/batch_controller_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBatchControllerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBatchControllerClient() { func ExampleBatchControllerClient_CreateBatch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleBatchControllerClient_CreateBatch() { func ExampleBatchControllerClient_GetBatch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleBatchControllerClient_GetBatch() { func ExampleBatchControllerClient_ListBatches() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleBatchControllerClient_ListBatches() { func ExampleBatchControllerClient_DeleteBatch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataproc/apiv1/cluster_controller_client.go b/dataproc/apiv1/cluster_controller_client.go index fdc01dc65ff..c355f54ca2a 100644 --- a/dataproc/apiv1/cluster_controller_client.go +++ b/dataproc/apiv1/cluster_controller_client.go @@ -197,7 +197,8 @@ func (c *ClusterControllerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ClusterControllerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -369,7 +370,8 @@ func NewClusterControllerClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *clusterControllerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dataproc/apiv1/cluster_controller_client_example_test.go b/dataproc/apiv1/cluster_controller_client_example_test.go index d3571975847..00e9fc5efa3 100644 --- a/dataproc/apiv1/cluster_controller_client_example_test.go +++ b/dataproc/apiv1/cluster_controller_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClusterControllerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClusterControllerClient() { func ExampleClusterControllerClient_CreateCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleClusterControllerClient_CreateCluster() { func ExampleClusterControllerClient_UpdateCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -88,6 +103,11 @@ func ExampleClusterControllerClient_UpdateCluster() { func ExampleClusterControllerClient_StopCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -113,6 +133,11 @@ func ExampleClusterControllerClient_StopCluster() { func ExampleClusterControllerClient_StartCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +163,11 @@ func ExampleClusterControllerClient_StartCluster() { func ExampleClusterControllerClient_DeleteCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -161,6 +191,11 @@ func ExampleClusterControllerClient_DeleteCluster() { func ExampleClusterControllerClient_GetCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +216,11 @@ func ExampleClusterControllerClient_GetCluster() { func ExampleClusterControllerClient_ListClusters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -207,6 +247,11 @@ func ExampleClusterControllerClient_ListClusters() { func ExampleClusterControllerClient_DiagnoseCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataproc/apiv1/doc.go b/dataproc/apiv1/doc.go index 33ad7d4b0d1..34c99016c83 100644 --- a/dataproc/apiv1/doc.go +++ b/dataproc/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataproc.NewAutoscalingPolicyClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataproc.NewAutoscalingPolicyClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dataproc/apiv1/job_controller_client.go b/dataproc/apiv1/job_controller_client.go index 282a1fb682e..a51a0442ad4 100644 --- a/dataproc/apiv1/job_controller_client.go +++ b/dataproc/apiv1/job_controller_client.go @@ -200,7 +200,8 @@ func (c *JobControllerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *JobControllerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -327,7 +328,8 @@ func NewJobControllerClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *jobControllerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dataproc/apiv1/job_controller_client_example_test.go b/dataproc/apiv1/job_controller_client_example_test.go index aac90d0f8da..c174a3739b1 100644 --- a/dataproc/apiv1/job_controller_client_example_test.go +++ b/dataproc/apiv1/job_controller_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewJobControllerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewJobControllerClient() { func ExampleJobControllerClient_SubmitJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleJobControllerClient_SubmitJob() { func ExampleJobControllerClient_SubmitJobAsOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleJobControllerClient_SubmitJobAsOperation() { func ExampleJobControllerClient_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -103,6 +123,11 @@ func ExampleJobControllerClient_GetJob() { func ExampleJobControllerClient_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleJobControllerClient_ListJobs() { func ExampleJobControllerClient_UpdateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -149,6 +179,11 @@ func ExampleJobControllerClient_UpdateJob() { func ExampleJobControllerClient_CancelJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleJobControllerClient_CancelJob() { func ExampleJobControllerClient_DeleteJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataproc/apiv1/workflow_template_client.go b/dataproc/apiv1/workflow_template_client.go index c4b47a34244..dac40697ee1 100644 --- a/dataproc/apiv1/workflow_template_client.go +++ b/dataproc/apiv1/workflow_template_client.go @@ -200,7 +200,8 @@ func (c *WorkflowTemplateClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *WorkflowTemplateClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -375,7 +376,8 @@ func NewWorkflowTemplateClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *workflowTemplateGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dataproc/apiv1/workflow_template_client_example_test.go b/dataproc/apiv1/workflow_template_client_example_test.go index a2ba7d10f0b..ea2e1dc4c6f 100644 --- a/dataproc/apiv1/workflow_template_client_example_test.go +++ b/dataproc/apiv1/workflow_template_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewWorkflowTemplateClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewWorkflowTemplateClient() { func ExampleWorkflowTemplateClient_CreateWorkflowTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleWorkflowTemplateClient_CreateWorkflowTemplate() { func ExampleWorkflowTemplateClient_GetWorkflowTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleWorkflowTemplateClient_GetWorkflowTemplate() { func ExampleWorkflowTemplateClient_InstantiateWorkflowTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. @@ -101,6 +121,11 @@ func ExampleWorkflowTemplateClient_InstantiateWorkflowTemplate() { func ExampleWorkflowTemplateClient_InstantiateInlineWorkflowTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleWorkflowTemplateClient_InstantiateInlineWorkflowTemplate() { func ExampleWorkflowTemplateClient_UpdateWorkflowTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleWorkflowTemplateClient_UpdateWorkflowTemplate() { func ExampleWorkflowTemplateClient_ListWorkflowTemplates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleWorkflowTemplateClient_ListWorkflowTemplates() { func ExampleWorkflowTemplateClient_DeleteWorkflowTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataproc/go.mod b/dataproc/go.mod index dd395734980..fab6ca9d0b7 100644 --- a/dataproc/go.mod +++ b/dataproc/go.mod @@ -4,9 +4,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -15,11 +14,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/dataproc/go.sum b/dataproc/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/dataproc/go.sum +++ b/dataproc/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/dataqna/apiv1alpha/auto_suggestion_client.go b/dataqna/apiv1alpha/auto_suggestion_client.go index 8accbd5c0d4..29020871152 100644 --- a/dataqna/apiv1alpha/auto_suggestion_client.go +++ b/dataqna/apiv1alpha/auto_suggestion_client.go @@ -120,7 +120,8 @@ func (c *AutoSuggestionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AutoSuggestionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -205,7 +206,8 @@ func NewAutoSuggestionClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *autoSuggestionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -303,7 +305,7 @@ func (c *autoSuggestionRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *autoSuggestionRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/dataqna/apiv1alpha/auto_suggestion_client_example_test.go b/dataqna/apiv1alpha/auto_suggestion_client_example_test.go index 4e524b5fefc..a55043effcc 100644 --- a/dataqna/apiv1alpha/auto_suggestion_client_example_test.go +++ b/dataqna/apiv1alpha/auto_suggestion_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewAutoSuggestionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewAutoSuggestionClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewAutoSuggestionClient() { func ExampleNewAutoSuggestionRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewAutoSuggestionRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewAutoSuggestionRESTClient() { func ExampleAutoSuggestionClient_SuggestQueries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewAutoSuggestionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataqna/apiv1alpha/doc.go b/dataqna/apiv1alpha/doc.go index 086919551ef..462bd96450e 100644 --- a/dataqna/apiv1alpha/doc.go +++ b/dataqna/apiv1alpha/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataqna.NewAutoSuggestionClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dataqna.NewAutoSuggestionClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dataqna/apiv1alpha/question_client.go b/dataqna/apiv1alpha/question_client.go index 46dde2514f8..568d666ce19 100644 --- a/dataqna/apiv1alpha/question_client.go +++ b/dataqna/apiv1alpha/question_client.go @@ -175,7 +175,8 @@ func (c *QuestionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *QuestionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -280,7 +281,8 @@ func NewQuestionClient(ctx context.Context, opts ...option.ClientOption) (*Quest // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *questionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -378,7 +380,7 @@ func (c *questionRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *questionRESTClient) Connection() *grpc.ClientConn { return nil } @@ -501,8 +503,12 @@ func (c *questionRESTClient) GetQuestion(ctx context.Context, req *dataqnapb.Get baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetName()) params := url.Values{} - if req.GetReadMask().GetPaths() != nil { - params.Add("readMask.paths", fmt.Sprintf("%v", req.GetReadMask().GetPaths())) + if req.GetReadMask() != nil { + readMask, err := protojson.Marshal(req.GetReadMask()) + if err != nil { + return nil, err + } + params.Add("readMask", string(readMask)) } baseUrl.RawQuery = params.Encode() @@ -741,8 +747,12 @@ func (c *questionRESTClient) UpdateUserFeedback(ctx context.Context, req *dataqn baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetUserFeedback().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dataqna/apiv1alpha/question_client_example_test.go b/dataqna/apiv1alpha/question_client_example_test.go index 3421dfd3bf6..7b55dfef3dd 100644 --- a/dataqna/apiv1alpha/question_client_example_test.go +++ b/dataqna/apiv1alpha/question_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewQuestionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewQuestionClient() { func ExampleNewQuestionRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewQuestionRESTClient() { func ExampleQuestionClient_GetQuestion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleQuestionClient_GetQuestion() { func ExampleQuestionClient_CreateQuestion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +109,11 @@ func ExampleQuestionClient_CreateQuestion() { func ExampleQuestionClient_ExecuteQuestion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +134,11 @@ func ExampleQuestionClient_ExecuteQuestion() { func ExampleQuestionClient_GetUserFeedback() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +159,11 @@ func ExampleQuestionClient_GetUserFeedback() { func ExampleQuestionClient_UpdateUserFeedback() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dataqna/go.mod b/dataqna/go.mod index ad42aa497d8..4655729d6c7 100644 --- a/dataqna/go.mod +++ b/dataqna/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/dataqna/go.sum b/dataqna/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/dataqna/go.sum +++ b/dataqna/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/datastore/admin/apiv1/datastore_admin_client.go b/datastore/admin/apiv1/datastore_admin_client.go index cce47f01a93..f39bdf17447 100644 --- a/datastore/admin/apiv1/datastore_admin_client.go +++ b/datastore/admin/apiv1/datastore_admin_client.go @@ -205,7 +205,8 @@ func (c *DatastoreAdminClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DatastoreAdminClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -445,7 +446,8 @@ func NewDatastoreAdminClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *datastoreAdminGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datastore/admin/apiv1/datastore_admin_client_example_test.go b/datastore/admin/apiv1/datastore_admin_client_example_test.go index 692743ac73a..c83b3bb81e7 100644 --- a/datastore/admin/apiv1/datastore_admin_client_example_test.go +++ b/datastore/admin/apiv1/datastore_admin_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewDatastoreAdminClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewDatastoreAdminClient() { func ExampleDatastoreAdminClient_ExportEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleDatastoreAdminClient_ExportEntities() { func ExampleDatastoreAdminClient_ImportEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleDatastoreAdminClient_ImportEntities() { func ExampleDatastoreAdminClient_CreateIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleDatastoreAdminClient_CreateIndex() { func ExampleDatastoreAdminClient_DeleteIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleDatastoreAdminClient_DeleteIndex() { func ExampleDatastoreAdminClient_GetIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleDatastoreAdminClient_GetIndex() { func ExampleDatastoreAdminClient_ListIndexes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleDatastoreAdminClient_ListIndexes() { func ExampleDatastoreAdminClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +241,11 @@ func ExampleDatastoreAdminClient_CancelOperation() { func ExampleDatastoreAdminClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleDatastoreAdminClient_DeleteOperation() { func ExampleDatastoreAdminClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -239,6 +289,11 @@ func ExampleDatastoreAdminClient_GetOperation() { func ExampleDatastoreAdminClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datastore/admin/apiv1/doc.go b/datastore/admin/apiv1/doc.go index e94b3015125..eb6997edb18 100644 --- a/datastore/admin/apiv1/doc.go +++ b/datastore/admin/apiv1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := admin.NewDatastoreAdminClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := admin.NewDatastoreAdminClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/datastore/go.mod b/datastore/go.mod index 3caf95439fe..9a770e0da3e 100644 --- a/datastore/go.mod +++ b/datastore/go.mod @@ -7,7 +7,7 @@ require ( github.com/golang/protobuf v1.5.2 github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect diff --git a/datastore/go.sum b/datastore/go.sum index cb024486d84..c9f3ba89599 100644 --- a/datastore/go.sum +++ b/datastore/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -500,8 +501,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/datastream/apiv1/datastream_client.go b/datastream/apiv1/datastream_client.go index 7e0d5b861d1..25a7df272c1 100644 --- a/datastream/apiv1/datastream_client.go +++ b/datastream/apiv1/datastream_client.go @@ -356,7 +356,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -666,7 +667,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/datastream/apiv1/datastream_client_example_test.go b/datastream/apiv1/datastream_client_example_test.go index 995ec00de50..3da9742eb52 100644 --- a/datastream/apiv1/datastream_client_example_test.go +++ b/datastream/apiv1/datastream_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewClient() { func ExampleClient_ListConnectionProfiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleClient_ListConnectionProfiles() { func ExampleClient_GetConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleClient_GetConnectionProfile() { func ExampleClient_CreateConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleClient_CreateConnectionProfile() { func ExampleClient_UpdateConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleClient_UpdateConnectionProfile() { func ExampleClient_DeleteConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleClient_DeleteConnectionProfile() { func ExampleClient_DiscoverConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleClient_DiscoverConnectionProfile() { func ExampleClient_ListStreams() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleClient_ListStreams() { func ExampleClient_GetStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -225,6 +270,11 @@ func ExampleClient_GetStream() { func ExampleClient_CreateStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -250,6 +300,11 @@ func ExampleClient_CreateStream() { func ExampleClient_UpdateStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +330,11 @@ func ExampleClient_UpdateStream() { func ExampleClient_DeleteStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -298,6 +358,11 @@ func ExampleClient_DeleteStream() { func ExampleClient_GetStreamObject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +383,11 @@ func ExampleClient_GetStreamObject() { func ExampleClient_LookupStreamObject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -338,6 +408,11 @@ func ExampleClient_LookupStreamObject() { func ExampleClient_ListStreamObjects() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -364,6 +439,11 @@ func ExampleClient_ListStreamObjects() { func ExampleClient_StartBackfillJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -384,6 +464,11 @@ func ExampleClient_StartBackfillJob() { func ExampleClient_StopBackfillJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -404,6 +489,11 @@ func ExampleClient_StopBackfillJob() { func ExampleClient_FetchStaticIps() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -430,6 +520,11 @@ func ExampleClient_FetchStaticIps() { func ExampleClient_CreatePrivateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -455,6 +550,11 @@ func ExampleClient_CreatePrivateConnection() { func ExampleClient_GetPrivateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -475,6 +575,11 @@ func ExampleClient_GetPrivateConnection() { func ExampleClient_ListPrivateConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -501,6 +606,11 @@ func ExampleClient_ListPrivateConnections() { func ExampleClient_DeletePrivateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -524,6 +634,11 @@ func ExampleClient_DeletePrivateConnection() { func ExampleClient_CreateRoute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -549,6 +664,11 @@ func ExampleClient_CreateRoute() { func ExampleClient_GetRoute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -569,6 +689,11 @@ func ExampleClient_GetRoute() { func ExampleClient_ListRoutes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -595,6 +720,11 @@ func ExampleClient_ListRoutes() { func ExampleClient_DeleteRoute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -618,6 +748,11 @@ func ExampleClient_DeleteRoute() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -638,6 +773,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -664,6 +804,11 @@ func ExampleClient_ListLocations() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -682,6 +827,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -700,6 +850,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -720,6 +875,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datastream/apiv1/doc.go b/datastream/apiv1/doc.go index 544acbea19c..7f7a9ec790b 100644 --- a/datastream/apiv1/doc.go +++ b/datastream/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datastream.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datastream.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/datastream/apiv1alpha1/datastream_client.go b/datastream/apiv1alpha1/datastream_client.go index 97c9fa91634..2749d7002cd 100644 --- a/datastream/apiv1alpha1/datastream_client.go +++ b/datastream/apiv1alpha1/datastream_client.go @@ -417,7 +417,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -678,7 +679,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -777,7 +779,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1618,8 +1620,12 @@ func (c *restClient) UpdateConnectionProfile(ctx context.Context, req *datastrea if req.GetRequestId() != "" { params.Add("requestId", fmt.Sprintf("%v", req.GetRequestId())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -2045,8 +2051,12 @@ func (c *restClient) UpdateStream(ctx context.Context, req *datastreampb.UpdateS if req.GetRequestId() != "" { params.Add("requestId", fmt.Sprintf("%v", req.GetRequestId())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } if req.GetValidateOnly() { params.Add("validateOnly", fmt.Sprintf("%v", req.GetValidateOnly())) diff --git a/datastream/apiv1alpha1/datastream_client_example_test.go b/datastream/apiv1alpha1/datastream_client_example_test.go index 585afb7f2d7..ac6b96888e3 100644 --- a/datastream/apiv1alpha1/datastream_client_example_test.go +++ b/datastream/apiv1alpha1/datastream_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListConnectionProfiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleClient_ListConnectionProfiles() { func ExampleClient_GetConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleClient_GetConnectionProfile() { func ExampleClient_CreateConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -121,6 +146,11 @@ func ExampleClient_CreateConnectionProfile() { func ExampleClient_UpdateConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -146,6 +176,11 @@ func ExampleClient_UpdateConnectionProfile() { func ExampleClient_DeleteConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleClient_DeleteConnectionProfile() { func ExampleClient_DiscoverConnectionProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -189,6 +229,11 @@ func ExampleClient_DiscoverConnectionProfile() { func ExampleClient_ListStreams() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +260,11 @@ func ExampleClient_ListStreams() { func ExampleClient_GetStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -235,6 +285,11 @@ func ExampleClient_GetStream() { func ExampleClient_CreateStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -260,6 +315,11 @@ func ExampleClient_CreateStream() { func ExampleClient_UpdateStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -285,6 +345,11 @@ func ExampleClient_UpdateStream() { func ExampleClient_DeleteStream() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -308,6 +373,11 @@ func ExampleClient_DeleteStream() { func ExampleClient_FetchErrors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -333,6 +403,11 @@ func ExampleClient_FetchErrors() { func ExampleClient_FetchStaticIps() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -359,6 +434,11 @@ func ExampleClient_FetchStaticIps() { func ExampleClient_CreatePrivateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -384,6 +464,11 @@ func ExampleClient_CreatePrivateConnection() { func ExampleClient_GetPrivateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -404,6 +489,11 @@ func ExampleClient_GetPrivateConnection() { func ExampleClient_ListPrivateConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -430,6 +520,11 @@ func ExampleClient_ListPrivateConnections() { func ExampleClient_DeletePrivateConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -453,6 +548,11 @@ func ExampleClient_DeletePrivateConnection() { func ExampleClient_CreateRoute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -478,6 +578,11 @@ func ExampleClient_CreateRoute() { func ExampleClient_GetRoute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -498,6 +603,11 @@ func ExampleClient_GetRoute() { func ExampleClient_ListRoutes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -524,6 +634,11 @@ func ExampleClient_ListRoutes() { func ExampleClient_DeleteRoute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/datastream/apiv1alpha1/doc.go b/datastream/apiv1alpha1/doc.go index fe220280076..91c80ee427f 100644 --- a/datastream/apiv1alpha1/doc.go +++ b/datastream/apiv1alpha1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datastream.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := datastream.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/datastream/go.mod b/datastream/go.mod index 398f092edc0..d0ef3279b87 100644 --- a/datastream/go.mod +++ b/datastream/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220829144015-23454907ede3 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/datastream/go.sum b/datastream/go.sum index fd3bdd332a0..bcdc5b4bdee 100644 --- a/datastream/go.sum +++ b/datastream/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/debugger/apiv2/controller2_client.go b/debugger/apiv2/controller2_client.go index f2c3abd4723..a22f6e96fd3 100644 --- a/debugger/apiv2/controller2_client.go +++ b/debugger/apiv2/controller2_client.go @@ -142,7 +142,8 @@ func (c *Controller2Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Controller2Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -269,7 +270,8 @@ func NewController2Client(ctx context.Context, opts ...option.ClientOption) (*Co // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *controller2GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/debugger/apiv2/controller2_client_example_test.go b/debugger/apiv2/controller2_client_example_test.go index 71cda573e75..cd7b60393b6 100644 --- a/debugger/apiv2/controller2_client_example_test.go +++ b/debugger/apiv2/controller2_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewController2Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewController2Client(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewController2Client() { func ExampleController2Client_RegisterDebuggee() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewController2Client(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleController2Client_RegisterDebuggee() { func ExampleController2Client_ListActiveBreakpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewController2Client(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleController2Client_ListActiveBreakpoints() { func ExampleController2Client_UpdateActiveBreakpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewController2Client(ctx) if err != nil { // TODO: Handle error. diff --git a/debugger/apiv2/debugger2_client.go b/debugger/apiv2/debugger2_client.go index 3eb49d40bf2..128cbd67958 100644 --- a/debugger/apiv2/debugger2_client.go +++ b/debugger/apiv2/debugger2_client.go @@ -162,7 +162,8 @@ func (c *Debugger2Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Debugger2Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -263,7 +264,8 @@ func NewDebugger2Client(ctx context.Context, opts ...option.ClientOption) (*Debu // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *debugger2GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/debugger/apiv2/debugger2_client_example_test.go b/debugger/apiv2/debugger2_client_example_test.go index 1505ee41346..4f65977d1a1 100644 --- a/debugger/apiv2/debugger2_client_example_test.go +++ b/debugger/apiv2/debugger2_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewDebugger2Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewDebugger2Client(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewDebugger2Client() { func ExampleDebugger2Client_SetBreakpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewDebugger2Client(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleDebugger2Client_SetBreakpoint() { func ExampleDebugger2Client_GetBreakpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewDebugger2Client(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleDebugger2Client_GetBreakpoint() { func ExampleDebugger2Client_DeleteBreakpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewDebugger2Client(ctx) if err != nil { // TODO: Handle error. @@ -95,6 +115,11 @@ func ExampleDebugger2Client_DeleteBreakpoint() { func ExampleDebugger2Client_ListBreakpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewDebugger2Client(ctx) if err != nil { // TODO: Handle error. @@ -115,6 +140,11 @@ func ExampleDebugger2Client_ListBreakpoints() { func ExampleDebugger2Client_ListDebuggees() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := debugger.NewDebugger2Client(ctx) if err != nil { // TODO: Handle error. diff --git a/debugger/apiv2/doc.go b/debugger/apiv2/doc.go index 8d4698cf26b..68a43859ccc 100644 --- a/debugger/apiv2/doc.go +++ b/debugger/apiv2/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := debugger.NewController2Client(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := debugger.NewController2Client(ctx) // if err != nil { // // TODO: Handle error. diff --git a/deploy/apiv1/cloud_deploy_client.go b/deploy/apiv1/cloud_deploy_client.go index b2bdeb3a27c..396709d1038 100644 --- a/deploy/apiv1/cloud_deploy_client.go +++ b/deploy/apiv1/cloud_deploy_client.go @@ -255,7 +255,8 @@ func (c *CloudDeployClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudDeployClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -475,7 +476,8 @@ func NewCloudDeployClient(ctx context.Context, opts ...option.ClientOption) (*Cl // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudDeployGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/deploy/apiv1/cloud_deploy_client_example_test.go b/deploy/apiv1/cloud_deploy_client_example_test.go index b1290d3e484..564b3dc722c 100644 --- a/deploy/apiv1/cloud_deploy_client_example_test.go +++ b/deploy/apiv1/cloud_deploy_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudDeployClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudDeployClient() { func ExampleCloudDeployClient_ListDeliveryPipelines() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleCloudDeployClient_ListDeliveryPipelines() { func ExampleCloudDeployClient_GetDeliveryPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleCloudDeployClient_GetDeliveryPipeline() { func ExampleCloudDeployClient_CreateDeliveryPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleCloudDeployClient_CreateDeliveryPipeline() { func ExampleCloudDeployClient_UpdateDeliveryPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleCloudDeployClient_UpdateDeliveryPipeline() { func ExampleCloudDeployClient_DeleteDeliveryPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleCloudDeployClient_DeleteDeliveryPipeline() { func ExampleCloudDeployClient_ListTargets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleCloudDeployClient_ListTargets() { func ExampleCloudDeployClient_GetTarget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleCloudDeployClient_GetTarget() { func ExampleCloudDeployClient_CreateTarget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleCloudDeployClient_CreateTarget() { func ExampleCloudDeployClient_UpdateTarget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleCloudDeployClient_UpdateTarget() { func ExampleCloudDeployClient_DeleteTarget() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleCloudDeployClient_DeleteTarget() { func ExampleCloudDeployClient_ListReleases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +362,11 @@ func ExampleCloudDeployClient_ListReleases() { func ExampleCloudDeployClient_GetRelease() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +387,11 @@ func ExampleCloudDeployClient_GetRelease() { func ExampleCloudDeployClient_CreateRelease() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +417,11 @@ func ExampleCloudDeployClient_CreateRelease() { func ExampleCloudDeployClient_ApproveRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -367,6 +442,11 @@ func ExampleCloudDeployClient_ApproveRollout() { func ExampleCloudDeployClient_ListRollouts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -393,6 +473,11 @@ func ExampleCloudDeployClient_ListRollouts() { func ExampleCloudDeployClient_GetRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -413,6 +498,11 @@ func ExampleCloudDeployClient_GetRollout() { func ExampleCloudDeployClient_CreateRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +528,11 @@ func ExampleCloudDeployClient_CreateRollout() { func ExampleCloudDeployClient_GetConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/deploy/apiv1/doc.go b/deploy/apiv1/doc.go index 62a8b4c1f55..cb882313fb4 100644 --- a/deploy/apiv1/doc.go +++ b/deploy/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := deploy.NewCloudDeployClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := deploy.NewCloudDeployClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/deploy/go.mod b/deploy/go.mod index aace7424218..59a4425a1eb 100644 --- a/deploy/go.mod +++ b/deploy/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/deploy/go.sum b/deploy/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/deploy/go.sum +++ b/deploy/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/dialogflow/apiv2/agents_client.go b/dialogflow/apiv2/agents_client.go index 9f063beb1e1..356524e47e7 100644 --- a/dialogflow/apiv2/agents_client.go +++ b/dialogflow/apiv2/agents_client.go @@ -240,7 +240,8 @@ func (c *AgentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AgentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -504,7 +505,8 @@ func NewAgentsClient(ctx context.Context, opts ...option.ClientOption) (*AgentsC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *agentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/agents_client_example_test.go b/dialogflow/apiv2/agents_client_example_test.go index 325f290f03b..748d5800cad 100644 --- a/dialogflow/apiv2/agents_client_example_test.go +++ b/dialogflow/apiv2/agents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewAgentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewAgentsClient() { func ExampleAgentsClient_GetAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleAgentsClient_GetAgent() { func ExampleAgentsClient_SetAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleAgentsClient_SetAgent() { func ExampleAgentsClient_DeleteAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleAgentsClient_DeleteAgent() { func ExampleAgentsClient_SearchAgents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleAgentsClient_SearchAgents() { func ExampleAgentsClient_TrainAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleAgentsClient_TrainAgent() { func ExampleAgentsClient_ExportAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleAgentsClient_ExportAgent() { func ExampleAgentsClient_ImportAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -195,6 +235,11 @@ func ExampleAgentsClient_ImportAgent() { func ExampleAgentsClient_RestoreAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleAgentsClient_RestoreAgent() { func ExampleAgentsClient_GetValidationResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleAgentsClient_GetValidationResult() { func ExampleAgentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +313,11 @@ func ExampleAgentsClient_GetLocation() { func ExampleAgentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -284,6 +344,11 @@ func ExampleAgentsClient_ListLocations() { func ExampleAgentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleAgentsClient_CancelOperation() { func ExampleAgentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +392,11 @@ func ExampleAgentsClient_GetOperation() { func ExampleAgentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/answer_records_client.go b/dialogflow/apiv2/answer_records_client.go index c5faecc0a19..90b78fe6dd3 100644 --- a/dialogflow/apiv2/answer_records_client.go +++ b/dialogflow/apiv2/answer_records_client.go @@ -137,7 +137,8 @@ func (c *AnswerRecordsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AnswerRecordsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -244,7 +245,8 @@ func NewAnswerRecordsClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *answerRecordsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/answer_records_client_example_test.go b/dialogflow/apiv2/answer_records_client_example_test.go index 6f3912297a0..3e5247fffb9 100644 --- a/dialogflow/apiv2/answer_records_client_example_test.go +++ b/dialogflow/apiv2/answer_records_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewAnswerRecordsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewAnswerRecordsClient() { func ExampleAnswerRecordsClient_ListAnswerRecords() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleAnswerRecordsClient_ListAnswerRecords() { func ExampleAnswerRecordsClient_UpdateAnswerRecord() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleAnswerRecordsClient_UpdateAnswerRecord() { func ExampleAnswerRecordsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleAnswerRecordsClient_GetLocation() { func ExampleAnswerRecordsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleAnswerRecordsClient_ListLocations() { func ExampleAnswerRecordsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleAnswerRecordsClient_CancelOperation() { func ExampleAnswerRecordsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleAnswerRecordsClient_GetOperation() { func ExampleAnswerRecordsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/contexts_client.go b/dialogflow/apiv2/contexts_client.go index 34b9b9d6c37..add5bad7e62 100644 --- a/dialogflow/apiv2/contexts_client.go +++ b/dialogflow/apiv2/contexts_client.go @@ -189,7 +189,8 @@ func (c *ContextsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ContextsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -317,7 +318,8 @@ func NewContextsClient(ctx context.Context, opts ...option.ClientOption) (*Conte // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *contextsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/contexts_client_example_test.go b/dialogflow/apiv2/contexts_client_example_test.go index 52e5990ccd4..3986e9dbd7a 100644 --- a/dialogflow/apiv2/contexts_client_example_test.go +++ b/dialogflow/apiv2/contexts_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewContextsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewContextsClient() { func ExampleContextsClient_ListContexts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleContextsClient_ListContexts() { func ExampleContextsClient_GetContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleContextsClient_GetContext() { func ExampleContextsClient_CreateContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleContextsClient_CreateContext() { func ExampleContextsClient_UpdateContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleContextsClient_UpdateContext() { func ExampleContextsClient_DeleteContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleContextsClient_DeleteContext() { func ExampleContextsClient_DeleteAllContexts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleContextsClient_DeleteAllContexts() { func ExampleContextsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleContextsClient_GetLocation() { func ExampleContextsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleContextsClient_ListLocations() { func ExampleContextsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleContextsClient_CancelOperation() { func ExampleContextsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +301,11 @@ func ExampleContextsClient_GetOperation() { func ExampleContextsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/conversation_datasets_client.go b/dialogflow/apiv2/conversation_datasets_client.go index 8540b6332bd..80b1bd13ca2 100644 --- a/dialogflow/apiv2/conversation_datasets_client.go +++ b/dialogflow/apiv2/conversation_datasets_client.go @@ -189,7 +189,8 @@ func (c *ConversationDatasetsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ConversationDatasetsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -375,7 +376,8 @@ func NewConversationDatasetsClient(ctx context.Context, opts ...option.ClientOpt // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *conversationDatasetsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/conversation_datasets_client_example_test.go b/dialogflow/apiv2/conversation_datasets_client_example_test.go index 50b56b600bc..54b60f51902 100644 --- a/dialogflow/apiv2/conversation_datasets_client_example_test.go +++ b/dialogflow/apiv2/conversation_datasets_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewConversationDatasetsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewConversationDatasetsClient() { func ExampleConversationDatasetsClient_CreateConversationDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleConversationDatasetsClient_CreateConversationDataset() { func ExampleConversationDatasetsClient_GetConversationDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleConversationDatasetsClient_GetConversationDataset() { func ExampleConversationDatasetsClient_ListConversationDatasets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleConversationDatasetsClient_ListConversationDatasets() { func ExampleConversationDatasetsClient_DeleteConversationDataset() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleConversationDatasetsClient_DeleteConversationDataset() { func ExampleConversationDatasetsClient_ImportConversationData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleConversationDatasetsClient_ImportConversationData() { func ExampleConversationDatasetsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleConversationDatasetsClient_GetLocation() { func ExampleConversationDatasetsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleConversationDatasetsClient_ListLocations() { func ExampleConversationDatasetsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +268,11 @@ func ExampleConversationDatasetsClient_CancelOperation() { func ExampleConversationDatasetsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleConversationDatasetsClient_GetOperation() { func ExampleConversationDatasetsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/conversation_models_client.go b/dialogflow/apiv2/conversation_models_client.go index 6a499b45931..aa233f352eb 100644 --- a/dialogflow/apiv2/conversation_models_client.go +++ b/dialogflow/apiv2/conversation_models_client.go @@ -240,7 +240,8 @@ func (c *ConversationModelsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ConversationModelsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -469,7 +470,8 @@ func NewConversationModelsClient(ctx context.Context, opts ...option.ClientOptio // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *conversationModelsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/conversation_models_client_example_test.go b/dialogflow/apiv2/conversation_models_client_example_test.go index 8764a55e28e..369014cda6e 100644 --- a/dialogflow/apiv2/conversation_models_client_example_test.go +++ b/dialogflow/apiv2/conversation_models_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewConversationModelsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewConversationModelsClient() { func ExampleConversationModelsClient_CreateConversationModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleConversationModelsClient_CreateConversationModel() { func ExampleConversationModelsClient_GetConversationModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleConversationModelsClient_GetConversationModel() { func ExampleConversationModelsClient_ListConversationModels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleConversationModelsClient_ListConversationModels() { func ExampleConversationModelsClient_DeleteConversationModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleConversationModelsClient_DeleteConversationModel() { func ExampleConversationModelsClient_DeployConversationModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleConversationModelsClient_DeployConversationModel() { func ExampleConversationModelsClient_UndeployConversationModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleConversationModelsClient_UndeployConversationModel() { func ExampleConversationModelsClient_GetConversationModelEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleConversationModelsClient_GetConversationModelEvaluation() { func ExampleConversationModelsClient_ListConversationModelEvaluations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +271,11 @@ func ExampleConversationModelsClient_ListConversationModelEvaluations() { func ExampleConversationModelsClient_CreateConversationModelEvaluation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +301,11 @@ func ExampleConversationModelsClient_CreateConversationModelEvaluation() { func ExampleConversationModelsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleConversationModelsClient_GetLocation() { func ExampleConversationModelsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -297,6 +357,11 @@ func ExampleConversationModelsClient_ListLocations() { func ExampleConversationModelsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -315,6 +380,11 @@ func ExampleConversationModelsClient_CancelOperation() { func ExampleConversationModelsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. @@ -335,6 +405,11 @@ func ExampleConversationModelsClient_GetOperation() { func ExampleConversationModelsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/conversation_profiles_client.go b/dialogflow/apiv2/conversation_profiles_client.go index ed092f8a8ed..deae05c8c18 100644 --- a/dialogflow/apiv2/conversation_profiles_client.go +++ b/dialogflow/apiv2/conversation_profiles_client.go @@ -211,7 +211,8 @@ func (c *ConversationProfilesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ConversationProfilesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -403,7 +404,8 @@ func NewConversationProfilesClient(ctx context.Context, opts ...option.ClientOpt // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *conversationProfilesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/conversation_profiles_client_example_test.go b/dialogflow/apiv2/conversation_profiles_client_example_test.go index 3da5695d38b..d2f2a51a71d 100644 --- a/dialogflow/apiv2/conversation_profiles_client_example_test.go +++ b/dialogflow/apiv2/conversation_profiles_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewConversationProfilesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewConversationProfilesClient() { func ExampleConversationProfilesClient_ListConversationProfiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleConversationProfilesClient_ListConversationProfiles() { func ExampleConversationProfilesClient_GetConversationProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleConversationProfilesClient_GetConversationProfile() { func ExampleConversationProfilesClient_CreateConversationProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleConversationProfilesClient_CreateConversationProfile() { func ExampleConversationProfilesClient_UpdateConversationProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleConversationProfilesClient_UpdateConversationProfile() { func ExampleConversationProfilesClient_DeleteConversationProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleConversationProfilesClient_DeleteConversationProfile() { func ExampleConversationProfilesClient_SetSuggestionFeatureConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleConversationProfilesClient_SetSuggestionFeatureConfig() { func ExampleConversationProfilesClient_ClearSuggestionFeatureConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +234,11 @@ func ExampleConversationProfilesClient_ClearSuggestionFeatureConfig() { func ExampleConversationProfilesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +259,11 @@ func ExampleConversationProfilesClient_GetLocation() { func ExampleConversationProfilesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +290,11 @@ func ExampleConversationProfilesClient_ListLocations() { func ExampleConversationProfilesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +313,11 @@ func ExampleConversationProfilesClient_CancelOperation() { func ExampleConversationProfilesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +338,11 @@ func ExampleConversationProfilesClient_GetOperation() { func ExampleConversationProfilesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/conversations_client.go b/dialogflow/apiv2/conversations_client.go index d8e8059c249..db4909cad03 100644 --- a/dialogflow/apiv2/conversations_client.go +++ b/dialogflow/apiv2/conversations_client.go @@ -176,7 +176,8 @@ func (c *ConversationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ConversationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -318,7 +319,8 @@ func NewConversationsClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *conversationsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/conversations_client_example_test.go b/dialogflow/apiv2/conversations_client_example_test.go index e37af2fb739..2414b5aa607 100644 --- a/dialogflow/apiv2/conversations_client_example_test.go +++ b/dialogflow/apiv2/conversations_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewConversationsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewConversationsClient() { func ExampleConversationsClient_CreateConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleConversationsClient_CreateConversation() { func ExampleConversationsClient_ListConversations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleConversationsClient_ListConversations() { func ExampleConversationsClient_GetConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleConversationsClient_GetConversation() { func ExampleConversationsClient_CompleteConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleConversationsClient_CompleteConversation() { func ExampleConversationsClient_ListMessages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -152,6 +182,11 @@ func ExampleConversationsClient_ListMessages() { func ExampleConversationsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleConversationsClient_GetLocation() { func ExampleConversationsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -198,6 +238,11 @@ func ExampleConversationsClient_ListLocations() { func ExampleConversationsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +261,11 @@ func ExampleConversationsClient_CancelOperation() { func ExampleConversationsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -236,6 +286,11 @@ func ExampleConversationsClient_GetOperation() { func ExampleConversationsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/doc.go b/dialogflow/apiv2/doc.go index 1eb3a09a9c0..ec9d51a9e3e 100644 --- a/dialogflow/apiv2/doc.go +++ b/dialogflow/apiv2/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dialogflow.NewAgentsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dialogflow.NewAgentsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dialogflow/apiv2/documents_client.go b/dialogflow/apiv2/documents_client.go index 6f546d292a1..63a67c3e1e3 100644 --- a/dialogflow/apiv2/documents_client.go +++ b/dialogflow/apiv2/documents_client.go @@ -228,7 +228,8 @@ func (c *DocumentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DocumentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -474,7 +475,8 @@ func NewDocumentsClient(ctx context.Context, opts ...option.ClientOption) (*Docu // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *documentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/documents_client_example_test.go b/dialogflow/apiv2/documents_client_example_test.go index 2d777b33ef9..f36335929f4 100644 --- a/dialogflow/apiv2/documents_client_example_test.go +++ b/dialogflow/apiv2/documents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewDocumentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewDocumentsClient() { func ExampleDocumentsClient_ListDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleDocumentsClient_ListDocuments() { func ExampleDocumentsClient_GetDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleDocumentsClient_GetDocument() { func ExampleDocumentsClient_CreateDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleDocumentsClient_CreateDocument() { func ExampleDocumentsClient_ImportDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleDocumentsClient_ImportDocuments() { func ExampleDocumentsClient_DeleteDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleDocumentsClient_DeleteDocument() { func ExampleDocumentsClient_UpdateDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +219,11 @@ func ExampleDocumentsClient_UpdateDocument() { func ExampleDocumentsClient_ReloadDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +249,11 @@ func ExampleDocumentsClient_ReloadDocument() { func ExampleDocumentsClient_ExportDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +279,11 @@ func ExampleDocumentsClient_ExportDocument() { func ExampleDocumentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +304,11 @@ func ExampleDocumentsClient_GetLocation() { func ExampleDocumentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +335,11 @@ func ExampleDocumentsClient_ListLocations() { func ExampleDocumentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -298,6 +358,11 @@ func ExampleDocumentsClient_CancelOperation() { func ExampleDocumentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +383,11 @@ func ExampleDocumentsClient_GetOperation() { func ExampleDocumentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/entity_types_client.go b/dialogflow/apiv2/entity_types_client.go index f70f401dec8..2ebd47a08bd 100644 --- a/dialogflow/apiv2/entity_types_client.go +++ b/dialogflow/apiv2/entity_types_client.go @@ -254,7 +254,8 @@ func (c *EntityTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EntityTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -529,7 +530,8 @@ func NewEntityTypesClient(ctx context.Context, opts ...option.ClientOption) (*En // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *entityTypesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/entity_types_client_example_test.go b/dialogflow/apiv2/entity_types_client_example_test.go index 92f0b1fda60..238e2205b9a 100644 --- a/dialogflow/apiv2/entity_types_client_example_test.go +++ b/dialogflow/apiv2/entity_types_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewEntityTypesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewEntityTypesClient() { func ExampleEntityTypesClient_ListEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleEntityTypesClient_ListEntityTypes() { func ExampleEntityTypesClient_GetEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleEntityTypesClient_GetEntityType() { func ExampleEntityTypesClient_CreateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleEntityTypesClient_CreateEntityType() { func ExampleEntityTypesClient_UpdateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleEntityTypesClient_UpdateEntityType() { func ExampleEntityTypesClient_DeleteEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleEntityTypesClient_DeleteEntityType() { func ExampleEntityTypesClient_BatchUpdateEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleEntityTypesClient_BatchUpdateEntityTypes() { func ExampleEntityTypesClient_BatchDeleteEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleEntityTypesClient_BatchDeleteEntityTypes() { func ExampleEntityTypesClient_BatchCreateEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +260,11 @@ func ExampleEntityTypesClient_BatchCreateEntities() { func ExampleEntityTypesClient_BatchUpdateEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleEntityTypesClient_BatchUpdateEntities() { func ExampleEntityTypesClient_BatchDeleteEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -261,6 +316,11 @@ func ExampleEntityTypesClient_BatchDeleteEntities() { func ExampleEntityTypesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -281,6 +341,11 @@ func ExampleEntityTypesClient_GetLocation() { func ExampleEntityTypesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +372,11 @@ func ExampleEntityTypesClient_ListLocations() { func ExampleEntityTypesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -325,6 +395,11 @@ func ExampleEntityTypesClient_CancelOperation() { func ExampleEntityTypesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -345,6 +420,11 @@ func ExampleEntityTypesClient_GetOperation() { func ExampleEntityTypesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/environments_client.go b/dialogflow/apiv2/environments_client.go index 8df292272fa..aa49b226bad 100644 --- a/dialogflow/apiv2/environments_client.go +++ b/dialogflow/apiv2/environments_client.go @@ -189,7 +189,8 @@ func (c *EnvironmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EnvironmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -326,7 +327,8 @@ func NewEnvironmentsClient(ctx context.Context, opts ...option.ClientOption) (*E // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *environmentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/environments_client_example_test.go b/dialogflow/apiv2/environments_client_example_test.go index b4c41e7ea25..649980bd1c3 100644 --- a/dialogflow/apiv2/environments_client_example_test.go +++ b/dialogflow/apiv2/environments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewEnvironmentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewEnvironmentsClient() { func ExampleEnvironmentsClient_ListEnvironments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleEnvironmentsClient_ListEnvironments() { func ExampleEnvironmentsClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleEnvironmentsClient_GetEnvironment() { func ExampleEnvironmentsClient_CreateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleEnvironmentsClient_CreateEnvironment() { func ExampleEnvironmentsClient_UpdateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleEnvironmentsClient_UpdateEnvironment() { func ExampleEnvironmentsClient_DeleteEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleEnvironmentsClient_DeleteEnvironment() { func ExampleEnvironmentsClient_GetEnvironmentHistory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleEnvironmentsClient_GetEnvironmentHistory() { func ExampleEnvironmentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleEnvironmentsClient_GetLocation() { func ExampleEnvironmentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +261,11 @@ func ExampleEnvironmentsClient_ListLocations() { func ExampleEnvironmentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +284,11 @@ func ExampleEnvironmentsClient_CancelOperation() { func ExampleEnvironmentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +309,11 @@ func ExampleEnvironmentsClient_GetOperation() { func ExampleEnvironmentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/fulfillments_client.go b/dialogflow/apiv2/fulfillments_client.go index adf07f336f3..a5aa421b1f6 100644 --- a/dialogflow/apiv2/fulfillments_client.go +++ b/dialogflow/apiv2/fulfillments_client.go @@ -137,7 +137,8 @@ func (c *FulfillmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FulfillmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,8 @@ func NewFulfillmentsClient(ctx context.Context, opts ...option.ClientOption) (*F // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *fulfillmentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/fulfillments_client_example_test.go b/dialogflow/apiv2/fulfillments_client_example_test.go index 28cdcda36b0..9959b5dff40 100644 --- a/dialogflow/apiv2/fulfillments_client_example_test.go +++ b/dialogflow/apiv2/fulfillments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewFulfillmentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewFulfillmentsClient() { func ExampleFulfillmentsClient_GetFulfillment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleFulfillmentsClient_GetFulfillment() { func ExampleFulfillmentsClient_UpdateFulfillment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleFulfillmentsClient_UpdateFulfillment() { func ExampleFulfillmentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -100,6 +120,11 @@ func ExampleFulfillmentsClient_GetLocation() { func ExampleFulfillmentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleFulfillmentsClient_ListLocations() { func ExampleFulfillmentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleFulfillmentsClient_CancelOperation() { func ExampleFulfillmentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleFulfillmentsClient_GetOperation() { func ExampleFulfillmentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/intents_client.go b/dialogflow/apiv2/intents_client.go index 89a88b73422..f23b7ee72c4 100644 --- a/dialogflow/apiv2/intents_client.go +++ b/dialogflow/apiv2/intents_client.go @@ -212,7 +212,8 @@ func (c *IntentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IntentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -410,7 +411,8 @@ func NewIntentsClient(ctx context.Context, opts ...option.ClientOption) (*Intent // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *intentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/intents_client_example_test.go b/dialogflow/apiv2/intents_client_example_test.go index 2e47f488ffd..5f0ff5ae041 100644 --- a/dialogflow/apiv2/intents_client_example_test.go +++ b/dialogflow/apiv2/intents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewIntentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewIntentsClient() { func ExampleIntentsClient_ListIntents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleIntentsClient_ListIntents() { func ExampleIntentsClient_GetIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleIntentsClient_GetIntent() { func ExampleIntentsClient_CreateIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleIntentsClient_CreateIntent() { func ExampleIntentsClient_UpdateIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleIntentsClient_UpdateIntent() { func ExampleIntentsClient_DeleteIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleIntentsClient_DeleteIntent() { func ExampleIntentsClient_BatchUpdateIntents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleIntentsClient_BatchUpdateIntents() { func ExampleIntentsClient_BatchDeleteIntents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleIntentsClient_BatchDeleteIntents() { func ExampleIntentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleIntentsClient_GetLocation() { func ExampleIntentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleIntentsClient_ListLocations() { func ExampleIntentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +311,11 @@ func ExampleIntentsClient_CancelOperation() { func ExampleIntentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +336,11 @@ func ExampleIntentsClient_GetOperation() { func ExampleIntentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/knowledge_bases_client.go b/dialogflow/apiv2/knowledge_bases_client.go index 0d476acae3f..645ac7ed5b4 100644 --- a/dialogflow/apiv2/knowledge_bases_client.go +++ b/dialogflow/apiv2/knowledge_bases_client.go @@ -176,7 +176,8 @@ func (c *KnowledgeBasesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *KnowledgeBasesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -297,7 +298,8 @@ func NewKnowledgeBasesClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *knowledgeBasesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/knowledge_bases_client_example_test.go b/dialogflow/apiv2/knowledge_bases_client_example_test.go index 68b90d0a965..7eb72b7dfc7 100644 --- a/dialogflow/apiv2/knowledge_bases_client_example_test.go +++ b/dialogflow/apiv2/knowledge_bases_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewKnowledgeBasesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewKnowledgeBasesClient() { func ExampleKnowledgeBasesClient_ListKnowledgeBases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleKnowledgeBasesClient_ListKnowledgeBases() { func ExampleKnowledgeBasesClient_GetKnowledgeBase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleKnowledgeBasesClient_GetKnowledgeBase() { func ExampleKnowledgeBasesClient_CreateKnowledgeBase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleKnowledgeBasesClient_CreateKnowledgeBase() { func ExampleKnowledgeBasesClient_DeleteKnowledgeBase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleKnowledgeBasesClient_DeleteKnowledgeBase() { func ExampleKnowledgeBasesClient_UpdateKnowledgeBase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleKnowledgeBasesClient_UpdateKnowledgeBase() { func ExampleKnowledgeBasesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleKnowledgeBasesClient_GetLocation() { func ExampleKnowledgeBasesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleKnowledgeBasesClient_ListLocations() { func ExampleKnowledgeBasesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleKnowledgeBasesClient_CancelOperation() { func ExampleKnowledgeBasesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleKnowledgeBasesClient_GetOperation() { func ExampleKnowledgeBasesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/participants_client.go b/dialogflow/apiv2/participants_client.go index 7ed54af4391..4b0fc9274f1 100644 --- a/dialogflow/apiv2/participants_client.go +++ b/dialogflow/apiv2/participants_client.go @@ -215,7 +215,8 @@ func (c *ParticipantsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ParticipantsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -359,7 +360,8 @@ func NewParticipantsClient(ctx context.Context, opts ...option.ClientOption) (*P // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *participantsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/participants_client_example_test.go b/dialogflow/apiv2/participants_client_example_test.go index 34c9d295215..c7c2a7c034b 100644 --- a/dialogflow/apiv2/participants_client_example_test.go +++ b/dialogflow/apiv2/participants_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewParticipantsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewParticipantsClient() { func ExampleParticipantsClient_CreateParticipant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleParticipantsClient_CreateParticipant() { func ExampleParticipantsClient_GetParticipant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleParticipantsClient_GetParticipant() { func ExampleParticipantsClient_ListParticipants() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleParticipantsClient_ListParticipants() { func ExampleParticipantsClient_UpdateParticipant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleParticipantsClient_UpdateParticipant() { func ExampleParticipantsClient_AnalyzeContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -146,6 +176,11 @@ func ExampleParticipantsClient_AnalyzeContent() { func ExampleParticipantsClient_SuggestArticles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -166,6 +201,11 @@ func ExampleParticipantsClient_SuggestArticles() { func ExampleParticipantsClient_SuggestFaqAnswers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +226,11 @@ func ExampleParticipantsClient_SuggestFaqAnswers() { func ExampleParticipantsClient_SuggestSmartReplies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +251,11 @@ func ExampleParticipantsClient_SuggestSmartReplies() { func ExampleParticipantsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleParticipantsClient_GetLocation() { func ExampleParticipantsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -252,6 +307,11 @@ func ExampleParticipantsClient_ListLocations() { func ExampleParticipantsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -270,6 +330,11 @@ func ExampleParticipantsClient_CancelOperation() { func ExampleParticipantsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -290,6 +355,11 @@ func ExampleParticipantsClient_GetOperation() { func ExampleParticipantsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/session_entity_types_client.go b/dialogflow/apiv2/session_entity_types_client.go index 34d07e2f4ca..0736e551c9e 100644 --- a/dialogflow/apiv2/session_entity_types_client.go +++ b/dialogflow/apiv2/session_entity_types_client.go @@ -176,7 +176,8 @@ func (c *SessionEntityTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SessionEntityTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -320,7 +321,8 @@ func NewSessionEntityTypesClient(ctx context.Context, opts ...option.ClientOptio // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sessionEntityTypesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/session_entity_types_client_example_test.go b/dialogflow/apiv2/session_entity_types_client_example_test.go index 9cacfa237db..76e5488ca9f 100644 --- a/dialogflow/apiv2/session_entity_types_client_example_test.go +++ b/dialogflow/apiv2/session_entity_types_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewSessionEntityTypesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewSessionEntityTypesClient() { func ExampleSessionEntityTypesClient_ListSessionEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleSessionEntityTypesClient_ListSessionEntityTypes() { func ExampleSessionEntityTypesClient_GetSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleSessionEntityTypesClient_GetSessionEntityType() { func ExampleSessionEntityTypesClient_CreateSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleSessionEntityTypesClient_CreateSessionEntityType() { func ExampleSessionEntityTypesClient_UpdateSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleSessionEntityTypesClient_UpdateSessionEntityType() { func ExampleSessionEntityTypesClient_DeleteSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleSessionEntityTypesClient_DeleteSessionEntityType() { func ExampleSessionEntityTypesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleSessionEntityTypesClient_GetLocation() { func ExampleSessionEntityTypesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleSessionEntityTypesClient_ListLocations() { func ExampleSessionEntityTypesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleSessionEntityTypesClient_CancelOperation() { func ExampleSessionEntityTypesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleSessionEntityTypesClient_GetOperation() { func ExampleSessionEntityTypesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/sessions_client.go b/dialogflow/apiv2/sessions_client.go index 2befb8e5e07..808f699b2a9 100644 --- a/dialogflow/apiv2/sessions_client.go +++ b/dialogflow/apiv2/sessions_client.go @@ -130,7 +130,8 @@ func (c *SessionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SessionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -266,7 +267,8 @@ func NewSessionsClient(ctx context.Context, opts ...option.ClientOption) (*Sessi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sessionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/sessions_client_example_test.go b/dialogflow/apiv2/sessions_client_example_test.go index 3f5b0d1cca9..263886c2d48 100644 --- a/dialogflow/apiv2/sessions_client_example_test.go +++ b/dialogflow/apiv2/sessions_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewSessionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewSessionsClient() { func ExampleSessionsClient_DetectIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleSessionsClient_DetectIntent() { func ExampleSessionsClient_StreamingDetectIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +111,11 @@ func ExampleSessionsClient_StreamingDetectIntent() { func ExampleSessionsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +136,11 @@ func ExampleSessionsClient_GetLocation() { func ExampleSessionsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +167,11 @@ func ExampleSessionsClient_ListLocations() { func ExampleSessionsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleSessionsClient_CancelOperation() { func ExampleSessionsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleSessionsClient_GetOperation() { func ExampleSessionsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2/versions_client.go b/dialogflow/apiv2/versions_client.go index 32eea7d070e..eab722555d7 100644 --- a/dialogflow/apiv2/versions_client.go +++ b/dialogflow/apiv2/versions_client.go @@ -176,7 +176,8 @@ func (c *VersionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VersionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -303,7 +304,8 @@ func NewVersionsClient(ctx context.Context, opts ...option.ClientOption) (*Versi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *versionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2/versions_client_example_test.go b/dialogflow/apiv2/versions_client_example_test.go index a592530bac2..d1871d1cc21 100644 --- a/dialogflow/apiv2/versions_client_example_test.go +++ b/dialogflow/apiv2/versions_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewVersionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewVersionsClient() { func ExampleVersionsClient_ListVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleVersionsClient_ListVersions() { func ExampleVersionsClient_GetVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleVersionsClient_GetVersion() { func ExampleVersionsClient_CreateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleVersionsClient_CreateVersion() { func ExampleVersionsClient_UpdateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleVersionsClient_UpdateVersion() { func ExampleVersionsClient_DeleteVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleVersionsClient_DeleteVersion() { func ExampleVersionsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleVersionsClient_GetLocation() { func ExampleVersionsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleVersionsClient_ListLocations() { func ExampleVersionsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleVersionsClient_CancelOperation() { func ExampleVersionsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleVersionsClient_GetOperation() { func ExampleVersionsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/agents_client.go b/dialogflow/apiv2beta1/agents_client.go index f293e2d31a1..c211d39163a 100644 --- a/dialogflow/apiv2beta1/agents_client.go +++ b/dialogflow/apiv2beta1/agents_client.go @@ -240,7 +240,8 @@ func (c *AgentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AgentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -503,7 +504,8 @@ func NewAgentsClient(ctx context.Context, opts ...option.ClientOption) (*AgentsC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *agentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/agents_client_example_test.go b/dialogflow/apiv2beta1/agents_client_example_test.go index 35d9d2bc355..9f10f971c4f 100644 --- a/dialogflow/apiv2beta1/agents_client_example_test.go +++ b/dialogflow/apiv2beta1/agents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewAgentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewAgentsClient() { func ExampleAgentsClient_GetAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleAgentsClient_GetAgent() { func ExampleAgentsClient_SetAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleAgentsClient_SetAgent() { func ExampleAgentsClient_DeleteAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleAgentsClient_DeleteAgent() { func ExampleAgentsClient_SearchAgents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleAgentsClient_SearchAgents() { func ExampleAgentsClient_TrainAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleAgentsClient_TrainAgent() { func ExampleAgentsClient_ExportAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleAgentsClient_ExportAgent() { func ExampleAgentsClient_ImportAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -195,6 +235,11 @@ func ExampleAgentsClient_ImportAgent() { func ExampleAgentsClient_RestoreAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleAgentsClient_RestoreAgent() { func ExampleAgentsClient_GetValidationResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleAgentsClient_GetValidationResult() { func ExampleAgentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +313,11 @@ func ExampleAgentsClient_GetLocation() { func ExampleAgentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -284,6 +344,11 @@ func ExampleAgentsClient_ListLocations() { func ExampleAgentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleAgentsClient_CancelOperation() { func ExampleAgentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +392,11 @@ func ExampleAgentsClient_GetOperation() { func ExampleAgentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/answer_records_client.go b/dialogflow/apiv2beta1/answer_records_client.go index 818d0813003..34a3f7e2f05 100644 --- a/dialogflow/apiv2beta1/answer_records_client.go +++ b/dialogflow/apiv2beta1/answer_records_client.go @@ -150,7 +150,8 @@ func (c *AnswerRecordsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AnswerRecordsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -265,7 +266,8 @@ func NewAnswerRecordsClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *answerRecordsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/answer_records_client_example_test.go b/dialogflow/apiv2beta1/answer_records_client_example_test.go index b9ea67fcc88..1d3ccb04bb5 100644 --- a/dialogflow/apiv2beta1/answer_records_client_example_test.go +++ b/dialogflow/apiv2beta1/answer_records_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewAnswerRecordsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewAnswerRecordsClient() { func ExampleAnswerRecordsClient_GetAnswerRecord() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleAnswerRecordsClient_GetAnswerRecord() { func ExampleAnswerRecordsClient_ListAnswerRecords() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleAnswerRecordsClient_ListAnswerRecords() { func ExampleAnswerRecordsClient_UpdateAnswerRecord() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleAnswerRecordsClient_UpdateAnswerRecord() { func ExampleAnswerRecordsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleAnswerRecordsClient_GetLocation() { func ExampleAnswerRecordsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -152,6 +182,11 @@ func ExampleAnswerRecordsClient_ListLocations() { func ExampleAnswerRecordsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleAnswerRecordsClient_CancelOperation() { func ExampleAnswerRecordsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleAnswerRecordsClient_GetOperation() { func ExampleAnswerRecordsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/contexts_client.go b/dialogflow/apiv2beta1/contexts_client.go index 3960b814b2d..3cae515ca6e 100644 --- a/dialogflow/apiv2beta1/contexts_client.go +++ b/dialogflow/apiv2beta1/contexts_client.go @@ -189,7 +189,8 @@ func (c *ContextsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ContextsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -317,7 +318,8 @@ func NewContextsClient(ctx context.Context, opts ...option.ClientOption) (*Conte // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *contextsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/contexts_client_example_test.go b/dialogflow/apiv2beta1/contexts_client_example_test.go index c5c0221c234..135e0753621 100644 --- a/dialogflow/apiv2beta1/contexts_client_example_test.go +++ b/dialogflow/apiv2beta1/contexts_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewContextsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewContextsClient() { func ExampleContextsClient_ListContexts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleContextsClient_ListContexts() { func ExampleContextsClient_GetContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleContextsClient_GetContext() { func ExampleContextsClient_CreateContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleContextsClient_CreateContext() { func ExampleContextsClient_UpdateContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleContextsClient_UpdateContext() { func ExampleContextsClient_DeleteContext() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleContextsClient_DeleteContext() { func ExampleContextsClient_DeleteAllContexts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleContextsClient_DeleteAllContexts() { func ExampleContextsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleContextsClient_GetLocation() { func ExampleContextsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleContextsClient_ListLocations() { func ExampleContextsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleContextsClient_CancelOperation() { func ExampleContextsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +301,11 @@ func ExampleContextsClient_GetOperation() { func ExampleContextsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/conversation_profiles_client.go b/dialogflow/apiv2beta1/conversation_profiles_client.go index 4f03c71fb3e..425fb14477d 100644 --- a/dialogflow/apiv2beta1/conversation_profiles_client.go +++ b/dialogflow/apiv2beta1/conversation_profiles_client.go @@ -211,7 +211,8 @@ func (c *ConversationProfilesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ConversationProfilesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -403,7 +404,8 @@ func NewConversationProfilesClient(ctx context.Context, opts ...option.ClientOpt // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *conversationProfilesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/conversation_profiles_client_example_test.go b/dialogflow/apiv2beta1/conversation_profiles_client_example_test.go index 84fae6dfa01..3b4722da7a5 100644 --- a/dialogflow/apiv2beta1/conversation_profiles_client_example_test.go +++ b/dialogflow/apiv2beta1/conversation_profiles_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewConversationProfilesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewConversationProfilesClient() { func ExampleConversationProfilesClient_ListConversationProfiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleConversationProfilesClient_ListConversationProfiles() { func ExampleConversationProfilesClient_GetConversationProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleConversationProfilesClient_GetConversationProfile() { func ExampleConversationProfilesClient_CreateConversationProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleConversationProfilesClient_CreateConversationProfile() { func ExampleConversationProfilesClient_UpdateConversationProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleConversationProfilesClient_UpdateConversationProfile() { func ExampleConversationProfilesClient_DeleteConversationProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleConversationProfilesClient_DeleteConversationProfile() { func ExampleConversationProfilesClient_SetSuggestionFeatureConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleConversationProfilesClient_SetSuggestionFeatureConfig() { func ExampleConversationProfilesClient_ClearSuggestionFeatureConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +234,11 @@ func ExampleConversationProfilesClient_ClearSuggestionFeatureConfig() { func ExampleConversationProfilesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +259,11 @@ func ExampleConversationProfilesClient_GetLocation() { func ExampleConversationProfilesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +290,11 @@ func ExampleConversationProfilesClient_ListLocations() { func ExampleConversationProfilesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +313,11 @@ func ExampleConversationProfilesClient_CancelOperation() { func ExampleConversationProfilesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +338,11 @@ func ExampleConversationProfilesClient_GetOperation() { func ExampleConversationProfilesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/conversations_client.go b/dialogflow/apiv2beta1/conversations_client.go index 526bf24d804..4d725c38ea0 100644 --- a/dialogflow/apiv2beta1/conversations_client.go +++ b/dialogflow/apiv2beta1/conversations_client.go @@ -189,7 +189,8 @@ func (c *ConversationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ConversationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -337,7 +338,8 @@ func NewConversationsClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *conversationsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/conversations_client_example_test.go b/dialogflow/apiv2beta1/conversations_client_example_test.go index de87d231326..1b4c5f15528 100644 --- a/dialogflow/apiv2beta1/conversations_client_example_test.go +++ b/dialogflow/apiv2beta1/conversations_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewConversationsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewConversationsClient() { func ExampleConversationsClient_CreateConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleConversationsClient_CreateConversation() { func ExampleConversationsClient_ListConversations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleConversationsClient_ListConversations() { func ExampleConversationsClient_GetConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleConversationsClient_GetConversation() { func ExampleConversationsClient_CompleteConversation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleConversationsClient_CompleteConversation() { func ExampleConversationsClient_BatchCreateMessages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -146,6 +176,11 @@ func ExampleConversationsClient_BatchCreateMessages() { func ExampleConversationsClient_ListMessages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleConversationsClient_ListMessages() { func ExampleConversationsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleConversationsClient_GetLocation() { func ExampleConversationsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleConversationsClient_ListLocations() { func ExampleConversationsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -236,6 +286,11 @@ func ExampleConversationsClient_CancelOperation() { func ExampleConversationsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +311,11 @@ func ExampleConversationsClient_GetOperation() { func ExampleConversationsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/doc.go b/dialogflow/apiv2beta1/doc.go index 9a8a1390c84..abc47d2c520 100644 --- a/dialogflow/apiv2beta1/doc.go +++ b/dialogflow/apiv2beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dialogflow.NewAgentsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dialogflow.NewAgentsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/documents_client.go b/dialogflow/apiv2beta1/documents_client.go index abbb9fdb84c..0380c65a2b7 100644 --- a/dialogflow/apiv2beta1/documents_client.go +++ b/dialogflow/apiv2beta1/documents_client.go @@ -214,7 +214,8 @@ func (c *DocumentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DocumentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -458,7 +459,8 @@ func NewDocumentsClient(ctx context.Context, opts ...option.ClientOption) (*Docu // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *documentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/documents_client_example_test.go b/dialogflow/apiv2beta1/documents_client_example_test.go index c00e88697d1..4361c549266 100644 --- a/dialogflow/apiv2beta1/documents_client_example_test.go +++ b/dialogflow/apiv2beta1/documents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewDocumentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewDocumentsClient() { func ExampleDocumentsClient_ListDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleDocumentsClient_ListDocuments() { func ExampleDocumentsClient_GetDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleDocumentsClient_GetDocument() { func ExampleDocumentsClient_CreateDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleDocumentsClient_CreateDocument() { func ExampleDocumentsClient_ImportDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleDocumentsClient_ImportDocuments() { func ExampleDocumentsClient_DeleteDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleDocumentsClient_DeleteDocument() { func ExampleDocumentsClient_UpdateDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +219,11 @@ func ExampleDocumentsClient_UpdateDocument() { func ExampleDocumentsClient_ReloadDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +249,11 @@ func ExampleDocumentsClient_ReloadDocument() { func ExampleDocumentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -229,6 +274,11 @@ func ExampleDocumentsClient_GetLocation() { func ExampleDocumentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +305,11 @@ func ExampleDocumentsClient_ListLocations() { func ExampleDocumentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -273,6 +328,11 @@ func ExampleDocumentsClient_CancelOperation() { func ExampleDocumentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. @@ -293,6 +353,11 @@ func ExampleDocumentsClient_GetOperation() { func ExampleDocumentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/entity_types_client.go b/dialogflow/apiv2beta1/entity_types_client.go index 588dd6e3ac1..3faf58e4420 100644 --- a/dialogflow/apiv2beta1/entity_types_client.go +++ b/dialogflow/apiv2beta1/entity_types_client.go @@ -254,7 +254,8 @@ func (c *EntityTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EntityTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -529,7 +530,8 @@ func NewEntityTypesClient(ctx context.Context, opts ...option.ClientOption) (*En // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *entityTypesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/entity_types_client_example_test.go b/dialogflow/apiv2beta1/entity_types_client_example_test.go index dc663b8ec8b..0ffa661f914 100644 --- a/dialogflow/apiv2beta1/entity_types_client_example_test.go +++ b/dialogflow/apiv2beta1/entity_types_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewEntityTypesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewEntityTypesClient() { func ExampleEntityTypesClient_ListEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleEntityTypesClient_ListEntityTypes() { func ExampleEntityTypesClient_GetEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleEntityTypesClient_GetEntityType() { func ExampleEntityTypesClient_CreateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleEntityTypesClient_CreateEntityType() { func ExampleEntityTypesClient_UpdateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleEntityTypesClient_UpdateEntityType() { func ExampleEntityTypesClient_DeleteEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleEntityTypesClient_DeleteEntityType() { func ExampleEntityTypesClient_BatchUpdateEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleEntityTypesClient_BatchUpdateEntityTypes() { func ExampleEntityTypesClient_BatchDeleteEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleEntityTypesClient_BatchDeleteEntityTypes() { func ExampleEntityTypesClient_BatchCreateEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +260,11 @@ func ExampleEntityTypesClient_BatchCreateEntities() { func ExampleEntityTypesClient_BatchUpdateEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleEntityTypesClient_BatchUpdateEntities() { func ExampleEntityTypesClient_BatchDeleteEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -261,6 +316,11 @@ func ExampleEntityTypesClient_BatchDeleteEntities() { func ExampleEntityTypesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -281,6 +341,11 @@ func ExampleEntityTypesClient_GetLocation() { func ExampleEntityTypesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +372,11 @@ func ExampleEntityTypesClient_ListLocations() { func ExampleEntityTypesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -325,6 +395,11 @@ func ExampleEntityTypesClient_CancelOperation() { func ExampleEntityTypesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -345,6 +420,11 @@ func ExampleEntityTypesClient_GetOperation() { func ExampleEntityTypesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/environments_client.go b/dialogflow/apiv2beta1/environments_client.go index 30c26255e2b..83fe9b03c86 100644 --- a/dialogflow/apiv2beta1/environments_client.go +++ b/dialogflow/apiv2beta1/environments_client.go @@ -189,7 +189,8 @@ func (c *EnvironmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EnvironmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -326,7 +327,8 @@ func NewEnvironmentsClient(ctx context.Context, opts ...option.ClientOption) (*E // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *environmentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/environments_client_example_test.go b/dialogflow/apiv2beta1/environments_client_example_test.go index 6c2a7acc9b0..94390e4c4f8 100644 --- a/dialogflow/apiv2beta1/environments_client_example_test.go +++ b/dialogflow/apiv2beta1/environments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewEnvironmentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewEnvironmentsClient() { func ExampleEnvironmentsClient_ListEnvironments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleEnvironmentsClient_ListEnvironments() { func ExampleEnvironmentsClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleEnvironmentsClient_GetEnvironment() { func ExampleEnvironmentsClient_CreateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleEnvironmentsClient_CreateEnvironment() { func ExampleEnvironmentsClient_UpdateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleEnvironmentsClient_UpdateEnvironment() { func ExampleEnvironmentsClient_DeleteEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleEnvironmentsClient_DeleteEnvironment() { func ExampleEnvironmentsClient_GetEnvironmentHistory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleEnvironmentsClient_GetEnvironmentHistory() { func ExampleEnvironmentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleEnvironmentsClient_GetLocation() { func ExampleEnvironmentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +261,11 @@ func ExampleEnvironmentsClient_ListLocations() { func ExampleEnvironmentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +284,11 @@ func ExampleEnvironmentsClient_CancelOperation() { func ExampleEnvironmentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +309,11 @@ func ExampleEnvironmentsClient_GetOperation() { func ExampleEnvironmentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/fulfillments_client.go b/dialogflow/apiv2beta1/fulfillments_client.go index 47136ed44da..304e87c2d32 100644 --- a/dialogflow/apiv2beta1/fulfillments_client.go +++ b/dialogflow/apiv2beta1/fulfillments_client.go @@ -137,7 +137,8 @@ func (c *FulfillmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FulfillmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,8 @@ func NewFulfillmentsClient(ctx context.Context, opts ...option.ClientOption) (*F // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *fulfillmentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/fulfillments_client_example_test.go b/dialogflow/apiv2beta1/fulfillments_client_example_test.go index f1461bb2ba7..fe41ecfcf34 100644 --- a/dialogflow/apiv2beta1/fulfillments_client_example_test.go +++ b/dialogflow/apiv2beta1/fulfillments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewFulfillmentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewFulfillmentsClient() { func ExampleFulfillmentsClient_GetFulfillment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleFulfillmentsClient_GetFulfillment() { func ExampleFulfillmentsClient_UpdateFulfillment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleFulfillmentsClient_UpdateFulfillment() { func ExampleFulfillmentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -100,6 +120,11 @@ func ExampleFulfillmentsClient_GetLocation() { func ExampleFulfillmentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleFulfillmentsClient_ListLocations() { func ExampleFulfillmentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleFulfillmentsClient_CancelOperation() { func ExampleFulfillmentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleFulfillmentsClient_GetOperation() { func ExampleFulfillmentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/intents_client.go b/dialogflow/apiv2beta1/intents_client.go index cf9840d7e2c..f99e124dae8 100644 --- a/dialogflow/apiv2beta1/intents_client.go +++ b/dialogflow/apiv2beta1/intents_client.go @@ -212,7 +212,8 @@ func (c *IntentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IntentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -410,7 +411,8 @@ func NewIntentsClient(ctx context.Context, opts ...option.ClientOption) (*Intent // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *intentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/intents_client_example_test.go b/dialogflow/apiv2beta1/intents_client_example_test.go index 97bed9d75dd..57e146b8281 100644 --- a/dialogflow/apiv2beta1/intents_client_example_test.go +++ b/dialogflow/apiv2beta1/intents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewIntentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewIntentsClient() { func ExampleIntentsClient_ListIntents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleIntentsClient_ListIntents() { func ExampleIntentsClient_GetIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleIntentsClient_GetIntent() { func ExampleIntentsClient_CreateIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleIntentsClient_CreateIntent() { func ExampleIntentsClient_UpdateIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleIntentsClient_UpdateIntent() { func ExampleIntentsClient_DeleteIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleIntentsClient_DeleteIntent() { func ExampleIntentsClient_BatchUpdateIntents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleIntentsClient_BatchUpdateIntents() { func ExampleIntentsClient_BatchDeleteIntents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleIntentsClient_BatchDeleteIntents() { func ExampleIntentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleIntentsClient_GetLocation() { func ExampleIntentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleIntentsClient_ListLocations() { func ExampleIntentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +311,11 @@ func ExampleIntentsClient_CancelOperation() { func ExampleIntentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +336,11 @@ func ExampleIntentsClient_GetOperation() { func ExampleIntentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/knowledge_bases_client.go b/dialogflow/apiv2beta1/knowledge_bases_client.go index dcc7d619316..da49bd34399 100644 --- a/dialogflow/apiv2beta1/knowledge_bases_client.go +++ b/dialogflow/apiv2beta1/knowledge_bases_client.go @@ -176,7 +176,8 @@ func (c *KnowledgeBasesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *KnowledgeBasesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -312,7 +313,8 @@ func NewKnowledgeBasesClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *knowledgeBasesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/knowledge_bases_client_example_test.go b/dialogflow/apiv2beta1/knowledge_bases_client_example_test.go index e420e42b7c4..82ce0e330aa 100644 --- a/dialogflow/apiv2beta1/knowledge_bases_client_example_test.go +++ b/dialogflow/apiv2beta1/knowledge_bases_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewKnowledgeBasesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewKnowledgeBasesClient() { func ExampleKnowledgeBasesClient_ListKnowledgeBases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleKnowledgeBasesClient_ListKnowledgeBases() { func ExampleKnowledgeBasesClient_GetKnowledgeBase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleKnowledgeBasesClient_GetKnowledgeBase() { func ExampleKnowledgeBasesClient_CreateKnowledgeBase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleKnowledgeBasesClient_CreateKnowledgeBase() { func ExampleKnowledgeBasesClient_DeleteKnowledgeBase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleKnowledgeBasesClient_DeleteKnowledgeBase() { func ExampleKnowledgeBasesClient_UpdateKnowledgeBase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleKnowledgeBasesClient_UpdateKnowledgeBase() { func ExampleKnowledgeBasesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleKnowledgeBasesClient_GetLocation() { func ExampleKnowledgeBasesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleKnowledgeBasesClient_ListLocations() { func ExampleKnowledgeBasesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleKnowledgeBasesClient_CancelOperation() { func ExampleKnowledgeBasesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleKnowledgeBasesClient_GetOperation() { func ExampleKnowledgeBasesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/participants_client.go b/dialogflow/apiv2beta1/participants_client.go index e7294419a53..e6cee997f23 100644 --- a/dialogflow/apiv2beta1/participants_client.go +++ b/dialogflow/apiv2beta1/participants_client.go @@ -244,7 +244,8 @@ func (c *ParticipantsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ParticipantsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -450,7 +451,8 @@ func NewParticipantsClient(ctx context.Context, opts ...option.ClientOption) (*P // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *participantsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/participants_client_example_test.go b/dialogflow/apiv2beta1/participants_client_example_test.go index cb2a7f08705..02a48a8cdd0 100644 --- a/dialogflow/apiv2beta1/participants_client_example_test.go +++ b/dialogflow/apiv2beta1/participants_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewParticipantsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewParticipantsClient() { func ExampleParticipantsClient_CreateParticipant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleParticipantsClient_CreateParticipant() { func ExampleParticipantsClient_GetParticipant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -81,6 +96,11 @@ func ExampleParticipantsClient_GetParticipant() { func ExampleParticipantsClient_ListParticipants() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleParticipantsClient_ListParticipants() { func ExampleParticipantsClient_UpdateParticipant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -127,6 +152,11 @@ func ExampleParticipantsClient_UpdateParticipant() { func ExampleParticipantsClient_AnalyzeContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleParticipantsClient_AnalyzeContent() { func ExampleParticipantsClient_StreamingAnalyzeContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleParticipantsClient_StreamingAnalyzeContent() { func ExampleParticipantsClient_SuggestArticles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleParticipantsClient_SuggestArticles() { func ExampleParticipantsClient_SuggestFaqAnswers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleParticipantsClient_SuggestFaqAnswers() { func ExampleParticipantsClient_SuggestSmartReplies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +292,11 @@ func ExampleParticipantsClient_SuggestSmartReplies() { func ExampleParticipantsClient_ListSuggestions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleParticipantsClient_ListSuggestions() { func ExampleParticipantsClient_CompileSuggestion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -288,6 +348,11 @@ func ExampleParticipantsClient_CompileSuggestion() { func ExampleParticipantsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -308,6 +373,11 @@ func ExampleParticipantsClient_GetLocation() { func ExampleParticipantsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -334,6 +404,11 @@ func ExampleParticipantsClient_ListLocations() { func ExampleParticipantsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -352,6 +427,11 @@ func ExampleParticipantsClient_CancelOperation() { func ExampleParticipantsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +452,11 @@ func ExampleParticipantsClient_GetOperation() { func ExampleParticipantsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/session_entity_types_client.go b/dialogflow/apiv2beta1/session_entity_types_client.go index 1744698519b..098310ca9f3 100644 --- a/dialogflow/apiv2beta1/session_entity_types_client.go +++ b/dialogflow/apiv2beta1/session_entity_types_client.go @@ -176,7 +176,8 @@ func (c *SessionEntityTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SessionEntityTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -320,7 +321,8 @@ func NewSessionEntityTypesClient(ctx context.Context, opts ...option.ClientOptio // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sessionEntityTypesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/session_entity_types_client_example_test.go b/dialogflow/apiv2beta1/session_entity_types_client_example_test.go index ac3cda42efd..624bc614fd3 100644 --- a/dialogflow/apiv2beta1/session_entity_types_client_example_test.go +++ b/dialogflow/apiv2beta1/session_entity_types_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewSessionEntityTypesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewSessionEntityTypesClient() { func ExampleSessionEntityTypesClient_ListSessionEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleSessionEntityTypesClient_ListSessionEntityTypes() { func ExampleSessionEntityTypesClient_GetSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleSessionEntityTypesClient_GetSessionEntityType() { func ExampleSessionEntityTypesClient_CreateSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleSessionEntityTypesClient_CreateSessionEntityType() { func ExampleSessionEntityTypesClient_UpdateSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleSessionEntityTypesClient_UpdateSessionEntityType() { func ExampleSessionEntityTypesClient_DeleteSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleSessionEntityTypesClient_DeleteSessionEntityType() { func ExampleSessionEntityTypesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleSessionEntityTypesClient_GetLocation() { func ExampleSessionEntityTypesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleSessionEntityTypesClient_ListLocations() { func ExampleSessionEntityTypesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleSessionEntityTypesClient_CancelOperation() { func ExampleSessionEntityTypesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleSessionEntityTypesClient_GetOperation() { func ExampleSessionEntityTypesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/sessions_client.go b/dialogflow/apiv2beta1/sessions_client.go index 289bef24592..c1fae997d67 100644 --- a/dialogflow/apiv2beta1/sessions_client.go +++ b/dialogflow/apiv2beta1/sessions_client.go @@ -130,7 +130,8 @@ func (c *SessionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SessionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -266,7 +267,8 @@ func NewSessionsClient(ctx context.Context, opts ...option.ClientOption) (*Sessi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sessionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/sessions_client_example_test.go b/dialogflow/apiv2beta1/sessions_client_example_test.go index 218545aa213..c3889c9e9a0 100644 --- a/dialogflow/apiv2beta1/sessions_client_example_test.go +++ b/dialogflow/apiv2beta1/sessions_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewSessionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewSessionsClient() { func ExampleSessionsClient_DetectIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleSessionsClient_DetectIntent() { func ExampleSessionsClient_StreamingDetectIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +111,11 @@ func ExampleSessionsClient_StreamingDetectIntent() { func ExampleSessionsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +136,11 @@ func ExampleSessionsClient_GetLocation() { func ExampleSessionsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +167,11 @@ func ExampleSessionsClient_ListLocations() { func ExampleSessionsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleSessionsClient_CancelOperation() { func ExampleSessionsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleSessionsClient_GetOperation() { func ExampleSessionsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/apiv2beta1/versions_client.go b/dialogflow/apiv2beta1/versions_client.go index 46b1ba12af5..45bae458f48 100644 --- a/dialogflow/apiv2beta1/versions_client.go +++ b/dialogflow/apiv2beta1/versions_client.go @@ -176,7 +176,8 @@ func (c *VersionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VersionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -303,7 +304,8 @@ func NewVersionsClient(ctx context.Context, opts ...option.ClientOption) (*Versi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *versionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/apiv2beta1/versions_client_example_test.go b/dialogflow/apiv2beta1/versions_client_example_test.go index 429ddb03f0d..aea5e743a49 100644 --- a/dialogflow/apiv2beta1/versions_client_example_test.go +++ b/dialogflow/apiv2beta1/versions_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewVersionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewVersionsClient() { func ExampleVersionsClient_ListVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleVersionsClient_ListVersions() { func ExampleVersionsClient_GetVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleVersionsClient_GetVersion() { func ExampleVersionsClient_CreateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleVersionsClient_CreateVersion() { func ExampleVersionsClient_UpdateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleVersionsClient_UpdateVersion() { func ExampleVersionsClient_DeleteVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleVersionsClient_DeleteVersion() { func ExampleVersionsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleVersionsClient_GetLocation() { func ExampleVersionsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleVersionsClient_ListLocations() { func ExampleVersionsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleVersionsClient_CancelOperation() { func ExampleVersionsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleVersionsClient_GetOperation() { func ExampleVersionsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/agents_client.go b/dialogflow/cx/apiv3/agents_client.go index d646bdbea4d..7d84fe395db 100644 --- a/dialogflow/cx/apiv3/agents_client.go +++ b/dialogflow/cx/apiv3/agents_client.go @@ -238,7 +238,8 @@ func (c *AgentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AgentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -444,7 +445,8 @@ func NewAgentsClient(ctx context.Context, opts ...option.ClientOption) (*AgentsC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *agentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/agents_client_example_test.go b/dialogflow/cx/apiv3/agents_client_example_test.go index deed73360c4..d5c7c85b3f5 100644 --- a/dialogflow/cx/apiv3/agents_client_example_test.go +++ b/dialogflow/cx/apiv3/agents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewAgentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewAgentsClient() { func ExampleAgentsClient_ListAgents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleAgentsClient_ListAgents() { func ExampleAgentsClient_GetAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleAgentsClient_GetAgent() { func ExampleAgentsClient_CreateAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleAgentsClient_CreateAgent() { func ExampleAgentsClient_UpdateAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleAgentsClient_UpdateAgent() { func ExampleAgentsClient_DeleteAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleAgentsClient_DeleteAgent() { func ExampleAgentsClient_ExportAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleAgentsClient_ExportAgent() { func ExampleAgentsClient_RestoreAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleAgentsClient_RestoreAgent() { func ExampleAgentsClient_ValidateAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleAgentsClient_ValidateAgent() { func ExampleAgentsClient_GetAgentValidationResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +282,11 @@ func ExampleAgentsClient_GetAgentValidationResult() { func ExampleAgentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -252,6 +307,11 @@ func ExampleAgentsClient_GetLocation() { func ExampleAgentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +338,11 @@ func ExampleAgentsClient_ListLocations() { func ExampleAgentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -296,6 +361,11 @@ func ExampleAgentsClient_CancelOperation() { func ExampleAgentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -316,6 +386,11 @@ func ExampleAgentsClient_GetOperation() { func ExampleAgentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/changelogs_client.go b/dialogflow/cx/apiv3/changelogs_client.go index fea876d58ae..a0a3c20819d 100644 --- a/dialogflow/cx/apiv3/changelogs_client.go +++ b/dialogflow/cx/apiv3/changelogs_client.go @@ -137,7 +137,8 @@ func (c *ChangelogsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ChangelogsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,8 @@ func NewChangelogsClient(ctx context.Context, opts ...option.ClientOption) (*Cha // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *changelogsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/changelogs_client_example_test.go b/dialogflow/cx/apiv3/changelogs_client_example_test.go index e24d96ed674..7f96c50c128 100644 --- a/dialogflow/cx/apiv3/changelogs_client_example_test.go +++ b/dialogflow/cx/apiv3/changelogs_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewChangelogsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewChangelogsClient() { func ExampleChangelogsClient_ListChangelogs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleChangelogsClient_ListChangelogs() { func ExampleChangelogsClient_GetChangelog() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleChangelogsClient_GetChangelog() { func ExampleChangelogsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleChangelogsClient_GetLocation() { func ExampleChangelogsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleChangelogsClient_ListLocations() { func ExampleChangelogsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleChangelogsClient_CancelOperation() { func ExampleChangelogsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleChangelogsClient_GetOperation() { func ExampleChangelogsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/deployments_client.go b/dialogflow/cx/apiv3/deployments_client.go index 314aa114f3b..8193413941c 100644 --- a/dialogflow/cx/apiv3/deployments_client.go +++ b/dialogflow/cx/apiv3/deployments_client.go @@ -137,7 +137,8 @@ func (c *DeploymentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DeploymentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,8 @@ func NewDeploymentsClient(ctx context.Context, opts ...option.ClientOption) (*De // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *deploymentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/deployments_client_example_test.go b/dialogflow/cx/apiv3/deployments_client_example_test.go index 0931d10a5c3..f39555998ab 100644 --- a/dialogflow/cx/apiv3/deployments_client_example_test.go +++ b/dialogflow/cx/apiv3/deployments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewDeploymentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewDeploymentsClient() { func ExampleDeploymentsClient_ListDeployments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleDeploymentsClient_ListDeployments() { func ExampleDeploymentsClient_GetDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleDeploymentsClient_GetDeployment() { func ExampleDeploymentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleDeploymentsClient_GetLocation() { func ExampleDeploymentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleDeploymentsClient_ListLocations() { func ExampleDeploymentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleDeploymentsClient_CancelOperation() { func ExampleDeploymentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleDeploymentsClient_GetOperation() { func ExampleDeploymentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/doc.go b/dialogflow/cx/apiv3/doc.go index 8e22b622876..2d85e0bcae3 100644 --- a/dialogflow/cx/apiv3/doc.go +++ b/dialogflow/cx/apiv3/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cx.NewPagesClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cx.NewPagesClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/entity_types_client.go b/dialogflow/cx/apiv3/entity_types_client.go index 5f89ab5f284..13083b42351 100644 --- a/dialogflow/cx/apiv3/entity_types_client.go +++ b/dialogflow/cx/apiv3/entity_types_client.go @@ -176,7 +176,8 @@ func (c *EntityTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EntityTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -309,7 +310,8 @@ func NewEntityTypesClient(ctx context.Context, opts ...option.ClientOption) (*En // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *entityTypesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/entity_types_client_example_test.go b/dialogflow/cx/apiv3/entity_types_client_example_test.go index 5e9821a67b4..60936fa4af5 100644 --- a/dialogflow/cx/apiv3/entity_types_client_example_test.go +++ b/dialogflow/cx/apiv3/entity_types_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewEntityTypesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewEntityTypesClient() { func ExampleEntityTypesClient_ListEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleEntityTypesClient_ListEntityTypes() { func ExampleEntityTypesClient_GetEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleEntityTypesClient_GetEntityType() { func ExampleEntityTypesClient_CreateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleEntityTypesClient_CreateEntityType() { func ExampleEntityTypesClient_UpdateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleEntityTypesClient_UpdateEntityType() { func ExampleEntityTypesClient_DeleteEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleEntityTypesClient_DeleteEntityType() { func ExampleEntityTypesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleEntityTypesClient_GetLocation() { func ExampleEntityTypesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleEntityTypesClient_ListLocations() { func ExampleEntityTypesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleEntityTypesClient_CancelOperation() { func ExampleEntityTypesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleEntityTypesClient_GetOperation() { func ExampleEntityTypesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/environments_client.go b/dialogflow/cx/apiv3/environments_client.go index 304ba47a3fa..c398b6acdd2 100644 --- a/dialogflow/cx/apiv3/environments_client.go +++ b/dialogflow/cx/apiv3/environments_client.go @@ -240,7 +240,8 @@ func (c *EnvironmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EnvironmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -455,7 +456,8 @@ func NewEnvironmentsClient(ctx context.Context, opts ...option.ClientOption) (*E // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *environmentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/environments_client_example_test.go b/dialogflow/cx/apiv3/environments_client_example_test.go index c3fa393aa34..be276ad58cd 100644 --- a/dialogflow/cx/apiv3/environments_client_example_test.go +++ b/dialogflow/cx/apiv3/environments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewEnvironmentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewEnvironmentsClient() { func ExampleEnvironmentsClient_ListEnvironments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleEnvironmentsClient_ListEnvironments() { func ExampleEnvironmentsClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleEnvironmentsClient_GetEnvironment() { func ExampleEnvironmentsClient_CreateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleEnvironmentsClient_CreateEnvironment() { func ExampleEnvironmentsClient_UpdateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleEnvironmentsClient_UpdateEnvironment() { func ExampleEnvironmentsClient_DeleteEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +184,11 @@ func ExampleEnvironmentsClient_DeleteEnvironment() { func ExampleEnvironmentsClient_LookupEnvironmentHistory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleEnvironmentsClient_LookupEnvironmentHistory() { func ExampleEnvironmentsClient_RunContinuousTest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleEnvironmentsClient_RunContinuousTest() { func ExampleEnvironmentsClient_ListContinuousTestResults() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +276,11 @@ func ExampleEnvironmentsClient_ListContinuousTestResults() { func ExampleEnvironmentsClient_DeployFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +306,11 @@ func ExampleEnvironmentsClient_DeployFlow() { func ExampleEnvironmentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleEnvironmentsClient_GetLocation() { func ExampleEnvironmentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +362,11 @@ func ExampleEnvironmentsClient_ListLocations() { func ExampleEnvironmentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -320,6 +385,11 @@ func ExampleEnvironmentsClient_CancelOperation() { func ExampleEnvironmentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -340,6 +410,11 @@ func ExampleEnvironmentsClient_GetOperation() { func ExampleEnvironmentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/experiments_client.go b/dialogflow/cx/apiv3/experiments_client.go index 850cd334901..b652a960a10 100644 --- a/dialogflow/cx/apiv3/experiments_client.go +++ b/dialogflow/cx/apiv3/experiments_client.go @@ -202,7 +202,8 @@ func (c *ExperimentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ExperimentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -335,7 +336,8 @@ func NewExperimentsClient(ctx context.Context, opts ...option.ClientOption) (*Ex // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *experimentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/experiments_client_example_test.go b/dialogflow/cx/apiv3/experiments_client_example_test.go index af1b34076aa..0217b2032b7 100644 --- a/dialogflow/cx/apiv3/experiments_client_example_test.go +++ b/dialogflow/cx/apiv3/experiments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewExperimentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewExperimentsClient() { func ExampleExperimentsClient_ListExperiments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleExperimentsClient_ListExperiments() { func ExampleExperimentsClient_GetExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleExperimentsClient_GetExperiment() { func ExampleExperimentsClient_CreateExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleExperimentsClient_CreateExperiment() { func ExampleExperimentsClient_UpdateExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleExperimentsClient_UpdateExperiment() { func ExampleExperimentsClient_DeleteExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleExperimentsClient_DeleteExperiment() { func ExampleExperimentsClient_StartExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleExperimentsClient_StartExperiment() { func ExampleExperimentsClient_StopExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +224,11 @@ func ExampleExperimentsClient_StopExperiment() { func ExampleExperimentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -204,6 +249,11 @@ func ExampleExperimentsClient_GetLocation() { func ExampleExperimentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -230,6 +280,11 @@ func ExampleExperimentsClient_ListLocations() { func ExampleExperimentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +303,11 @@ func ExampleExperimentsClient_CancelOperation() { func ExampleExperimentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +328,11 @@ func ExampleExperimentsClient_GetOperation() { func ExampleExperimentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/flows_client.go b/dialogflow/cx/apiv3/flows_client.go index ee10fc0362e..c3579638ef9 100644 --- a/dialogflow/cx/apiv3/flows_client.go +++ b/dialogflow/cx/apiv3/flows_client.go @@ -252,7 +252,8 @@ func (c *FlowsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FlowsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -483,7 +484,8 @@ func NewFlowsClient(ctx context.Context, opts ...option.ClientOption) (*FlowsCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *flowsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/flows_client_example_test.go b/dialogflow/cx/apiv3/flows_client_example_test.go index 9122dd90d91..0714137061e 100644 --- a/dialogflow/cx/apiv3/flows_client_example_test.go +++ b/dialogflow/cx/apiv3/flows_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewFlowsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewFlowsClient() { func ExampleFlowsClient_CreateFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleFlowsClient_CreateFlow() { func ExampleFlowsClient_DeleteFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleFlowsClient_DeleteFlow() { func ExampleFlowsClient_ListFlows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleFlowsClient_ListFlows() { func ExampleFlowsClient_GetFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleFlowsClient_GetFlow() { func ExampleFlowsClient_UpdateFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleFlowsClient_UpdateFlow() { func ExampleFlowsClient_TrainFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -167,6 +202,11 @@ func ExampleFlowsClient_TrainFlow() { func ExampleFlowsClient_ValidateFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -187,6 +227,11 @@ func ExampleFlowsClient_ValidateFlow() { func ExampleFlowsClient_GetFlowValidationResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -207,6 +252,11 @@ func ExampleFlowsClient_GetFlowValidationResult() { func ExampleFlowsClient_ImportFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +282,11 @@ func ExampleFlowsClient_ImportFlow() { func ExampleFlowsClient_ExportFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -257,6 +312,11 @@ func ExampleFlowsClient_ExportFlow() { func ExampleFlowsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -277,6 +337,11 @@ func ExampleFlowsClient_GetLocation() { func ExampleFlowsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -303,6 +368,11 @@ func ExampleFlowsClient_ListLocations() { func ExampleFlowsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +391,11 @@ func ExampleFlowsClient_CancelOperation() { func ExampleFlowsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +416,11 @@ func ExampleFlowsClient_GetOperation() { func ExampleFlowsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/intents_client.go b/dialogflow/cx/apiv3/intents_client.go index 74017ede9a3..7d4d6bc97d0 100644 --- a/dialogflow/cx/apiv3/intents_client.go +++ b/dialogflow/cx/apiv3/intents_client.go @@ -176,7 +176,8 @@ func (c *IntentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IntentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -309,7 +310,8 @@ func NewIntentsClient(ctx context.Context, opts ...option.ClientOption) (*Intent // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *intentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/intents_client_example_test.go b/dialogflow/cx/apiv3/intents_client_example_test.go index a68ae662d6f..935e4b13165 100644 --- a/dialogflow/cx/apiv3/intents_client_example_test.go +++ b/dialogflow/cx/apiv3/intents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewIntentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewIntentsClient() { func ExampleIntentsClient_ListIntents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleIntentsClient_ListIntents() { func ExampleIntentsClient_GetIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleIntentsClient_GetIntent() { func ExampleIntentsClient_CreateIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleIntentsClient_CreateIntent() { func ExampleIntentsClient_UpdateIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleIntentsClient_UpdateIntent() { func ExampleIntentsClient_DeleteIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleIntentsClient_DeleteIntent() { func ExampleIntentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleIntentsClient_GetLocation() { func ExampleIntentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleIntentsClient_ListLocations() { func ExampleIntentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleIntentsClient_CancelOperation() { func ExampleIntentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleIntentsClient_GetOperation() { func ExampleIntentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/pages_client.go b/dialogflow/cx/apiv3/pages_client.go index 35e9b301e50..0f146bfed2a 100644 --- a/dialogflow/cx/apiv3/pages_client.go +++ b/dialogflow/cx/apiv3/pages_client.go @@ -176,7 +176,8 @@ func (c *PagesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PagesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -309,7 +310,8 @@ func NewPagesClient(ctx context.Context, opts ...option.ClientOption) (*PagesCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *pagesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/pages_client_example_test.go b/dialogflow/cx/apiv3/pages_client_example_test.go index 6ebb96ed251..e7095d0414e 100644 --- a/dialogflow/cx/apiv3/pages_client_example_test.go +++ b/dialogflow/cx/apiv3/pages_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewPagesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewPagesClient() { func ExamplePagesClient_ListPages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExamplePagesClient_ListPages() { func ExamplePagesClient_GetPage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExamplePagesClient_GetPage() { func ExamplePagesClient_CreatePage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExamplePagesClient_CreatePage() { func ExamplePagesClient_UpdatePage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExamplePagesClient_UpdatePage() { func ExamplePagesClient_DeletePage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExamplePagesClient_DeletePage() { func ExamplePagesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExamplePagesClient_GetLocation() { func ExamplePagesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExamplePagesClient_ListLocations() { func ExamplePagesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExamplePagesClient_CancelOperation() { func ExamplePagesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExamplePagesClient_GetOperation() { func ExamplePagesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/security_settings_client.go b/dialogflow/cx/apiv3/security_settings_client.go index 5cfbe29bcf6..5bee237c136 100644 --- a/dialogflow/cx/apiv3/security_settings_client.go +++ b/dialogflow/cx/apiv3/security_settings_client.go @@ -176,7 +176,8 @@ func (c *SecuritySettingsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SecuritySettingsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -298,7 +299,8 @@ func NewSecuritySettingsClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *securitySettingsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/security_settings_client_example_test.go b/dialogflow/cx/apiv3/security_settings_client_example_test.go index 85800104760..4731cdc4598 100644 --- a/dialogflow/cx/apiv3/security_settings_client_example_test.go +++ b/dialogflow/cx/apiv3/security_settings_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewSecuritySettingsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewSecuritySettingsClient() { func ExampleSecuritySettingsClient_CreateSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleSecuritySettingsClient_CreateSecuritySettings() { func ExampleSecuritySettingsClient_GetSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleSecuritySettingsClient_GetSecuritySettings() { func ExampleSecuritySettingsClient_UpdateSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -100,6 +120,11 @@ func ExampleSecuritySettingsClient_UpdateSecuritySettings() { func ExampleSecuritySettingsClient_ListSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleSecuritySettingsClient_ListSecuritySettings() { func ExampleSecuritySettingsClient_DeleteSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleSecuritySettingsClient_DeleteSecuritySettings() { func ExampleSecuritySettingsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleSecuritySettingsClient_GetLocation() { func ExampleSecuritySettingsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleSecuritySettingsClient_ListLocations() { func ExampleSecuritySettingsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleSecuritySettingsClient_CancelOperation() { func ExampleSecuritySettingsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleSecuritySettingsClient_GetOperation() { func ExampleSecuritySettingsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/session_entity_types_client.go b/dialogflow/cx/apiv3/session_entity_types_client.go index 6ca160e4b34..96993ccf061 100644 --- a/dialogflow/cx/apiv3/session_entity_types_client.go +++ b/dialogflow/cx/apiv3/session_entity_types_client.go @@ -176,7 +176,8 @@ func (c *SessionEntityTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SessionEntityTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -297,7 +298,8 @@ func NewSessionEntityTypesClient(ctx context.Context, opts ...option.ClientOptio // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sessionEntityTypesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/session_entity_types_client_example_test.go b/dialogflow/cx/apiv3/session_entity_types_client_example_test.go index 40e3f2a5885..0261e381ea9 100644 --- a/dialogflow/cx/apiv3/session_entity_types_client_example_test.go +++ b/dialogflow/cx/apiv3/session_entity_types_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewSessionEntityTypesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewSessionEntityTypesClient() { func ExampleSessionEntityTypesClient_ListSessionEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleSessionEntityTypesClient_ListSessionEntityTypes() { func ExampleSessionEntityTypesClient_GetSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleSessionEntityTypesClient_GetSessionEntityType() { func ExampleSessionEntityTypesClient_CreateSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleSessionEntityTypesClient_CreateSessionEntityType() { func ExampleSessionEntityTypesClient_UpdateSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleSessionEntityTypesClient_UpdateSessionEntityType() { func ExampleSessionEntityTypesClient_DeleteSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleSessionEntityTypesClient_DeleteSessionEntityType() { func ExampleSessionEntityTypesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleSessionEntityTypesClient_GetLocation() { func ExampleSessionEntityTypesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleSessionEntityTypesClient_ListLocations() { func ExampleSessionEntityTypesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleSessionEntityTypesClient_CancelOperation() { func ExampleSessionEntityTypesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleSessionEntityTypesClient_GetOperation() { func ExampleSessionEntityTypesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/sessions_client.go b/dialogflow/cx/apiv3/sessions_client.go index 635ee9373a1..b8da8cdcf64 100644 --- a/dialogflow/cx/apiv3/sessions_client.go +++ b/dialogflow/cx/apiv3/sessions_client.go @@ -155,7 +155,8 @@ func (c *SessionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SessionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -289,7 +290,8 @@ func NewSessionsClient(ctx context.Context, opts ...option.ClientOption) (*Sessi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sessionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/sessions_client_example_test.go b/dialogflow/cx/apiv3/sessions_client_example_test.go index 5b3152f1943..38804cdbf59 100644 --- a/dialogflow/cx/apiv3/sessions_client_example_test.go +++ b/dialogflow/cx/apiv3/sessions_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewSessionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewSessionsClient() { func ExampleSessionsClient_DetectIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleSessionsClient_DetectIntent() { func ExampleSessionsClient_StreamingDetectIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +111,11 @@ func ExampleSessionsClient_StreamingDetectIntent() { func ExampleSessionsClient_MatchIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +136,11 @@ func ExampleSessionsClient_MatchIntent() { func ExampleSessionsClient_FulfillIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleSessionsClient_FulfillIntent() { func ExampleSessionsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleSessionsClient_GetLocation() { func ExampleSessionsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleSessionsClient_ListLocations() { func ExampleSessionsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleSessionsClient_CancelOperation() { func ExampleSessionsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +265,11 @@ func ExampleSessionsClient_GetOperation() { func ExampleSessionsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/test_cases_client.go b/dialogflow/cx/apiv3/test_cases_client.go index 62d1449a69b..34fa4d6dcc4 100644 --- a/dialogflow/cx/apiv3/test_cases_client.go +++ b/dialogflow/cx/apiv3/test_cases_client.go @@ -279,7 +279,8 @@ func (c *TestCasesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TestCasesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -511,7 +512,8 @@ func NewTestCasesClient(ctx context.Context, opts ...option.ClientOption) (*Test // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *testCasesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/test_cases_client_example_test.go b/dialogflow/cx/apiv3/test_cases_client_example_test.go index 4fdc882813e..cc2add7ad6e 100644 --- a/dialogflow/cx/apiv3/test_cases_client_example_test.go +++ b/dialogflow/cx/apiv3/test_cases_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewTestCasesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewTestCasesClient() { func ExampleTestCasesClient_ListTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleTestCasesClient_ListTestCases() { func ExampleTestCasesClient_BatchDeleteTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleTestCasesClient_BatchDeleteTestCases() { func ExampleTestCasesClient_GetTestCase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleTestCasesClient_GetTestCase() { func ExampleTestCasesClient_CreateTestCase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleTestCasesClient_CreateTestCase() { func ExampleTestCasesClient_UpdateTestCase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleTestCasesClient_UpdateTestCase() { func ExampleTestCasesClient_RunTestCase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleTestCasesClient_RunTestCase() { func ExampleTestCasesClient_BatchRunTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +234,11 @@ func ExampleTestCasesClient_BatchRunTestCases() { func ExampleTestCasesClient_CalculateCoverage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -214,6 +259,11 @@ func ExampleTestCasesClient_CalculateCoverage() { func ExampleTestCasesClient_ImportTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -239,6 +289,11 @@ func ExampleTestCasesClient_ImportTestCases() { func ExampleTestCasesClient_ExportTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -264,6 +319,11 @@ func ExampleTestCasesClient_ExportTestCases() { func ExampleTestCasesClient_ListTestCaseResults() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -290,6 +350,11 @@ func ExampleTestCasesClient_ListTestCaseResults() { func ExampleTestCasesClient_GetTestCaseResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -310,6 +375,11 @@ func ExampleTestCasesClient_GetTestCaseResult() { func ExampleTestCasesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -330,6 +400,11 @@ func ExampleTestCasesClient_GetLocation() { func ExampleTestCasesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -356,6 +431,11 @@ func ExampleTestCasesClient_ListLocations() { func ExampleTestCasesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -374,6 +454,11 @@ func ExampleTestCasesClient_CancelOperation() { func ExampleTestCasesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -394,6 +479,11 @@ func ExampleTestCasesClient_GetOperation() { func ExampleTestCasesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/transition_route_groups_client.go b/dialogflow/cx/apiv3/transition_route_groups_client.go index 97cf2c57217..5d0b26584da 100644 --- a/dialogflow/cx/apiv3/transition_route_groups_client.go +++ b/dialogflow/cx/apiv3/transition_route_groups_client.go @@ -176,7 +176,8 @@ func (c *TransitionRouteGroupsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TransitionRouteGroupsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -309,7 +310,8 @@ func NewTransitionRouteGroupsClient(ctx context.Context, opts ...option.ClientOp // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *transitionRouteGroupsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/transition_route_groups_client_example_test.go b/dialogflow/cx/apiv3/transition_route_groups_client_example_test.go index aad214dd899..0de7cc3efe4 100644 --- a/dialogflow/cx/apiv3/transition_route_groups_client_example_test.go +++ b/dialogflow/cx/apiv3/transition_route_groups_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewTransitionRouteGroupsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewTransitionRouteGroupsClient() { func ExampleTransitionRouteGroupsClient_ListTransitionRouteGroups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleTransitionRouteGroupsClient_ListTransitionRouteGroups() { func ExampleTransitionRouteGroupsClient_GetTransitionRouteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleTransitionRouteGroupsClient_GetTransitionRouteGroup() { func ExampleTransitionRouteGroupsClient_CreateTransitionRouteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleTransitionRouteGroupsClient_CreateTransitionRouteGroup() { func ExampleTransitionRouteGroupsClient_UpdateTransitionRouteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleTransitionRouteGroupsClient_UpdateTransitionRouteGroup() { func ExampleTransitionRouteGroupsClient_DeleteTransitionRouteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleTransitionRouteGroupsClient_DeleteTransitionRouteGroup() { func ExampleTransitionRouteGroupsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleTransitionRouteGroupsClient_GetLocation() { func ExampleTransitionRouteGroupsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleTransitionRouteGroupsClient_ListLocations() { func ExampleTransitionRouteGroupsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleTransitionRouteGroupsClient_CancelOperation() { func ExampleTransitionRouteGroupsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleTransitionRouteGroupsClient_GetOperation() { func ExampleTransitionRouteGroupsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/versions_client.go b/dialogflow/cx/apiv3/versions_client.go index ef99cead08b..3d34e983594 100644 --- a/dialogflow/cx/apiv3/versions_client.go +++ b/dialogflow/cx/apiv3/versions_client.go @@ -212,7 +212,8 @@ func (c *VersionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VersionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -389,7 +390,8 @@ func NewVersionsClient(ctx context.Context, opts ...option.ClientOption) (*Versi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *versionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/versions_client_example_test.go b/dialogflow/cx/apiv3/versions_client_example_test.go index e92f2a81862..421c7ec437b 100644 --- a/dialogflow/cx/apiv3/versions_client_example_test.go +++ b/dialogflow/cx/apiv3/versions_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewVersionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewVersionsClient() { func ExampleVersionsClient_ListVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleVersionsClient_ListVersions() { func ExampleVersionsClient_GetVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleVersionsClient_GetVersion() { func ExampleVersionsClient_CreateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleVersionsClient_CreateVersion() { func ExampleVersionsClient_UpdateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -131,6 +156,11 @@ func ExampleVersionsClient_UpdateVersion() { func ExampleVersionsClient_DeleteVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -149,6 +179,11 @@ func ExampleVersionsClient_DeleteVersion() { func ExampleVersionsClient_LoadVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleVersionsClient_LoadVersion() { func ExampleVersionsClient_CompareVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleVersionsClient_CompareVersions() { func ExampleVersionsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleVersionsClient_GetLocation() { func ExampleVersionsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleVersionsClient_ListLocations() { func ExampleVersionsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +311,11 @@ func ExampleVersionsClient_CancelOperation() { func ExampleVersionsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +336,11 @@ func ExampleVersionsClient_GetOperation() { func ExampleVersionsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3/webhooks_client.go b/dialogflow/cx/apiv3/webhooks_client.go index 5197e601490..b7bfd75e5fb 100644 --- a/dialogflow/cx/apiv3/webhooks_client.go +++ b/dialogflow/cx/apiv3/webhooks_client.go @@ -176,7 +176,8 @@ func (c *WebhooksClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *WebhooksClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -297,7 +298,8 @@ func NewWebhooksClient(ctx context.Context, opts ...option.ClientOption) (*Webho // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *webhooksGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dialogflow/cx/apiv3/webhooks_client_example_test.go b/dialogflow/cx/apiv3/webhooks_client_example_test.go index 22d5d46f285..501233e158a 100644 --- a/dialogflow/cx/apiv3/webhooks_client_example_test.go +++ b/dialogflow/cx/apiv3/webhooks_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewWebhooksClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewWebhooksClient() { func ExampleWebhooksClient_ListWebhooks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleWebhooksClient_ListWebhooks() { func ExampleWebhooksClient_GetWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleWebhooksClient_GetWebhook() { func ExampleWebhooksClient_CreateWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleWebhooksClient_CreateWebhook() { func ExampleWebhooksClient_UpdateWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleWebhooksClient_UpdateWebhook() { func ExampleWebhooksClient_DeleteWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleWebhooksClient_DeleteWebhook() { func ExampleWebhooksClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleWebhooksClient_GetLocation() { func ExampleWebhooksClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleWebhooksClient_ListLocations() { func ExampleWebhooksClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleWebhooksClient_CancelOperation() { func ExampleWebhooksClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleWebhooksClient_GetOperation() { func ExampleWebhooksClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/agents_client.go b/dialogflow/cx/apiv3beta1/agents_client.go index e2646f64455..1f20e4cbe5d 100644 --- a/dialogflow/cx/apiv3beta1/agents_client.go +++ b/dialogflow/cx/apiv3beta1/agents_client.go @@ -344,7 +344,8 @@ func (c *AgentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AgentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -550,7 +551,8 @@ func NewAgentsClient(ctx context.Context, opts ...option.ClientOption) (*AgentsC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *agentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -649,7 +651,7 @@ func (c *agentsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *agentsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1235,8 +1237,12 @@ func (c *agentsRESTClient) UpdateAgent(ctx context.Context, req *cxpb.UpdateAgen baseUrl.Path += fmt.Sprintf("/v3beta1/%v", req.GetAgent().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/agents_client_example_test.go b/dialogflow/cx/apiv3beta1/agents_client_example_test.go index aa910a6f3c6..23b39fcd377 100644 --- a/dialogflow/cx/apiv3beta1/agents_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/agents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewAgentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewAgentsClient() { func ExampleNewAgentsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewAgentsRESTClient() { func ExampleAgentsClient_ListAgents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleAgentsClient_ListAgents() { func ExampleAgentsClient_GetAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleAgentsClient_GetAgent() { func ExampleAgentsClient_CreateAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleAgentsClient_CreateAgent() { func ExampleAgentsClient_UpdateAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleAgentsClient_UpdateAgent() { func ExampleAgentsClient_DeleteAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleAgentsClient_DeleteAgent() { func ExampleAgentsClient_ExportAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +221,11 @@ func ExampleAgentsClient_ExportAgent() { func ExampleAgentsClient_RestoreAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -204,6 +249,11 @@ func ExampleAgentsClient_RestoreAgent() { func ExampleAgentsClient_ValidateAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -224,6 +274,11 @@ func ExampleAgentsClient_ValidateAgent() { func ExampleAgentsClient_GetAgentValidationResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -244,6 +299,11 @@ func ExampleAgentsClient_GetAgentValidationResult() { func ExampleAgentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -264,6 +324,11 @@ func ExampleAgentsClient_GetLocation() { func ExampleAgentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -290,6 +355,11 @@ func ExampleAgentsClient_ListLocations() { func ExampleAgentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -308,6 +378,11 @@ func ExampleAgentsClient_CancelOperation() { func ExampleAgentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. @@ -328,6 +403,11 @@ func ExampleAgentsClient_GetOperation() { func ExampleAgentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/changelogs_client.go b/dialogflow/cx/apiv3beta1/changelogs_client.go index 4aff825e6af..dd5cfbcd7d3 100644 --- a/dialogflow/cx/apiv3beta1/changelogs_client.go +++ b/dialogflow/cx/apiv3beta1/changelogs_client.go @@ -172,7 +172,8 @@ func (c *ChangelogsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ChangelogsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -278,7 +279,8 @@ func NewChangelogsClient(ctx context.Context, opts ...option.ClientOption) (*Cha // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *changelogsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -362,7 +364,7 @@ func (c *changelogsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *changelogsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/dialogflow/cx/apiv3beta1/changelogs_client_example_test.go b/dialogflow/cx/apiv3beta1/changelogs_client_example_test.go index e04eb479090..c5100ec1e20 100644 --- a/dialogflow/cx/apiv3beta1/changelogs_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/changelogs_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewChangelogsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewChangelogsClient() { func ExampleNewChangelogsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewChangelogsRESTClient() { func ExampleChangelogsClient_ListChangelogs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleChangelogsClient_ListChangelogs() { func ExampleChangelogsClient_GetChangelog() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleChangelogsClient_GetChangelog() { func ExampleChangelogsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleChangelogsClient_GetLocation() { func ExampleChangelogsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleChangelogsClient_ListLocations() { func ExampleChangelogsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleChangelogsClient_CancelOperation() { func ExampleChangelogsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleChangelogsClient_GetOperation() { func ExampleChangelogsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/deployments_client.go b/dialogflow/cx/apiv3beta1/deployments_client.go index 3459ce49ea7..eeeeff287bb 100644 --- a/dialogflow/cx/apiv3beta1/deployments_client.go +++ b/dialogflow/cx/apiv3beta1/deployments_client.go @@ -172,7 +172,8 @@ func (c *DeploymentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DeploymentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -278,7 +279,8 @@ func NewDeploymentsClient(ctx context.Context, opts ...option.ClientOption) (*De // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *deploymentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -362,7 +364,7 @@ func (c *deploymentsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *deploymentsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/dialogflow/cx/apiv3beta1/deployments_client_example_test.go b/dialogflow/cx/apiv3beta1/deployments_client_example_test.go index 4e0eac8580d..93a78d144d5 100644 --- a/dialogflow/cx/apiv3beta1/deployments_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/deployments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewDeploymentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewDeploymentsClient() { func ExampleNewDeploymentsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewDeploymentsRESTClient() { func ExampleDeploymentsClient_ListDeployments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleDeploymentsClient_ListDeployments() { func ExampleDeploymentsClient_GetDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleDeploymentsClient_GetDeployment() { func ExampleDeploymentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleDeploymentsClient_GetLocation() { func ExampleDeploymentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleDeploymentsClient_ListLocations() { func ExampleDeploymentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleDeploymentsClient_CancelOperation() { func ExampleDeploymentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleDeploymentsClient_GetOperation() { func ExampleDeploymentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/doc.go b/dialogflow/cx/apiv3beta1/doc.go index a70524f83e2..d3aa05d7651 100644 --- a/dialogflow/cx/apiv3beta1/doc.go +++ b/dialogflow/cx/apiv3beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cx.NewPagesClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := cx.NewPagesClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/entity_types_client.go b/dialogflow/cx/apiv3beta1/entity_types_client.go index a549286026b..8ef30f85029 100644 --- a/dialogflow/cx/apiv3beta1/entity_types_client.go +++ b/dialogflow/cx/apiv3beta1/entity_types_client.go @@ -242,7 +242,8 @@ func (c *EntityTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EntityTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -371,7 +372,8 @@ func NewEntityTypesClient(ctx context.Context, opts ...option.ClientOption) (*En // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *entityTypesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -455,7 +457,7 @@ func (c *entityTypesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *entityTypesRESTClient) Connection() *grpc.ClientConn { return nil } @@ -965,8 +967,12 @@ func (c *entityTypesRESTClient) UpdateEntityType(ctx context.Context, req *cxpb. if req.GetLanguageCode() != "" { params.Add("languageCode", fmt.Sprintf("%v", req.GetLanguageCode())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/entity_types_client_example_test.go b/dialogflow/cx/apiv3beta1/entity_types_client_example_test.go index 1bb084ccd98..d19e17a1efb 100644 --- a/dialogflow/cx/apiv3beta1/entity_types_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/entity_types_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewEntityTypesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewEntityTypesClient() { func ExampleNewEntityTypesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewEntityTypesRESTClient() { func ExampleEntityTypesClient_ListEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleEntityTypesClient_ListEntityTypes() { func ExampleEntityTypesClient_GetEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleEntityTypesClient_GetEntityType() { func ExampleEntityTypesClient_CreateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleEntityTypesClient_CreateEntityType() { func ExampleEntityTypesClient_UpdateEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleEntityTypesClient_UpdateEntityType() { func ExampleEntityTypesClient_DeleteEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleEntityTypesClient_DeleteEntityType() { func ExampleEntityTypesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleEntityTypesClient_GetLocation() { func ExampleEntityTypesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleEntityTypesClient_ListLocations() { func ExampleEntityTypesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExampleEntityTypesClient_CancelOperation() { func ExampleEntityTypesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExampleEntityTypesClient_GetOperation() { func ExampleEntityTypesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/environments_client.go b/dialogflow/cx/apiv3beta1/environments_client.go index f631733305f..dbf44263731 100644 --- a/dialogflow/cx/apiv3beta1/environments_client.go +++ b/dialogflow/cx/apiv3beta1/environments_client.go @@ -346,7 +346,8 @@ func (c *EnvironmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EnvironmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -561,7 +562,8 @@ func NewEnvironmentsClient(ctx context.Context, opts ...option.ClientOption) (*E // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *environmentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -660,7 +662,7 @@ func (c *environmentsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *environmentsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1310,8 +1312,12 @@ func (c *environmentsRESTClient) UpdateEnvironment(ctx context.Context, req *cxp baseUrl.Path += fmt.Sprintf("/v3beta1/%v", req.GetEnvironment().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/environments_client_example_test.go b/dialogflow/cx/apiv3beta1/environments_client_example_test.go index 6a8af72e7b9..bb75bf42f02 100644 --- a/dialogflow/cx/apiv3beta1/environments_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/environments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewEnvironmentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewEnvironmentsClient() { func ExampleNewEnvironmentsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewEnvironmentsRESTClient() { func ExampleEnvironmentsClient_ListEnvironments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleEnvironmentsClient_ListEnvironments() { func ExampleEnvironmentsClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleEnvironmentsClient_GetEnvironment() { func ExampleEnvironmentsClient_CreateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExampleEnvironmentsClient_CreateEnvironment() { func ExampleEnvironmentsClient_UpdateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +178,11 @@ func ExampleEnvironmentsClient_UpdateEnvironment() { func ExampleEnvironmentsClient_DeleteEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -166,6 +201,11 @@ func ExampleEnvironmentsClient_DeleteEnvironment() { func ExampleEnvironmentsClient_LookupEnvironmentHistory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleEnvironmentsClient_LookupEnvironmentHistory() { func ExampleEnvironmentsClient_RunContinuousTest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -217,6 +262,11 @@ func ExampleEnvironmentsClient_RunContinuousTest() { func ExampleEnvironmentsClient_ListContinuousTestResults() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleEnvironmentsClient_ListContinuousTestResults() { func ExampleEnvironmentsClient_DeployFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleEnvironmentsClient_DeployFlow() { func ExampleEnvironmentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -288,6 +348,11 @@ func ExampleEnvironmentsClient_GetLocation() { func ExampleEnvironmentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -314,6 +379,11 @@ func ExampleEnvironmentsClient_ListLocations() { func ExampleEnvironmentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -332,6 +402,11 @@ func ExampleEnvironmentsClient_CancelOperation() { func ExampleEnvironmentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -352,6 +427,11 @@ func ExampleEnvironmentsClient_GetOperation() { func ExampleEnvironmentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/experiments_client.go b/dialogflow/cx/apiv3beta1/experiments_client.go index c2f50ff2ede..ff9bbc519b2 100644 --- a/dialogflow/cx/apiv3beta1/experiments_client.go +++ b/dialogflow/cx/apiv3beta1/experiments_client.go @@ -288,7 +288,8 @@ func (c *ExperimentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ExperimentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -421,7 +422,8 @@ func NewExperimentsClient(ctx context.Context, opts ...option.ClientOption) (*Ex // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *experimentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -505,7 +507,7 @@ func (c *experimentsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *experimentsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1035,8 +1037,12 @@ func (c *experimentsRESTClient) UpdateExperiment(ctx context.Context, req *cxpb. baseUrl.Path += fmt.Sprintf("/v3beta1/%v", req.GetExperiment().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/experiments_client_example_test.go b/dialogflow/cx/apiv3beta1/experiments_client_example_test.go index bbcd0f9d208..0f96fe0a598 100644 --- a/dialogflow/cx/apiv3beta1/experiments_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/experiments_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewExperimentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewExperimentsClient() { func ExampleNewExperimentsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewExperimentsRESTClient() { func ExampleExperimentsClient_ListExperiments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleExperimentsClient_ListExperiments() { func ExampleExperimentsClient_GetExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleExperimentsClient_GetExperiment() { func ExampleExperimentsClient_CreateExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleExperimentsClient_CreateExperiment() { func ExampleExperimentsClient_UpdateExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleExperimentsClient_UpdateExperiment() { func ExampleExperimentsClient_DeleteExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleExperimentsClient_DeleteExperiment() { func ExampleExperimentsClient_StartExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleExperimentsClient_StartExperiment() { func ExampleExperimentsClient_StopExperiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +241,11 @@ func ExampleExperimentsClient_StopExperiment() { func ExampleExperimentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +266,11 @@ func ExampleExperimentsClient_GetLocation() { func ExampleExperimentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +297,11 @@ func ExampleExperimentsClient_ListLocations() { func ExampleExperimentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -260,6 +320,11 @@ func ExampleExperimentsClient_CancelOperation() { func ExampleExperimentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +345,11 @@ func ExampleExperimentsClient_GetOperation() { func ExampleExperimentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/flows_client.go b/dialogflow/cx/apiv3beta1/flows_client.go index 83340f05b15..0bf9fd889ae 100644 --- a/dialogflow/cx/apiv3beta1/flows_client.go +++ b/dialogflow/cx/apiv3beta1/flows_client.go @@ -368,7 +368,8 @@ func (c *FlowsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FlowsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -599,7 +600,8 @@ func NewFlowsClient(ctx context.Context, opts ...option.ClientOption) (*FlowsCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *flowsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -698,7 +700,7 @@ func (c *flowsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *flowsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1370,8 +1372,12 @@ func (c *flowsRESTClient) UpdateFlow(ctx context.Context, req *cxpb.UpdateFlowRe if req.GetLanguageCode() != "" { params.Add("languageCode", fmt.Sprintf("%v", req.GetLanguageCode())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/flows_client_example_test.go b/dialogflow/cx/apiv3beta1/flows_client_example_test.go index 4bf15e702f6..7402afd1dae 100644 --- a/dialogflow/cx/apiv3beta1/flows_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/flows_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewFlowsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewFlowsClient() { func ExampleNewFlowsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewFlowsRESTClient() { func ExampleFlowsClient_CreateFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -72,6 +87,11 @@ func ExampleFlowsClient_CreateFlow() { func ExampleFlowsClient_DeleteFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +110,11 @@ func ExampleFlowsClient_DeleteFlow() { func ExampleFlowsClient_ListFlows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleFlowsClient_ListFlows() { func ExampleFlowsClient_GetFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleFlowsClient_GetFlow() { func ExampleFlowsClient_UpdateFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleFlowsClient_UpdateFlow() { func ExampleFlowsClient_TrainFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +219,11 @@ func ExampleFlowsClient_TrainFlow() { func ExampleFlowsClient_ValidateFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +244,11 @@ func ExampleFlowsClient_ValidateFlow() { func ExampleFlowsClient_GetFlowValidationResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +269,11 @@ func ExampleFlowsClient_GetFlowValidationResult() { func ExampleFlowsClient_ImportFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -244,6 +299,11 @@ func ExampleFlowsClient_ImportFlow() { func ExampleFlowsClient_ExportFlow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +329,11 @@ func ExampleFlowsClient_ExportFlow() { func ExampleFlowsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +354,11 @@ func ExampleFlowsClient_GetLocation() { func ExampleFlowsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -315,6 +385,11 @@ func ExampleFlowsClient_ListLocations() { func ExampleFlowsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -333,6 +408,11 @@ func ExampleFlowsClient_CancelOperation() { func ExampleFlowsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. @@ -353,6 +433,11 @@ func ExampleFlowsClient_GetOperation() { func ExampleFlowsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/intents_client.go b/dialogflow/cx/apiv3beta1/intents_client.go index 40c367c55f5..8455ec4eabf 100644 --- a/dialogflow/cx/apiv3beta1/intents_client.go +++ b/dialogflow/cx/apiv3beta1/intents_client.go @@ -242,7 +242,8 @@ func (c *IntentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IntentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -375,7 +376,8 @@ func NewIntentsClient(ctx context.Context, opts ...option.ClientOption) (*Intent // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *intentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -459,7 +461,7 @@ func (c *intentsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *intentsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -976,8 +978,12 @@ func (c *intentsRESTClient) UpdateIntent(ctx context.Context, req *cxpb.UpdateIn if req.GetLanguageCode() != "" { params.Add("languageCode", fmt.Sprintf("%v", req.GetLanguageCode())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/intents_client_example_test.go b/dialogflow/cx/apiv3beta1/intents_client_example_test.go index 28da566900d..48fca061814 100644 --- a/dialogflow/cx/apiv3beta1/intents_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/intents_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewIntentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewIntentsClient() { func ExampleNewIntentsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewIntentsRESTClient() { func ExampleIntentsClient_ListIntents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleIntentsClient_ListIntents() { func ExampleIntentsClient_GetIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleIntentsClient_GetIntent() { func ExampleIntentsClient_CreateIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleIntentsClient_CreateIntent() { func ExampleIntentsClient_UpdateIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleIntentsClient_UpdateIntent() { func ExampleIntentsClient_DeleteIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleIntentsClient_DeleteIntent() { func ExampleIntentsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleIntentsClient_GetLocation() { func ExampleIntentsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleIntentsClient_ListLocations() { func ExampleIntentsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExampleIntentsClient_CancelOperation() { func ExampleIntentsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExampleIntentsClient_GetOperation() { func ExampleIntentsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/pages_client.go b/dialogflow/cx/apiv3beta1/pages_client.go index 904ab14b48c..c9b46cc7135 100644 --- a/dialogflow/cx/apiv3beta1/pages_client.go +++ b/dialogflow/cx/apiv3beta1/pages_client.go @@ -242,7 +242,8 @@ func (c *PagesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PagesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -363,7 +364,8 @@ func NewPagesClient(ctx context.Context, opts ...option.ClientOption) (*PagesCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *pagesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -447,7 +449,7 @@ func (c *pagesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *pagesRESTClient) Connection() *grpc.ClientConn { return nil } @@ -953,8 +955,12 @@ func (c *pagesRESTClient) UpdatePage(ctx context.Context, req *cxpb.UpdatePageRe if req.GetLanguageCode() != "" { params.Add("languageCode", fmt.Sprintf("%v", req.GetLanguageCode())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/pages_client_example_test.go b/dialogflow/cx/apiv3beta1/pages_client_example_test.go index 4fef9dc1e5f..61e39ed4510 100644 --- a/dialogflow/cx/apiv3beta1/pages_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/pages_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewPagesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewPagesClient() { func ExampleNewPagesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewPagesRESTClient() { func ExamplePagesClient_ListPages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExamplePagesClient_ListPages() { func ExamplePagesClient_GetPage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExamplePagesClient_GetPage() { func ExamplePagesClient_CreatePage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExamplePagesClient_CreatePage() { func ExamplePagesClient_UpdatePage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExamplePagesClient_UpdatePage() { func ExamplePagesClient_DeletePage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExamplePagesClient_DeletePage() { func ExamplePagesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExamplePagesClient_GetLocation() { func ExamplePagesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExamplePagesClient_ListLocations() { func ExamplePagesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExamplePagesClient_CancelOperation() { func ExamplePagesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExamplePagesClient_GetOperation() { func ExamplePagesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/security_settings_client.go b/dialogflow/cx/apiv3beta1/security_settings_client.go index 2e836753eea..e564a6378e3 100644 --- a/dialogflow/cx/apiv3beta1/security_settings_client.go +++ b/dialogflow/cx/apiv3beta1/security_settings_client.go @@ -242,7 +242,8 @@ func (c *SecuritySettingsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SecuritySettingsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -364,7 +365,8 @@ func NewSecuritySettingsClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *securitySettingsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -448,7 +450,7 @@ func (c *securitySettingsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *securitySettingsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -848,8 +850,12 @@ func (c *securitySettingsRESTClient) UpdateSecuritySettings(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v3beta1/%v", req.GetSecuritySettings().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/security_settings_client_example_test.go b/dialogflow/cx/apiv3beta1/security_settings_client_example_test.go index b20cbdcf7fc..baa493e4958 100644 --- a/dialogflow/cx/apiv3beta1/security_settings_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/security_settings_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewSecuritySettingsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewSecuritySettingsClient() { func ExampleNewSecuritySettingsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewSecuritySettingsRESTClient() { func ExampleSecuritySettingsClient_CreateSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -72,6 +87,11 @@ func ExampleSecuritySettingsClient_CreateSecuritySettings() { func ExampleSecuritySettingsClient_GetSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -92,6 +112,11 @@ func ExampleSecuritySettingsClient_GetSecuritySettings() { func ExampleSecuritySettingsClient_UpdateSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +137,11 @@ func ExampleSecuritySettingsClient_UpdateSecuritySettings() { func ExampleSecuritySettingsClient_ListSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleSecuritySettingsClient_ListSecuritySettings() { func ExampleSecuritySettingsClient_DeleteSecuritySettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleSecuritySettingsClient_DeleteSecuritySettings() { func ExampleSecuritySettingsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleSecuritySettingsClient_GetLocation() { func ExampleSecuritySettingsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleSecuritySettingsClient_ListLocations() { func ExampleSecuritySettingsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExampleSecuritySettingsClient_CancelOperation() { func ExampleSecuritySettingsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExampleSecuritySettingsClient_GetOperation() { func ExampleSecuritySettingsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/session_entity_types_client.go b/dialogflow/cx/apiv3beta1/session_entity_types_client.go index a872163ecbc..c89b2e5f383 100644 --- a/dialogflow/cx/apiv3beta1/session_entity_types_client.go +++ b/dialogflow/cx/apiv3beta1/session_entity_types_client.go @@ -242,7 +242,8 @@ func (c *SessionEntityTypesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SessionEntityTypesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -363,7 +364,8 @@ func NewSessionEntityTypesClient(ctx context.Context, opts ...option.ClientOptio // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sessionEntityTypesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -447,7 +449,7 @@ func (c *sessionEntityTypesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *sessionEntityTypesRESTClient) Connection() *grpc.ClientConn { return nil } @@ -933,8 +935,12 @@ func (c *sessionEntityTypesRESTClient) UpdateSessionEntityType(ctx context.Conte baseUrl.Path += fmt.Sprintf("/v3beta1/%v", req.GetSessionEntityType().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/session_entity_types_client_example_test.go b/dialogflow/cx/apiv3beta1/session_entity_types_client_example_test.go index 939829447d1..59c4bf3900b 100644 --- a/dialogflow/cx/apiv3beta1/session_entity_types_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/session_entity_types_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewSessionEntityTypesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewSessionEntityTypesClient() { func ExampleNewSessionEntityTypesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewSessionEntityTypesRESTClient() { func ExampleSessionEntityTypesClient_ListSessionEntityTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleSessionEntityTypesClient_ListSessionEntityTypes() { func ExampleSessionEntityTypesClient_GetSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleSessionEntityTypesClient_GetSessionEntityType() { func ExampleSessionEntityTypesClient_CreateSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleSessionEntityTypesClient_CreateSessionEntityType() { func ExampleSessionEntityTypesClient_UpdateSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleSessionEntityTypesClient_UpdateSessionEntityType() { func ExampleSessionEntityTypesClient_DeleteSessionEntityType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleSessionEntityTypesClient_DeleteSessionEntityType() { func ExampleSessionEntityTypesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleSessionEntityTypesClient_GetLocation() { func ExampleSessionEntityTypesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleSessionEntityTypesClient_ListLocations() { func ExampleSessionEntityTypesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExampleSessionEntityTypesClient_CancelOperation() { func ExampleSessionEntityTypesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExampleSessionEntityTypesClient_GetOperation() { func ExampleSessionEntityTypesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/sessions_client.go b/dialogflow/cx/apiv3beta1/sessions_client.go index 5a56e87d46f..0184f2f8de2 100644 --- a/dialogflow/cx/apiv3beta1/sessions_client.go +++ b/dialogflow/cx/apiv3beta1/sessions_client.go @@ -202,7 +202,8 @@ func (c *SessionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SessionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -336,7 +337,8 @@ func NewSessionsClient(ctx context.Context, opts ...option.ClientOption) (*Sessi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *sessionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -422,7 +424,7 @@ func (c *sessionsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *sessionsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/dialogflow/cx/apiv3beta1/sessions_client_example_test.go b/dialogflow/cx/apiv3beta1/sessions_client_example_test.go index ee3c9600747..b7d23b29f66 100644 --- a/dialogflow/cx/apiv3beta1/sessions_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/sessions_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewSessionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewSessionsClient() { func ExampleNewSessionsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -53,6 +63,11 @@ func ExampleNewSessionsRESTClient() { func ExampleSessionsClient_DetectIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -73,6 +88,11 @@ func ExampleSessionsClient_DetectIntent() { func ExampleSessionsClient_StreamingDetectIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -108,6 +128,11 @@ func ExampleSessionsClient_StreamingDetectIntent() { func ExampleSessionsClient_MatchIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -128,6 +153,11 @@ func ExampleSessionsClient_MatchIntent() { func ExampleSessionsClient_FulfillIntent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +178,11 @@ func ExampleSessionsClient_FulfillIntent() { func ExampleSessionsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleSessionsClient_GetLocation() { func ExampleSessionsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +234,11 @@ func ExampleSessionsClient_ListLocations() { func ExampleSessionsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleSessionsClient_CancelOperation() { func ExampleSessionsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +282,11 @@ func ExampleSessionsClient_GetOperation() { func ExampleSessionsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/test_cases_client.go b/dialogflow/cx/apiv3beta1/test_cases_client.go index b69799bcc7f..b40336fe7da 100644 --- a/dialogflow/cx/apiv3beta1/test_cases_client.go +++ b/dialogflow/cx/apiv3beta1/test_cases_client.go @@ -415,7 +415,8 @@ func (c *TestCasesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TestCasesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -647,7 +648,8 @@ func NewTestCasesClient(ctx context.Context, opts ...option.ClientOption) (*Test // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *testCasesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -747,7 +749,7 @@ func (c *testCasesRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *testCasesRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1462,8 +1464,12 @@ func (c *testCasesRESTClient) UpdateTestCase(ctx context.Context, req *cxpb.Upda baseUrl.Path += fmt.Sprintf("/v3beta1/%v", req.GetTestCase().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/test_cases_client_example_test.go b/dialogflow/cx/apiv3beta1/test_cases_client_example_test.go index 3a566041074..7a8368a448e 100644 --- a/dialogflow/cx/apiv3beta1/test_cases_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/test_cases_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewTestCasesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewTestCasesClient() { func ExampleNewTestCasesRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewTestCasesRESTClient() { func ExampleTestCasesClient_ListTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleTestCasesClient_ListTestCases() { func ExampleTestCasesClient_BatchDeleteTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleTestCasesClient_BatchDeleteTestCases() { func ExampleTestCasesClient_GetTestCase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleTestCasesClient_GetTestCase() { func ExampleTestCasesClient_CreateTestCase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleTestCasesClient_CreateTestCase() { func ExampleTestCasesClient_UpdateTestCase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleTestCasesClient_UpdateTestCase() { func ExampleTestCasesClient_RunTestCase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +221,11 @@ func ExampleTestCasesClient_RunTestCase() { func ExampleTestCasesClient_BatchRunTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +251,11 @@ func ExampleTestCasesClient_BatchRunTestCases() { func ExampleTestCasesClient_CalculateCoverage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleTestCasesClient_CalculateCoverage() { func ExampleTestCasesClient_ImportTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +306,11 @@ func ExampleTestCasesClient_ImportTestCases() { func ExampleTestCasesClient_ExportTestCases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +336,11 @@ func ExampleTestCasesClient_ExportTestCases() { func ExampleTestCasesClient_ListTestCaseResults() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleTestCasesClient_ListTestCaseResults() { func ExampleTestCasesClient_GetTestCaseResult() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +392,11 @@ func ExampleTestCasesClient_GetTestCaseResult() { func ExampleTestCasesClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -342,6 +417,11 @@ func ExampleTestCasesClient_GetLocation() { func ExampleTestCasesClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -368,6 +448,11 @@ func ExampleTestCasesClient_ListLocations() { func ExampleTestCasesClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -386,6 +471,11 @@ func ExampleTestCasesClient_CancelOperation() { func ExampleTestCasesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. @@ -406,6 +496,11 @@ func ExampleTestCasesClient_GetOperation() { func ExampleTestCasesClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/transition_route_groups_client.go b/dialogflow/cx/apiv3beta1/transition_route_groups_client.go index baa7dedf6bc..2c299235aa0 100644 --- a/dialogflow/cx/apiv3beta1/transition_route_groups_client.go +++ b/dialogflow/cx/apiv3beta1/transition_route_groups_client.go @@ -242,7 +242,8 @@ func (c *TransitionRouteGroupsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TransitionRouteGroupsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -375,7 +376,8 @@ func NewTransitionRouteGroupsClient(ctx context.Context, opts ...option.ClientOp // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *transitionRouteGroupsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -459,7 +461,7 @@ func (c *transitionRouteGroupsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *transitionRouteGroupsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -973,8 +975,12 @@ func (c *transitionRouteGroupsRESTClient) UpdateTransitionRouteGroup(ctx context if req.GetLanguageCode() != "" { params.Add("languageCode", fmt.Sprintf("%v", req.GetLanguageCode())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/transition_route_groups_client_example_test.go b/dialogflow/cx/apiv3beta1/transition_route_groups_client_example_test.go index bb1b6ed5542..5cbc764c466 100644 --- a/dialogflow/cx/apiv3beta1/transition_route_groups_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/transition_route_groups_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewTransitionRouteGroupsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewTransitionRouteGroupsClient() { func ExampleNewTransitionRouteGroupsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewTransitionRouteGroupsRESTClient() { func ExampleTransitionRouteGroupsClient_ListTransitionRouteGroups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleTransitionRouteGroupsClient_ListTransitionRouteGroups() { func ExampleTransitionRouteGroupsClient_GetTransitionRouteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleTransitionRouteGroupsClient_GetTransitionRouteGroup() { func ExampleTransitionRouteGroupsClient_CreateTransitionRouteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleTransitionRouteGroupsClient_CreateTransitionRouteGroup() { func ExampleTransitionRouteGroupsClient_UpdateTransitionRouteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleTransitionRouteGroupsClient_UpdateTransitionRouteGroup() { func ExampleTransitionRouteGroupsClient_DeleteTransitionRouteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleTransitionRouteGroupsClient_DeleteTransitionRouteGroup() { func ExampleTransitionRouteGroupsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleTransitionRouteGroupsClient_GetLocation() { func ExampleTransitionRouteGroupsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleTransitionRouteGroupsClient_ListLocations() { func ExampleTransitionRouteGroupsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExampleTransitionRouteGroupsClient_CancelOperation() { func ExampleTransitionRouteGroupsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExampleTransitionRouteGroupsClient_GetOperation() { func ExampleTransitionRouteGroupsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/versions_client.go b/dialogflow/cx/apiv3beta1/versions_client.go index ef2097d7c20..a7ba64b0992 100644 --- a/dialogflow/cx/apiv3beta1/versions_client.go +++ b/dialogflow/cx/apiv3beta1/versions_client.go @@ -298,7 +298,8 @@ func (c *VersionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VersionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -475,7 +476,8 @@ func NewVersionsClient(ctx context.Context, opts ...option.ClientOption) (*Versi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *versionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -574,7 +576,7 @@ func (c *versionsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *versionsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1120,8 +1122,12 @@ func (c *versionsRESTClient) UpdateVersion(ctx context.Context, req *cxpb.Update baseUrl.Path += fmt.Sprintf("/v3beta1/%v", req.GetVersion().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/versions_client_example_test.go b/dialogflow/cx/apiv3beta1/versions_client_example_test.go index 22f1d3fb5de..8c563d7e61d 100644 --- a/dialogflow/cx/apiv3beta1/versions_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/versions_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewVersionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewVersionsClient() { func ExampleNewVersionsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewVersionsRESTClient() { func ExampleVersionsClient_ListVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleVersionsClient_ListVersions() { func ExampleVersionsClient_GetVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleVersionsClient_GetVersion() { func ExampleVersionsClient_CreateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExampleVersionsClient_CreateVersion() { func ExampleVersionsClient_UpdateVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleVersionsClient_UpdateVersion() { func ExampleVersionsClient_DeleteVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -161,6 +196,11 @@ func ExampleVersionsClient_DeleteVersion() { func ExampleVersionsClient_LoadVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +224,11 @@ func ExampleVersionsClient_LoadVersion() { func ExampleVersionsClient_CompareVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -204,6 +249,11 @@ func ExampleVersionsClient_CompareVersions() { func ExampleVersionsClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -224,6 +274,11 @@ func ExampleVersionsClient_GetLocation() { func ExampleVersionsClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -250,6 +305,11 @@ func ExampleVersionsClient_ListLocations() { func ExampleVersionsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +328,11 @@ func ExampleVersionsClient_CancelOperation() { func ExampleVersionsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -288,6 +353,11 @@ func ExampleVersionsClient_GetOperation() { func ExampleVersionsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/cx/apiv3beta1/webhooks_client.go b/dialogflow/cx/apiv3beta1/webhooks_client.go index ee735357c66..a9cdcb31486 100644 --- a/dialogflow/cx/apiv3beta1/webhooks_client.go +++ b/dialogflow/cx/apiv3beta1/webhooks_client.go @@ -242,7 +242,8 @@ func (c *WebhooksClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *WebhooksClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -363,7 +364,8 @@ func NewWebhooksClient(ctx context.Context, opts ...option.ClientOption) (*Webho // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *webhooksGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -447,7 +449,7 @@ func (c *webhooksRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *webhooksRESTClient) Connection() *grpc.ClientConn { return nil } @@ -933,8 +935,12 @@ func (c *webhooksRESTClient) UpdateWebhook(ctx context.Context, req *cxpb.Update baseUrl.Path += fmt.Sprintf("/v3beta1/%v", req.GetWebhook().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/dialogflow/cx/apiv3beta1/webhooks_client_example_test.go b/dialogflow/cx/apiv3beta1/webhooks_client_example_test.go index 276f71031fe..4856bec29c0 100644 --- a/dialogflow/cx/apiv3beta1/webhooks_client_example_test.go +++ b/dialogflow/cx/apiv3beta1/webhooks_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewWebhooksClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewWebhooksClient() { func ExampleNewWebhooksRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -52,6 +62,11 @@ func ExampleNewWebhooksRESTClient() { func ExampleWebhooksClient_ListWebhooks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleWebhooksClient_ListWebhooks() { func ExampleWebhooksClient_GetWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleWebhooksClient_GetWebhook() { func ExampleWebhooksClient_CreateWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleWebhooksClient_CreateWebhook() { func ExampleWebhooksClient_UpdateWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleWebhooksClient_UpdateWebhook() { func ExampleWebhooksClient_DeleteWebhook() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleWebhooksClient_DeleteWebhook() { func ExampleWebhooksClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleWebhooksClient_GetLocation() { func ExampleWebhooksClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleWebhooksClient_ListLocations() { func ExampleWebhooksClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExampleWebhooksClient_CancelOperation() { func ExampleWebhooksClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExampleWebhooksClient_GetOperation() { func ExampleWebhooksClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dialogflow/go.mod b/dialogflow/go.mod index 4937298aa71..e640cb5f21c 100644 --- a/dialogflow/go.mod +++ b/dialogflow/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/dialogflow/go.sum b/dialogflow/go.sum index 79691d9102f..104b63a3b44 100644 --- a/dialogflow/go.sum +++ b/dialogflow/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/dlp/apiv2/dlp_client.go b/dlp/apiv2/dlp_client.go index a42f3d59b73..afea8964b49 100644 --- a/dlp/apiv2/dlp_client.go +++ b/dlp/apiv2/dlp_client.go @@ -424,7 +424,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -474,14 +475,14 @@ func (c *Client) ReidentifyContent(ctx context.Context, req *dlppb.ReidentifyCon return c.internalClient.ReidentifyContent(ctx, req, opts...) } -// ListInfoTypes returns a list of the sensitive information types that the DLP API +// ListInfoTypes returns a list of the sensitive information types that DLP API // supports. See https://cloud.google.com/dlp/docs/infotypes-reference (at https://cloud.google.com/dlp/docs/infotypes-reference) to // learn more. func (c *Client) ListInfoTypes(ctx context.Context, req *dlppb.ListInfoTypesRequest, opts ...gax.CallOption) (*dlppb.ListInfoTypesResponse, error) { return c.internalClient.ListInfoTypes(ctx, req, opts...) } -// CreateInspectTemplate creates an InspectTemplate for re-using frequently used configuration +// CreateInspectTemplate creates an InspectTemplate for reusing frequently used configuration // for inspecting content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates (at https://cloud.google.com/dlp/docs/creating-templates) to learn more. func (c *Client) CreateInspectTemplate(ctx context.Context, req *dlppb.CreateInspectTemplateRequest, opts ...gax.CallOption) (*dlppb.InspectTemplate, error) { @@ -512,7 +513,7 @@ func (c *Client) DeleteInspectTemplate(ctx context.Context, req *dlppb.DeleteIns return c.internalClient.DeleteInspectTemplate(ctx, req, opts...) } -// CreateDeidentifyTemplate creates a DeidentifyTemplate for re-using frequently used configuration +// CreateDeidentifyTemplate creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid (at https://cloud.google.com/dlp/docs/creating-templates-deid) to learn // more. @@ -618,7 +619,7 @@ func (c *Client) GetDlpJob(ctx context.Context, req *dlppb.GetDlpJobRequest, opt } // DeleteDlpJob deletes a long-running DlpJob. This method indicates that the client is -// no longer interested in the DlpJob result. The job will be cancelled if +// no longer interested in the DlpJob result. The job will be canceled if // possible. // See https://cloud.google.com/dlp/docs/inspecting-storage (at https://cloud.google.com/dlp/docs/inspecting-storage) and // https://cloud.google.com/dlp/docs/compute-risk-analysis (at https://cloud.google.com/dlp/docs/compute-risk-analysis) to learn more. @@ -752,7 +753,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/dlp/apiv2/dlp_client_example_test.go b/dlp/apiv2/dlp_client_example_test.go index bbcecaadf09..198a65b0f60 100644 --- a/dlp/apiv2/dlp_client_example_test.go +++ b/dlp/apiv2/dlp_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_InspectContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_InspectContent() { func ExampleClient_RedactImage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_RedactImage() { func ExampleClient_DeidentifyContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleClient_DeidentifyContent() { func ExampleClient_ReidentifyContent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleClient_ReidentifyContent() { func ExampleClient_ListInfoTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -138,6 +168,11 @@ func ExampleClient_ListInfoTypes() { func ExampleClient_CreateInspectTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -158,6 +193,11 @@ func ExampleClient_CreateInspectTemplate() { func ExampleClient_UpdateInspectTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -178,6 +218,11 @@ func ExampleClient_UpdateInspectTemplate() { func ExampleClient_GetInspectTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -198,6 +243,11 @@ func ExampleClient_GetInspectTemplate() { func ExampleClient_ListInspectTemplates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -224,6 +274,11 @@ func ExampleClient_ListInspectTemplates() { func ExampleClient_DeleteInspectTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +297,11 @@ func ExampleClient_DeleteInspectTemplate() { func ExampleClient_CreateDeidentifyTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -262,6 +322,11 @@ func ExampleClient_CreateDeidentifyTemplate() { func ExampleClient_UpdateDeidentifyTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +347,11 @@ func ExampleClient_UpdateDeidentifyTemplate() { func ExampleClient_GetDeidentifyTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +372,11 @@ func ExampleClient_GetDeidentifyTemplate() { func ExampleClient_ListDeidentifyTemplates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -328,6 +403,11 @@ func ExampleClient_ListDeidentifyTemplates() { func ExampleClient_DeleteDeidentifyTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -346,6 +426,11 @@ func ExampleClient_DeleteDeidentifyTemplate() { func ExampleClient_CreateJobTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -366,6 +451,11 @@ func ExampleClient_CreateJobTrigger() { func ExampleClient_UpdateJobTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -386,6 +476,11 @@ func ExampleClient_UpdateJobTrigger() { func ExampleClient_HybridInspectJobTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -406,6 +501,11 @@ func ExampleClient_HybridInspectJobTrigger() { func ExampleClient_GetJobTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -426,6 +526,11 @@ func ExampleClient_GetJobTrigger() { func ExampleClient_ListJobTriggers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -452,6 +557,11 @@ func ExampleClient_ListJobTriggers() { func ExampleClient_DeleteJobTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -470,6 +580,11 @@ func ExampleClient_DeleteJobTrigger() { func ExampleClient_ActivateJobTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -490,6 +605,11 @@ func ExampleClient_ActivateJobTrigger() { func ExampleClient_CreateDlpJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -510,6 +630,11 @@ func ExampleClient_CreateDlpJob() { func ExampleClient_ListDlpJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -536,6 +661,11 @@ func ExampleClient_ListDlpJobs() { func ExampleClient_GetDlpJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -556,6 +686,11 @@ func ExampleClient_GetDlpJob() { func ExampleClient_DeleteDlpJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -574,6 +709,11 @@ func ExampleClient_DeleteDlpJob() { func ExampleClient_CancelDlpJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -592,6 +732,11 @@ func ExampleClient_CancelDlpJob() { func ExampleClient_CreateStoredInfoType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -612,6 +757,11 @@ func ExampleClient_CreateStoredInfoType() { func ExampleClient_UpdateStoredInfoType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -632,6 +782,11 @@ func ExampleClient_UpdateStoredInfoType() { func ExampleClient_GetStoredInfoType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -652,6 +807,11 @@ func ExampleClient_GetStoredInfoType() { func ExampleClient_ListStoredInfoTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -678,6 +838,11 @@ func ExampleClient_ListStoredInfoTypes() { func ExampleClient_DeleteStoredInfoType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -696,6 +861,11 @@ func ExampleClient_DeleteStoredInfoType() { func ExampleClient_HybridInspectDlpJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -716,6 +886,11 @@ func ExampleClient_HybridInspectDlpJob() { func ExampleClient_FinishDlpJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/dlp/apiv2/doc.go b/dlp/apiv2/doc.go index 26932f20d81..2df2e53abb7 100644 --- a/dlp/apiv2/doc.go +++ b/dlp/apiv2/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dlp.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dlp.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/dlp/go.mod b/dlp/go.mod index 2fc1e0ed06d..2d9ab4213b0 100644 --- a/dlp/go.mod +++ b/dlp/go.mod @@ -3,10 +3,9 @@ module cloud.google.com/go/dlp go 1.17 require ( - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -14,12 +13,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/dlp/go.sum b/dlp/go.sum index 543863e1315..f600310a011 100644 --- a/dlp/go.sum +++ b/dlp/go.sum @@ -27,8 +27,10 @@ cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= -cloud.google.com/go v0.102.0 h1:DAq3r8y4mDgyB/ZPJ9v/5VJNqjgJAxTn6ZYLlUywOu8= cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -49,6 +51,7 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -161,6 +164,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +293,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +314,11 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +389,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +503,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +592,11 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/documentai/apiv1/doc.go b/documentai/apiv1/doc.go index 2a03465f744..0c05f6f72b4 100644 --- a/documentai/apiv1/doc.go +++ b/documentai/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := documentai.NewDocumentProcessorClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := documentai.NewDocumentProcessorClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/documentai/apiv1/document_processor_client.go b/documentai/apiv1/document_processor_client.go index 9418e82d692..1d93e1915ab 100644 --- a/documentai/apiv1/document_processor_client.go +++ b/documentai/apiv1/document_processor_client.go @@ -214,7 +214,8 @@ func (c *DocumentProcessorClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DocumentProcessorClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -476,7 +477,8 @@ func NewDocumentProcessorClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *documentProcessorGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/documentai/apiv1/document_processor_client_example_test.go b/documentai/apiv1/document_processor_client_example_test.go index 8739c49ebef..e6dfa00dd6c 100644 --- a/documentai/apiv1/document_processor_client_example_test.go +++ b/documentai/apiv1/document_processor_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewDocumentProcessorClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewDocumentProcessorClient() { func ExampleDocumentProcessorClient_ProcessDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleDocumentProcessorClient_ProcessDocument() { func ExampleDocumentProcessorClient_BatchProcessDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleDocumentProcessorClient_BatchProcessDocuments() { func ExampleDocumentProcessorClient_FetchProcessorTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleDocumentProcessorClient_FetchProcessorTypes() { func ExampleDocumentProcessorClient_ListProcessorTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -131,6 +156,11 @@ func ExampleDocumentProcessorClient_ListProcessorTypes() { func ExampleDocumentProcessorClient_ListProcessors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleDocumentProcessorClient_ListProcessors() { func ExampleDocumentProcessorClient_GetProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +212,11 @@ func ExampleDocumentProcessorClient_GetProcessor() { func ExampleDocumentProcessorClient_GetProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -197,6 +237,11 @@ func ExampleDocumentProcessorClient_GetProcessorVersion() { func ExampleDocumentProcessorClient_ListProcessorVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +268,11 @@ func ExampleDocumentProcessorClient_ListProcessorVersions() { func ExampleDocumentProcessorClient_DeleteProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleDocumentProcessorClient_DeleteProcessorVersion() { func ExampleDocumentProcessorClient_DeployProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleDocumentProcessorClient_DeployProcessorVersion() { func ExampleDocumentProcessorClient_UndeployProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -296,6 +356,11 @@ func ExampleDocumentProcessorClient_UndeployProcessorVersion() { func ExampleDocumentProcessorClient_CreateProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -316,6 +381,11 @@ func ExampleDocumentProcessorClient_CreateProcessor() { func ExampleDocumentProcessorClient_DeleteProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -339,6 +409,11 @@ func ExampleDocumentProcessorClient_DeleteProcessor() { func ExampleDocumentProcessorClient_EnableProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -364,6 +439,11 @@ func ExampleDocumentProcessorClient_EnableProcessor() { func ExampleDocumentProcessorClient_DisableProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -389,6 +469,11 @@ func ExampleDocumentProcessorClient_DisableProcessor() { func ExampleDocumentProcessorClient_SetDefaultProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -414,6 +499,11 @@ func ExampleDocumentProcessorClient_SetDefaultProcessorVersion() { func ExampleDocumentProcessorClient_ReviewDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -439,6 +529,11 @@ func ExampleDocumentProcessorClient_ReviewDocument() { func ExampleDocumentProcessorClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -459,6 +554,11 @@ func ExampleDocumentProcessorClient_GetLocation() { func ExampleDocumentProcessorClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -485,6 +585,11 @@ func ExampleDocumentProcessorClient_ListLocations() { func ExampleDocumentProcessorClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -503,6 +608,11 @@ func ExampleDocumentProcessorClient_CancelOperation() { func ExampleDocumentProcessorClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -523,6 +633,11 @@ func ExampleDocumentProcessorClient_GetOperation() { func ExampleDocumentProcessorClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/documentai/apiv1beta3/doc.go b/documentai/apiv1beta3/doc.go index cf795f26527..df317b45da4 100644 --- a/documentai/apiv1beta3/doc.go +++ b/documentai/apiv1beta3/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := documentai.NewDocumentProcessorClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := documentai.NewDocumentProcessorClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/documentai/apiv1beta3/document_processor_client.go b/documentai/apiv1beta3/document_processor_client.go index 9dbbfe57d10..579075d32a9 100644 --- a/documentai/apiv1beta3/document_processor_client.go +++ b/documentai/apiv1beta3/document_processor_client.go @@ -214,7 +214,8 @@ func (c *DocumentProcessorClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DocumentProcessorClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -476,7 +477,8 @@ func NewDocumentProcessorClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *documentProcessorGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/documentai/apiv1beta3/document_processor_client_example_test.go b/documentai/apiv1beta3/document_processor_client_example_test.go index 4d9c3655ca2..370d53d8291 100644 --- a/documentai/apiv1beta3/document_processor_client_example_test.go +++ b/documentai/apiv1beta3/document_processor_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewDocumentProcessorClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewDocumentProcessorClient() { func ExampleDocumentProcessorClient_ProcessDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleDocumentProcessorClient_ProcessDocument() { func ExampleDocumentProcessorClient_BatchProcessDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleDocumentProcessorClient_BatchProcessDocuments() { func ExampleDocumentProcessorClient_FetchProcessorTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleDocumentProcessorClient_FetchProcessorTypes() { func ExampleDocumentProcessorClient_ListProcessorTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -131,6 +156,11 @@ func ExampleDocumentProcessorClient_ListProcessorTypes() { func ExampleDocumentProcessorClient_ListProcessors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleDocumentProcessorClient_ListProcessors() { func ExampleDocumentProcessorClient_GetProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +212,11 @@ func ExampleDocumentProcessorClient_GetProcessor() { func ExampleDocumentProcessorClient_GetProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -197,6 +237,11 @@ func ExampleDocumentProcessorClient_GetProcessorVersion() { func ExampleDocumentProcessorClient_ListProcessorVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +268,11 @@ func ExampleDocumentProcessorClient_ListProcessorVersions() { func ExampleDocumentProcessorClient_DeleteProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleDocumentProcessorClient_DeleteProcessorVersion() { func ExampleDocumentProcessorClient_DeployProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleDocumentProcessorClient_DeployProcessorVersion() { func ExampleDocumentProcessorClient_UndeployProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -296,6 +356,11 @@ func ExampleDocumentProcessorClient_UndeployProcessorVersion() { func ExampleDocumentProcessorClient_CreateProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -316,6 +381,11 @@ func ExampleDocumentProcessorClient_CreateProcessor() { func ExampleDocumentProcessorClient_DeleteProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -339,6 +409,11 @@ func ExampleDocumentProcessorClient_DeleteProcessor() { func ExampleDocumentProcessorClient_EnableProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -364,6 +439,11 @@ func ExampleDocumentProcessorClient_EnableProcessor() { func ExampleDocumentProcessorClient_DisableProcessor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -389,6 +469,11 @@ func ExampleDocumentProcessorClient_DisableProcessor() { func ExampleDocumentProcessorClient_SetDefaultProcessorVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -414,6 +499,11 @@ func ExampleDocumentProcessorClient_SetDefaultProcessorVersion() { func ExampleDocumentProcessorClient_ReviewDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -439,6 +529,11 @@ func ExampleDocumentProcessorClient_ReviewDocument() { func ExampleDocumentProcessorClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -459,6 +554,11 @@ func ExampleDocumentProcessorClient_GetLocation() { func ExampleDocumentProcessorClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -485,6 +585,11 @@ func ExampleDocumentProcessorClient_ListLocations() { func ExampleDocumentProcessorClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -503,6 +608,11 @@ func ExampleDocumentProcessorClient_CancelOperation() { func ExampleDocumentProcessorClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. @@ -523,6 +633,11 @@ func ExampleDocumentProcessorClient_GetOperation() { func ExampleDocumentProcessorClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/documentai/go.mod b/documentai/go.mod index 2616887cbcb..16ad0ba4d4e 100644 --- a/documentai/go.mod +++ b/documentai/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/documentai/go.sum b/documentai/go.sum index 16c8c6ff92d..61881bdba1f 100644 --- a/documentai/go.sum +++ b/documentai/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/domains/apiv1beta1/doc.go b/domains/apiv1beta1/doc.go index 856c86abb55..c4c7efa0fc3 100644 --- a/domains/apiv1beta1/doc.go +++ b/domains/apiv1beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := domains.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := domains.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/domains/apiv1beta1/domains_client.go b/domains/apiv1beta1/domains_client.go index 76e07e20ddc..a8f68c342b6 100644 --- a/domains/apiv1beta1/domains_client.go +++ b/domains/apiv1beta1/domains_client.go @@ -180,7 +180,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -467,7 +468,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -566,7 +568,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1375,8 +1377,12 @@ func (c *restClient) UpdateRegistration(ctx context.Context, req *domainspb.Upda baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetRegistration().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/domains/apiv1beta1/domains_client_example_test.go b/domains/apiv1beta1/domains_client_example_test.go index a785612a193..db7595b542a 100644 --- a/domains/apiv1beta1/domains_client_example_test.go +++ b/domains/apiv1beta1/domains_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_SearchDomains() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleClient_SearchDomains() { func ExampleClient_RetrieveRegisterParameters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +110,11 @@ func ExampleClient_RetrieveRegisterParameters() { func ExampleClient_RegisterDomain() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -115,6 +140,11 @@ func ExampleClient_RegisterDomain() { func ExampleClient_RetrieveTransferParameters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +165,11 @@ func ExampleClient_RetrieveTransferParameters() { func ExampleClient_TransferDomain() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +195,11 @@ func ExampleClient_TransferDomain() { func ExampleClient_ListRegistrations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +226,11 @@ func ExampleClient_ListRegistrations() { func ExampleClient_GetRegistration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +251,11 @@ func ExampleClient_GetRegistration() { func ExampleClient_UpdateRegistration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +281,11 @@ func ExampleClient_UpdateRegistration() { func ExampleClient_ConfigureManagementSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +311,11 @@ func ExampleClient_ConfigureManagementSettings() { func ExampleClient_ConfigureDnsSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -281,6 +341,11 @@ func ExampleClient_ConfigureDnsSettings() { func ExampleClient_ConfigureContactSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +371,11 @@ func ExampleClient_ConfigureContactSettings() { func ExampleClient_ExportRegistration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -331,6 +401,11 @@ func ExampleClient_ExportRegistration() { func ExampleClient_DeleteRegistration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -354,6 +429,11 @@ func ExampleClient_DeleteRegistration() { func ExampleClient_RetrieveAuthorizationCode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -374,6 +454,11 @@ func ExampleClient_RetrieveAuthorizationCode() { func ExampleClient_ResetAuthorizationCode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/domains/go.mod b/domains/go.mod index b84ca68c7b4..7c10472b8d9 100644 --- a/domains/go.mod +++ b/domains/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/domains/go.sum b/domains/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/domains/go.sum +++ b/domains/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/errorreporting/apiv1beta1/doc.go b/errorreporting/apiv1beta1/doc.go index 39c9aab7c76..6adf8fe9301 100644 --- a/errorreporting/apiv1beta1/doc.go +++ b/errorreporting/apiv1beta1/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := errorreporting.NewErrorGroupClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := errorreporting.NewErrorGroupClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/errorreporting/apiv1beta1/error_group_client.go b/errorreporting/apiv1beta1/error_group_client.go index d60f9ece2fb..ce9495a409e 100644 --- a/errorreporting/apiv1beta1/error_group_client.go +++ b/errorreporting/apiv1beta1/error_group_client.go @@ -153,7 +153,8 @@ func (c *ErrorGroupClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ErrorGroupClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -229,7 +230,8 @@ func NewErrorGroupClient(ctx context.Context, opts ...option.ClientOption) (*Err // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *errorGroupGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -313,7 +315,7 @@ func (c *errorGroupRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *errorGroupRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/errorreporting/apiv1beta1/error_group_client_example_test.go b/errorreporting/apiv1beta1/error_group_client_example_test.go index bcedbed8725..5a7f785d9b9 100644 --- a/errorreporting/apiv1beta1/error_group_client_example_test.go +++ b/errorreporting/apiv1beta1/error_group_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewErrorGroupClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewErrorGroupClient() { func ExampleNewErrorGroupRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorGroupRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewErrorGroupRESTClient() { func ExampleErrorGroupClient_GetGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleErrorGroupClient_GetGroup() { func ExampleErrorGroupClient_UpdateGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorGroupClient(ctx) if err != nil { // TODO: Handle error. diff --git a/errorreporting/apiv1beta1/error_stats_client.go b/errorreporting/apiv1beta1/error_stats_client.go index 640d3062303..767fba193ac 100644 --- a/errorreporting/apiv1beta1/error_stats_client.go +++ b/errorreporting/apiv1beta1/error_stats_client.go @@ -180,7 +180,8 @@ func (c *ErrorStatsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ErrorStatsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -261,7 +262,8 @@ func NewErrorStatsClient(ctx context.Context, opts ...option.ClientOption) (*Err // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *errorStatsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -346,7 +348,7 @@ func (c *errorStatsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *errorStatsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -487,11 +489,12 @@ func (c *errorStatsRESTClient) ListGroupStats(ctx context.Context, req *clouderr if req.GetAlignment() != 0 { params.Add("alignment", fmt.Sprintf("%v", req.GetAlignment())) } - if req.GetAlignmentTime().GetNanos() != 0 { - params.Add("alignmentTime.nanos", fmt.Sprintf("%v", req.GetAlignmentTime().GetNanos())) - } - if req.GetAlignmentTime().GetSeconds() != 0 { - params.Add("alignmentTime.seconds", fmt.Sprintf("%v", req.GetAlignmentTime().GetSeconds())) + if req.GetAlignmentTime() != nil { + alignmentTime, err := protojson.Marshal(req.GetAlignmentTime()) + if err != nil { + return nil, "", err + } + params.Add("alignmentTime", string(alignmentTime)) } if req.GetGroupId() != nil { params.Add("groupId", fmt.Sprintf("%v", req.GetGroupId())) @@ -517,11 +520,12 @@ func (c *errorStatsRESTClient) ListGroupStats(ctx context.Context, req *clouderr if req.GetTimeRange().GetPeriod() != 0 { params.Add("timeRange.period", fmt.Sprintf("%v", req.GetTimeRange().GetPeriod())) } - if req.GetTimedCountDuration().GetNanos() != 0 { - params.Add("timedCountDuration.nanos", fmt.Sprintf("%v", req.GetTimedCountDuration().GetNanos())) - } - if req.GetTimedCountDuration().GetSeconds() != 0 { - params.Add("timedCountDuration.seconds", fmt.Sprintf("%v", req.GetTimedCountDuration().GetSeconds())) + if req.GetTimedCountDuration() != nil { + timedCountDuration, err := protojson.Marshal(req.GetTimedCountDuration()) + if err != nil { + return nil, "", err + } + params.Add("timedCountDuration", string(timedCountDuration)) } baseUrl.RawQuery = params.Encode() diff --git a/errorreporting/apiv1beta1/error_stats_client_example_test.go b/errorreporting/apiv1beta1/error_stats_client_example_test.go index 72cbaff5ed2..c9fd17acb40 100644 --- a/errorreporting/apiv1beta1/error_stats_client_example_test.go +++ b/errorreporting/apiv1beta1/error_stats_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewErrorStatsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewErrorStatsClient() { func ExampleNewErrorStatsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorStatsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewErrorStatsRESTClient() { func ExampleErrorStatsClient_ListGroupStats() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleErrorStatsClient_ListGroupStats() { func ExampleErrorStatsClient_ListEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -102,6 +122,11 @@ func ExampleErrorStatsClient_ListEvents() { func ExampleErrorStatsClient_DeleteEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorStatsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/errorreporting/apiv1beta1/report_errors_client.go b/errorreporting/apiv1beta1/report_errors_client.go index bc088139dd2..16ecb0f1d72 100644 --- a/errorreporting/apiv1beta1/report_errors_client.go +++ b/errorreporting/apiv1beta1/report_errors_client.go @@ -106,7 +106,8 @@ func (c *ReportErrorsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ReportErrorsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -191,7 +192,8 @@ func NewReportErrorsClient(ctx context.Context, opts ...option.ClientOption) (*R // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *reportErrorsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -275,7 +277,7 @@ func (c *reportErrorsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *reportErrorsRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/errorreporting/apiv1beta1/report_errors_client_example_test.go b/errorreporting/apiv1beta1/report_errors_client_example_test.go index 42fae5602ea..8b263034af4 100644 --- a/errorreporting/apiv1beta1/report_errors_client_example_test.go +++ b/errorreporting/apiv1beta1/report_errors_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewReportErrorsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewReportErrorsClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewReportErrorsClient() { func ExampleNewReportErrorsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewReportErrorsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewReportErrorsRESTClient() { func ExampleReportErrorsClient_ReportErrorEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewReportErrorsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/errorreporting/go.mod b/errorreporting/go.mod index dfde0a10030..0de8a8f8664 100644 --- a/errorreporting/go.mod +++ b/errorreporting/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect diff --git a/errorreporting/go.sum b/errorreporting/go.sum index 2ee4f26121e..10b93658577 100644 --- a/errorreporting/go.sum +++ b/errorreporting/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -500,8 +501,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/essentialcontacts/apiv1/doc.go b/essentialcontacts/apiv1/doc.go index 17bd8701724..35278ba9e78 100644 --- a/essentialcontacts/apiv1/doc.go +++ b/essentialcontacts/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := essentialcontacts.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := essentialcontacts.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/essentialcontacts/apiv1/essential_contacts_client.go b/essentialcontacts/apiv1/essential_contacts_client.go index 1955fe2c085..dd8ae3e534e 100644 --- a/essentialcontacts/apiv1/essential_contacts_client.go +++ b/essentialcontacts/apiv1/essential_contacts_client.go @@ -135,7 +135,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -239,7 +240,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/essentialcontacts/apiv1/essential_contacts_client_example_test.go b/essentialcontacts/apiv1/essential_contacts_client_example_test.go index e1d2f21585c..24a380fe851 100644 --- a/essentialcontacts/apiv1/essential_contacts_client_example_test.go +++ b/essentialcontacts/apiv1/essential_contacts_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateContact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateContact() { func ExampleClient_UpdateContact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_UpdateContact() { func ExampleClient_ListContacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_ListContacts() { func ExampleClient_GetContact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleClient_GetContact() { func ExampleClient_DeleteContact() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_DeleteContact() { func ExampleClient_ComputeContacts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleClient_ComputeContacts() { func ExampleClient_SendTestMessage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/essentialcontacts/go.mod b/essentialcontacts/go.mod index 1bb697dd449..aa12131eda1 100644 --- a/essentialcontacts/go.mod +++ b/essentialcontacts/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -17,9 +17,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/essentialcontacts/go.sum b/essentialcontacts/go.sum index 543863e1315..b56eeb96012 100644 --- a/essentialcontacts/go.sum +++ b/essentialcontacts/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/eventarc/apiv1/doc.go b/eventarc/apiv1/doc.go index 91f36b42db4..08188387d70 100644 --- a/eventarc/apiv1/doc.go +++ b/eventarc/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := eventarc.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := eventarc.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/eventarc/apiv1/eventarc_client.go b/eventarc/apiv1/eventarc_client.go index 6b4a055548a..670b17a9bb3 100644 --- a/eventarc/apiv1/eventarc_client.go +++ b/eventarc/apiv1/eventarc_client.go @@ -158,7 +158,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -368,7 +369,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/eventarc/apiv1/eventarc_client_example_test.go b/eventarc/apiv1/eventarc_client_example_test.go index 1ca9f424988..60131ef050b 100644 --- a/eventarc/apiv1/eventarc_client_example_test.go +++ b/eventarc/apiv1/eventarc_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_GetTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_GetTrigger() { func ExampleClient_ListTriggers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_ListTriggers() { func ExampleClient_CreateTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_CreateTrigger() { func ExampleClient_UpdateTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleClient_UpdateTrigger() { func ExampleClient_DeleteTrigger() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleClient_DeleteTrigger() { func ExampleClient_GetChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleClient_GetChannel() { func ExampleClient_ListChannels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +245,11 @@ func ExampleClient_ListChannels() { func ExampleClient_CreateChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -230,6 +275,11 @@ func ExampleClient_CreateChannel() { func ExampleClient_UpdateChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +305,11 @@ func ExampleClient_UpdateChannel() { func ExampleClient_DeleteChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +335,11 @@ func ExampleClient_DeleteChannel() { func ExampleClient_GetProvider() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -300,6 +360,11 @@ func ExampleClient_GetProvider() { func ExampleClient_ListProviders() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -326,6 +391,11 @@ func ExampleClient_ListProviders() { func ExampleClient_GetChannelConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -346,6 +416,11 @@ func ExampleClient_GetChannelConnection() { func ExampleClient_ListChannelConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +447,11 @@ func ExampleClient_ListChannelConnections() { func ExampleClient_CreateChannelConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -397,6 +477,11 @@ func ExampleClient_CreateChannelConnection() { func ExampleClient_DeleteChannelConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/eventarc/go.mod b/eventarc/go.mod index 158abb8ae4a..1156a6ef5de 100644 --- a/eventarc/go.mod +++ b/eventarc/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/eventarc/go.sum b/eventarc/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/eventarc/go.sum +++ b/eventarc/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/eventarc/publishing/apiv1/doc.go b/eventarc/publishing/apiv1/doc.go index 19e8e7e46f7..ff0e80f0b30 100644 --- a/eventarc/publishing/apiv1/doc.go +++ b/eventarc/publishing/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := publishing.NewPublisherClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := publishing.NewPublisherClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/eventarc/publishing/apiv1/publisher_client.go b/eventarc/publishing/apiv1/publisher_client.go index 44b541defa5..b5e7d6acd7f 100644 --- a/eventarc/publishing/apiv1/publisher_client.go +++ b/eventarc/publishing/apiv1/publisher_client.go @@ -120,7 +120,8 @@ func (c *PublisherClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PublisherClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,8 @@ func NewPublisherClient(ctx context.Context, opts ...option.ClientOption) (*Publ // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *publisherGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/eventarc/publishing/apiv1/publisher_client_example_test.go b/eventarc/publishing/apiv1/publisher_client_example_test.go index 41dfaf3eb51..691d9c4188a 100644 --- a/eventarc/publishing/apiv1/publisher_client_example_test.go +++ b/eventarc/publishing/apiv1/publisher_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewPublisherClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := publishing.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewPublisherClient() { func ExamplePublisherClient_PublishChannelConnectionEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := publishing.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExamplePublisherClient_PublishChannelConnectionEvents() { func ExamplePublisherClient_PublishEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := publishing.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/filestore/apiv1/cloud_filestore_manager_client.go b/filestore/apiv1/cloud_filestore_manager_client.go index 897e073ed7d..5fad20a6bd9 100644 --- a/filestore/apiv1/cloud_filestore_manager_client.go +++ b/filestore/apiv1/cloud_filestore_manager_client.go @@ -207,7 +207,8 @@ func (c *CloudFilestoreManagerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudFilestoreManagerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -418,7 +419,8 @@ func NewCloudFilestoreManagerClient(ctx context.Context, opts ...option.ClientOp // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudFilestoreManagerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/filestore/apiv1/cloud_filestore_manager_client_example_test.go b/filestore/apiv1/cloud_filestore_manager_client_example_test.go index af37e9107f3..9621f6e3acb 100644 --- a/filestore/apiv1/cloud_filestore_manager_client_example_test.go +++ b/filestore/apiv1/cloud_filestore_manager_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudFilestoreManagerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudFilestoreManagerClient() { func ExampleCloudFilestoreManagerClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleCloudFilestoreManagerClient_ListInstances() { func ExampleCloudFilestoreManagerClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleCloudFilestoreManagerClient_GetInstance() { func ExampleCloudFilestoreManagerClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleCloudFilestoreManagerClient_CreateInstance() { func ExampleCloudFilestoreManagerClient_UpdateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleCloudFilestoreManagerClient_UpdateInstance() { func ExampleCloudFilestoreManagerClient_RestoreInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleCloudFilestoreManagerClient_RestoreInstance() { func ExampleCloudFilestoreManagerClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleCloudFilestoreManagerClient_DeleteInstance() { func ExampleCloudFilestoreManagerClient_ListBackups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +248,11 @@ func ExampleCloudFilestoreManagerClient_ListBackups() { func ExampleCloudFilestoreManagerClient_GetBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleCloudFilestoreManagerClient_GetBackup() { func ExampleCloudFilestoreManagerClient_CreateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleCloudFilestoreManagerClient_CreateBackup() { func ExampleCloudFilestoreManagerClient_DeleteBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleCloudFilestoreManagerClient_DeleteBackup() { func ExampleCloudFilestoreManagerClient_UpdateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/filestore/apiv1/doc.go b/filestore/apiv1/doc.go index a167139827e..8bb8930e6e9 100644 --- a/filestore/apiv1/doc.go +++ b/filestore/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := filestore.NewCloudFilestoreManagerClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := filestore.NewCloudFilestoreManagerClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/filestore/go.mod b/filestore/go.mod index ae773f66b02..b96d40a06d0 100644 --- a/filestore/go.mod +++ b/filestore/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/filestore/go.sum b/filestore/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/filestore/go.sum +++ b/filestore/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/firestore/apiv1/admin/doc.go b/firestore/apiv1/admin/doc.go index b73c853bfd6..04372d539d1 100644 --- a/firestore/apiv1/admin/doc.go +++ b/firestore/apiv1/admin/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apiv1.NewFirestoreAdminClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := apiv1.NewFirestoreAdminClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/firestore/apiv1/admin/firestore_admin_client.go b/firestore/apiv1/admin/firestore_admin_client.go index eb3deac1695..bb0e9f26070 100644 --- a/firestore/apiv1/admin/firestore_admin_client.go +++ b/firestore/apiv1/admin/firestore_admin_client.go @@ -242,7 +242,8 @@ func (c *FirestoreAdminClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FirestoreAdminClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -496,7 +497,8 @@ func NewFirestoreAdminClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *firestoreAdminGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/firestore/apiv1/admin/firestore_admin_client_example_test.go b/firestore/apiv1/admin/firestore_admin_client_example_test.go index 3cd12337dac..ea3e614b5fd 100644 --- a/firestore/apiv1/admin/firestore_admin_client_example_test.go +++ b/firestore/apiv1/admin/firestore_admin_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewFirestoreAdminClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewFirestoreAdminClient() { func ExampleFirestoreAdminClient_CreateIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleFirestoreAdminClient_CreateIndex() { func ExampleFirestoreAdminClient_ListIndexes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +105,11 @@ func ExampleFirestoreAdminClient_ListIndexes() { func ExampleFirestoreAdminClient_GetIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleFirestoreAdminClient_GetIndex() { func ExampleFirestoreAdminClient_DeleteIndex() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -128,6 +153,11 @@ func ExampleFirestoreAdminClient_DeleteIndex() { func ExampleFirestoreAdminClient_GetField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +178,11 @@ func ExampleFirestoreAdminClient_GetField() { func ExampleFirestoreAdminClient_UpdateField() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -173,6 +208,11 @@ func ExampleFirestoreAdminClient_UpdateField() { func ExampleFirestoreAdminClient_ListFields() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleFirestoreAdminClient_ListFields() { func ExampleFirestoreAdminClient_ExportDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -224,6 +269,11 @@ func ExampleFirestoreAdminClient_ExportDocuments() { func ExampleFirestoreAdminClient_ImportDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +297,11 @@ func ExampleFirestoreAdminClient_ImportDocuments() { func ExampleFirestoreAdminClient_GetDatabase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -267,6 +322,11 @@ func ExampleFirestoreAdminClient_GetDatabase() { func ExampleFirestoreAdminClient_ListDatabases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -287,6 +347,11 @@ func ExampleFirestoreAdminClient_ListDatabases() { func ExampleFirestoreAdminClient_UpdateDatabase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -312,6 +377,11 @@ func ExampleFirestoreAdminClient_UpdateDatabase() { func ExampleFirestoreAdminClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -330,6 +400,11 @@ func ExampleFirestoreAdminClient_CancelOperation() { func ExampleFirestoreAdminClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -348,6 +423,11 @@ func ExampleFirestoreAdminClient_DeleteOperation() { func ExampleFirestoreAdminClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -368,6 +448,11 @@ func ExampleFirestoreAdminClient_GetOperation() { func ExampleFirestoreAdminClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/firestore/apiv1/doc.go b/firestore/apiv1/doc.go index 60ad12231dd..a333fe915c8 100644 --- a/firestore/apiv1/doc.go +++ b/firestore/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := firestore.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := firestore.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/firestore/apiv1/firestore_client.go b/firestore/apiv1/firestore_client.go index d4b3cf35b86..60e26602396 100644 --- a/firestore/apiv1/firestore_client.go +++ b/firestore/apiv1/firestore_client.go @@ -334,7 +334,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -517,7 +518,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/firestore/apiv1/firestore_client_example_test.go b/firestore/apiv1/firestore_client_example_test.go index ff6888ed5f7..e95b70daa8d 100644 --- a/firestore/apiv1/firestore_client_example_test.go +++ b/firestore/apiv1/firestore_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewClient() { func ExampleClient_GetDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleClient_GetDocument() { func ExampleClient_ListDocuments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -86,6 +101,11 @@ func ExampleClient_ListDocuments() { func ExampleClient_UpdateDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleClient_UpdateDocument() { func ExampleClient_DeleteDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleClient_DeleteDocument() { func ExampleClient_BeginTransaction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleClient_BeginTransaction() { func ExampleClient_Commit() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleClient_Commit() { func ExampleClient_Rollback() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleClient_Rollback() { func ExampleClient_PartitionQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleClient_PartitionQuery() { func ExampleClient_Write() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleClient_Write() { func ExampleClient_Listen() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +333,11 @@ func ExampleClient_Listen() { func ExampleClient_ListCollectionIds() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -304,6 +364,11 @@ func ExampleClient_ListCollectionIds() { func ExampleClient_BatchWrite() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -324,6 +389,11 @@ func ExampleClient_BatchWrite() { func ExampleClient_CreateDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -344,6 +414,11 @@ func ExampleClient_CreateDocument() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -362,6 +437,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -380,6 +460,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -400,6 +485,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/firestore/go.mod b/firestore/go.mod index bb50aed6734..88fed33d386 100644 --- a/firestore/go.mod +++ b/firestore/go.mod @@ -8,8 +8,8 @@ require ( github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.4.0 golang.org/x/time v0.0.0-20220609170525-579cf78fd858 - google.golang.org/api v0.94.0 - google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -20,7 +20,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect diff --git a/firestore/go.sum b/firestore/go.sum index c4edd404b04..498b21e2e95 100644 --- a/firestore/go.sum +++ b/firestore/go.sum @@ -30,6 +30,7 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -50,6 +51,7 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -313,8 +315,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -503,8 +507,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -593,8 +598,9 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf h1:Q5xNKbTSFwkuaaGaR7CMcXEM5sy19KYdUU8iF8/iRC0= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/functions/apiv1/cloud_functions_client.go b/functions/apiv1/cloud_functions_client.go index 0ccb872633d..42be37d259f 100644 --- a/functions/apiv1/cloud_functions_client.go +++ b/functions/apiv1/cloud_functions_client.go @@ -183,7 +183,8 @@ func (c *CloudFunctionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudFunctionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -381,7 +382,8 @@ func NewCloudFunctionsClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudFunctionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/functions/apiv1/cloud_functions_client_example_test.go b/functions/apiv1/cloud_functions_client_example_test.go index 3196c5ee126..54769154335 100644 --- a/functions/apiv1/cloud_functions_client_example_test.go +++ b/functions/apiv1/cloud_functions_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCloudFunctionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCloudFunctionsClient() { func ExampleCloudFunctionsClient_ListFunctions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleCloudFunctionsClient_ListFunctions() { func ExampleCloudFunctionsClient_GetFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleCloudFunctionsClient_GetFunction() { func ExampleCloudFunctionsClient_CreateFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleCloudFunctionsClient_CreateFunction() { func ExampleCloudFunctionsClient_UpdateFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleCloudFunctionsClient_UpdateFunction() { func ExampleCloudFunctionsClient_DeleteFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -158,6 +188,11 @@ func ExampleCloudFunctionsClient_DeleteFunction() { func ExampleCloudFunctionsClient_CallFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -178,6 +213,11 @@ func ExampleCloudFunctionsClient_CallFunction() { func ExampleCloudFunctionsClient_GenerateUploadUrl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -198,6 +238,11 @@ func ExampleCloudFunctionsClient_GenerateUploadUrl() { func ExampleCloudFunctionsClient_GenerateDownloadUrl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleCloudFunctionsClient_GenerateDownloadUrl() { func ExampleCloudFunctionsClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleCloudFunctionsClient_SetIamPolicy() { func ExampleCloudFunctionsClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +313,11 @@ func ExampleCloudFunctionsClient_GetIamPolicy() { func ExampleCloudFunctionsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/functions/apiv1/doc.go b/functions/apiv1/doc.go index 13ae4f31d13..7603fb08f10 100644 --- a/functions/apiv1/doc.go +++ b/functions/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := functions.NewCloudFunctionsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := functions.NewCloudFunctionsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/functions/apiv2/doc.go b/functions/apiv2/doc.go index 937a61f6299..8ba4476ea26 100644 --- a/functions/apiv2/doc.go +++ b/functions/apiv2/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := functions.NewFunctionClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := functions.NewFunctionClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/functions/apiv2/function_client.go b/functions/apiv2/function_client.go index a7fa40b49e1..879cfcff83f 100644 --- a/functions/apiv2/function_client.go +++ b/functions/apiv2/function_client.go @@ -153,7 +153,8 @@ func (c *FunctionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FunctionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -378,7 +379,8 @@ func NewFunctionClient(ctx context.Context, opts ...option.ClientOption) (*Funct // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *functionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/functions/apiv2/function_client_example_test.go b/functions/apiv2/function_client_example_test.go index 3e5179ac509..15bcedbf9dc 100644 --- a/functions/apiv2/function_client_example_test.go +++ b/functions/apiv2/function_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewFunctionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewFunctionClient() { func ExampleFunctionClient_GetFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -61,6 +71,11 @@ func ExampleFunctionClient_GetFunction() { func ExampleFunctionClient_ListFunctions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleFunctionClient_ListFunctions() { func ExampleFunctionClient_CreateFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleFunctionClient_CreateFunction() { func ExampleFunctionClient_UpdateFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleFunctionClient_UpdateFunction() { func ExampleFunctionClient_DeleteFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleFunctionClient_DeleteFunction() { func ExampleFunctionClient_GenerateUploadUrl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleFunctionClient_GenerateUploadUrl() { func ExampleFunctionClient_GenerateDownloadUrl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleFunctionClient_GenerateDownloadUrl() { func ExampleFunctionClient_ListRuntimes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +265,11 @@ func ExampleFunctionClient_ListRuntimes() { func ExampleFunctionClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleFunctionClient_ListLocations() { func ExampleFunctionClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +321,11 @@ func ExampleFunctionClient_GetIamPolicy() { func ExampleFunctionClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +346,11 @@ func ExampleFunctionClient_SetIamPolicy() { func ExampleFunctionClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +371,11 @@ func ExampleFunctionClient_TestIamPermissions() { func ExampleFunctionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -326,6 +396,11 @@ func ExampleFunctionClient_GetOperation() { func ExampleFunctionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/functions/apiv2beta/doc.go b/functions/apiv2beta/doc.go index 280438b69d4..ca7c4feec13 100644 --- a/functions/apiv2beta/doc.go +++ b/functions/apiv2beta/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := functions.NewFunctionClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := functions.NewFunctionClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/functions/apiv2beta/function_client.go b/functions/apiv2beta/function_client.go index ac007e6df54..8ece4ad1e03 100644 --- a/functions/apiv2beta/function_client.go +++ b/functions/apiv2beta/function_client.go @@ -178,7 +178,8 @@ func (c *FunctionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FunctionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -403,7 +404,8 @@ func NewFunctionClient(ctx context.Context, opts ...option.ClientOption) (*Funct // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *functionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -507,7 +509,7 @@ func (c *functionRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *functionRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1074,8 +1076,12 @@ func (c *functionRESTClient) UpdateFunction(ctx context.Context, req *functionsp baseUrl.Path += fmt.Sprintf("/v2beta/%v", req.GetFunction().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/functions/apiv2beta/function_client_example_test.go b/functions/apiv2beta/function_client_example_test.go index 3f30c75aa92..ccd2b86d85f 100644 --- a/functions/apiv2beta/function_client_example_test.go +++ b/functions/apiv2beta/function_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewFunctionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewFunctionClient() { func ExampleNewFunctionRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -53,6 +63,11 @@ func ExampleNewFunctionRESTClient() { func ExampleFunctionClient_GetFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -73,6 +88,11 @@ func ExampleFunctionClient_GetFunction() { func ExampleFunctionClient_ListFunctions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleFunctionClient_ListFunctions() { func ExampleFunctionClient_CreateFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleFunctionClient_CreateFunction() { func ExampleFunctionClient_UpdateFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -149,6 +179,11 @@ func ExampleFunctionClient_UpdateFunction() { func ExampleFunctionClient_DeleteFunction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleFunctionClient_DeleteFunction() { func ExampleFunctionClient_GenerateUploadUrl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleFunctionClient_GenerateUploadUrl() { func ExampleFunctionClient_GenerateDownloadUrl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleFunctionClient_GenerateDownloadUrl() { func ExampleFunctionClient_ListRuntimes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +282,11 @@ func ExampleFunctionClient_ListRuntimes() { func ExampleFunctionClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +313,11 @@ func ExampleFunctionClient_ListLocations() { func ExampleFunctionClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +338,11 @@ func ExampleFunctionClient_GetIamPolicy() { func ExampleFunctionClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -298,6 +363,11 @@ func ExampleFunctionClient_SetIamPolicy() { func ExampleFunctionClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +388,11 @@ func ExampleFunctionClient_TestIamPermissions() { func ExampleFunctionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. @@ -338,6 +413,11 @@ func ExampleFunctionClient_GetOperation() { func ExampleFunctionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/functions/go.mod b/functions/go.mod index 67333f5a779..9ba13e9c910 100644 --- a/functions/go.mod +++ b/functions/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/functions/go.sum b/functions/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/functions/go.sum +++ b/functions/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/gaming/apiv1/doc.go b/gaming/apiv1/doc.go index d85792a2db8..cdcb7ebbf6f 100644 --- a/gaming/apiv1/doc.go +++ b/gaming/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gaming.NewGameServerClustersClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gaming.NewGameServerClustersClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/gaming/apiv1/game_server_clusters_client.go b/gaming/apiv1/game_server_clusters_client.go index 00d045cfa70..d2764ca1b7d 100644 --- a/gaming/apiv1/game_server_clusters_client.go +++ b/gaming/apiv1/game_server_clusters_client.go @@ -180,7 +180,8 @@ func (c *GameServerClustersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GameServerClustersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -321,7 +322,8 @@ func NewGameServerClustersClient(ctx context.Context, opts ...option.ClientOptio // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gameServerClustersGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gaming/apiv1/game_server_clusters_client_example_test.go b/gaming/apiv1/game_server_clusters_client_example_test.go index 09ba671e82a..7b1da0c5c04 100644 --- a/gaming/apiv1/game_server_clusters_client_example_test.go +++ b/gaming/apiv1/game_server_clusters_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGameServerClustersClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGameServerClustersClient() { func ExampleGameServerClustersClient_ListGameServerClusters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleGameServerClustersClient_ListGameServerClusters() { func ExampleGameServerClustersClient_GetGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGameServerClustersClient_GetGameServerCluster() { func ExampleGameServerClustersClient_CreateGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleGameServerClustersClient_CreateGameServerCluster() { func ExampleGameServerClustersClient_PreviewCreateGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleGameServerClustersClient_PreviewCreateGameServerCluster() { func ExampleGameServerClustersClient_DeleteGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -152,6 +182,11 @@ func ExampleGameServerClustersClient_DeleteGameServerCluster() { func ExampleGameServerClustersClient_PreviewDeleteGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleGameServerClustersClient_PreviewDeleteGameServerCluster() { func ExampleGameServerClustersClient_UpdateGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -197,6 +237,11 @@ func ExampleGameServerClustersClient_UpdateGameServerCluster() { func ExampleGameServerClustersClient_PreviewUpdateGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gaming/apiv1/game_server_configs_client.go b/gaming/apiv1/game_server_configs_client.go index ceb0355b0b7..f83bbc134e4 100644 --- a/gaming/apiv1/game_server_configs_client.go +++ b/gaming/apiv1/game_server_configs_client.go @@ -136,7 +136,8 @@ func (c *GameServerConfigsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GameServerConfigsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -253,7 +254,8 @@ func NewGameServerConfigsClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gameServerConfigsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gaming/apiv1/game_server_configs_client_example_test.go b/gaming/apiv1/game_server_configs_client_example_test.go index 7d39c6629c6..c4efe81d3d4 100644 --- a/gaming/apiv1/game_server_configs_client_example_test.go +++ b/gaming/apiv1/game_server_configs_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGameServerConfigsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGameServerConfigsClient() { func ExampleGameServerConfigsClient_ListGameServerConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleGameServerConfigsClient_ListGameServerConfigs() { func ExampleGameServerConfigsClient_GetGameServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGameServerConfigsClient_GetGameServerConfig() { func ExampleGameServerConfigsClient_CreateGameServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleGameServerConfigsClient_CreateGameServerConfig() { func ExampleGameServerConfigsClient_DeleteGameServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gaming/apiv1/game_server_deployments_client.go b/gaming/apiv1/game_server_deployments_client.go index 17655335e08..e9b9b7595e2 100644 --- a/gaming/apiv1/game_server_deployments_client.go +++ b/gaming/apiv1/game_server_deployments_client.go @@ -184,7 +184,8 @@ func (c *GameServerDeploymentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GameServerDeploymentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -343,7 +344,8 @@ func NewGameServerDeploymentsClient(ctx context.Context, opts ...option.ClientOp // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gameServerDeploymentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gaming/apiv1/game_server_deployments_client_example_test.go b/gaming/apiv1/game_server_deployments_client_example_test.go index 669ae63e2b8..d22c9027c96 100644 --- a/gaming/apiv1/game_server_deployments_client_example_test.go +++ b/gaming/apiv1/game_server_deployments_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGameServerDeploymentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGameServerDeploymentsClient() { func ExampleGameServerDeploymentsClient_ListGameServerDeployments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleGameServerDeploymentsClient_ListGameServerDeployments() { func ExampleGameServerDeploymentsClient_GetGameServerDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGameServerDeploymentsClient_GetGameServerDeployment() { func ExampleGameServerDeploymentsClient_CreateGameServerDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleGameServerDeploymentsClient_CreateGameServerDeployment() { func ExampleGameServerDeploymentsClient_DeleteGameServerDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleGameServerDeploymentsClient_DeleteGameServerDeployment() { func ExampleGameServerDeploymentsClient_UpdateGameServerDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleGameServerDeploymentsClient_UpdateGameServerDeployment() { func ExampleGameServerDeploymentsClient_GetGameServerDeploymentRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +212,11 @@ func ExampleGameServerDeploymentsClient_GetGameServerDeploymentRollout() { func ExampleGameServerDeploymentsClient_UpdateGameServerDeploymentRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleGameServerDeploymentsClient_UpdateGameServerDeploymentRollout() { func ExampleGameServerDeploymentsClient_PreviewGameServerDeploymentRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleGameServerDeploymentsClient_PreviewGameServerDeploymentRollout() { func ExampleGameServerDeploymentsClient_FetchDeploymentState() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gaming/apiv1/realms_client.go b/gaming/apiv1/realms_client.go index f9cbc5545e7..6eef75d69b5 100644 --- a/gaming/apiv1/realms_client.go +++ b/gaming/apiv1/realms_client.go @@ -154,7 +154,8 @@ func (c *RealmsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RealmsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -284,7 +285,8 @@ func NewRealmsClient(ctx context.Context, opts ...option.ClientOption) (*RealmsC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *realmsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gaming/apiv1/realms_client_example_test.go b/gaming/apiv1/realms_client_example_test.go index eac86bb2c36..5fc52f95728 100644 --- a/gaming/apiv1/realms_client_example_test.go +++ b/gaming/apiv1/realms_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRealmsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRealmsClient() { func ExampleRealmsClient_ListRealms() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleRealmsClient_ListRealms() { func ExampleRealmsClient_GetRealm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleRealmsClient_GetRealm() { func ExampleRealmsClient_CreateRealm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleRealmsClient_CreateRealm() { func ExampleRealmsClient_DeleteRealm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleRealmsClient_DeleteRealm() { func ExampleRealmsClient_UpdateRealm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleRealmsClient_UpdateRealm() { func ExampleRealmsClient_PreviewRealmUpdate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gaming/apiv1beta/doc.go b/gaming/apiv1beta/doc.go index c3ef9cb5eba..af178ebdc9e 100644 --- a/gaming/apiv1beta/doc.go +++ b/gaming/apiv1beta/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gaming.NewGameServerClustersClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gaming.NewGameServerClustersClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/gaming/apiv1beta/game_server_clusters_client.go b/gaming/apiv1beta/game_server_clusters_client.go index 35145e8097b..f236b0e6020 100644 --- a/gaming/apiv1beta/game_server_clusters_client.go +++ b/gaming/apiv1beta/game_server_clusters_client.go @@ -180,7 +180,8 @@ func (c *GameServerClustersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GameServerClustersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -321,7 +322,8 @@ func NewGameServerClustersClient(ctx context.Context, opts ...option.ClientOptio // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gameServerClustersGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gaming/apiv1beta/game_server_clusters_client_example_test.go b/gaming/apiv1beta/game_server_clusters_client_example_test.go index ab3da11c541..a41ff9c2b84 100644 --- a/gaming/apiv1beta/game_server_clusters_client_example_test.go +++ b/gaming/apiv1beta/game_server_clusters_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGameServerClustersClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGameServerClustersClient() { func ExampleGameServerClustersClient_ListGameServerClusters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleGameServerClustersClient_ListGameServerClusters() { func ExampleGameServerClustersClient_GetGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGameServerClustersClient_GetGameServerCluster() { func ExampleGameServerClustersClient_CreateGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleGameServerClustersClient_CreateGameServerCluster() { func ExampleGameServerClustersClient_PreviewCreateGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleGameServerClustersClient_PreviewCreateGameServerCluster() { func ExampleGameServerClustersClient_DeleteGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -152,6 +182,11 @@ func ExampleGameServerClustersClient_DeleteGameServerCluster() { func ExampleGameServerClustersClient_PreviewDeleteGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleGameServerClustersClient_PreviewDeleteGameServerCluster() { func ExampleGameServerClustersClient_UpdateGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -197,6 +237,11 @@ func ExampleGameServerClustersClient_UpdateGameServerCluster() { func ExampleGameServerClustersClient_PreviewUpdateGameServerCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gaming/apiv1beta/game_server_configs_client.go b/gaming/apiv1beta/game_server_configs_client.go index 2a2255c7691..0406d320fed 100644 --- a/gaming/apiv1beta/game_server_configs_client.go +++ b/gaming/apiv1beta/game_server_configs_client.go @@ -136,7 +136,8 @@ func (c *GameServerConfigsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GameServerConfigsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -253,7 +254,8 @@ func NewGameServerConfigsClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gameServerConfigsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gaming/apiv1beta/game_server_configs_client_example_test.go b/gaming/apiv1beta/game_server_configs_client_example_test.go index 7368289f1e3..4bed0777200 100644 --- a/gaming/apiv1beta/game_server_configs_client_example_test.go +++ b/gaming/apiv1beta/game_server_configs_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGameServerConfigsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGameServerConfigsClient() { func ExampleGameServerConfigsClient_ListGameServerConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleGameServerConfigsClient_ListGameServerConfigs() { func ExampleGameServerConfigsClient_GetGameServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGameServerConfigsClient_GetGameServerConfig() { func ExampleGameServerConfigsClient_CreateGameServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleGameServerConfigsClient_CreateGameServerConfig() { func ExampleGameServerConfigsClient_DeleteGameServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gaming/apiv1beta/game_server_deployments_client.go b/gaming/apiv1beta/game_server_deployments_client.go index 18de89c77e3..e42ec0378c4 100644 --- a/gaming/apiv1beta/game_server_deployments_client.go +++ b/gaming/apiv1beta/game_server_deployments_client.go @@ -184,7 +184,8 @@ func (c *GameServerDeploymentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GameServerDeploymentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -343,7 +344,8 @@ func NewGameServerDeploymentsClient(ctx context.Context, opts ...option.ClientOp // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gameServerDeploymentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gaming/apiv1beta/game_server_deployments_client_example_test.go b/gaming/apiv1beta/game_server_deployments_client_example_test.go index c1229eabd1a..a66f5959c38 100644 --- a/gaming/apiv1beta/game_server_deployments_client_example_test.go +++ b/gaming/apiv1beta/game_server_deployments_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGameServerDeploymentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGameServerDeploymentsClient() { func ExampleGameServerDeploymentsClient_ListGameServerDeployments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleGameServerDeploymentsClient_ListGameServerDeployments() { func ExampleGameServerDeploymentsClient_GetGameServerDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGameServerDeploymentsClient_GetGameServerDeployment() { func ExampleGameServerDeploymentsClient_CreateGameServerDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleGameServerDeploymentsClient_CreateGameServerDeployment() { func ExampleGameServerDeploymentsClient_DeleteGameServerDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleGameServerDeploymentsClient_DeleteGameServerDeployment() { func ExampleGameServerDeploymentsClient_UpdateGameServerDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleGameServerDeploymentsClient_UpdateGameServerDeployment() { func ExampleGameServerDeploymentsClient_GetGameServerDeploymentRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +212,11 @@ func ExampleGameServerDeploymentsClient_GetGameServerDeploymentRollout() { func ExampleGameServerDeploymentsClient_UpdateGameServerDeploymentRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleGameServerDeploymentsClient_UpdateGameServerDeploymentRollout() { func ExampleGameServerDeploymentsClient_PreviewGameServerDeploymentRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +267,11 @@ func ExampleGameServerDeploymentsClient_PreviewGameServerDeploymentRollout() { func ExampleGameServerDeploymentsClient_FetchDeploymentState() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gaming/apiv1beta/realms_client.go b/gaming/apiv1beta/realms_client.go index f75c2db1d64..b4ca242ee23 100644 --- a/gaming/apiv1beta/realms_client.go +++ b/gaming/apiv1beta/realms_client.go @@ -154,7 +154,8 @@ func (c *RealmsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RealmsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -284,7 +285,8 @@ func NewRealmsClient(ctx context.Context, opts ...option.ClientOption) (*RealmsC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *realmsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gaming/apiv1beta/realms_client_example_test.go b/gaming/apiv1beta/realms_client_example_test.go index e6553509b95..f084e77af43 100644 --- a/gaming/apiv1beta/realms_client_example_test.go +++ b/gaming/apiv1beta/realms_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRealmsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRealmsClient() { func ExampleRealmsClient_ListRealms() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleRealmsClient_ListRealms() { func ExampleRealmsClient_GetRealm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleRealmsClient_GetRealm() { func ExampleRealmsClient_CreateRealm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleRealmsClient_CreateRealm() { func ExampleRealmsClient_DeleteRealm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleRealmsClient_DeleteRealm() { func ExampleRealmsClient_UpdateRealm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleRealmsClient_UpdateRealm() { func ExampleRealmsClient_PreviewRealmUpdate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gaming/go.mod b/gaming/go.mod index 1f603a77473..71f908cb0e5 100644 --- a/gaming/go.mod +++ b/gaming/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/gaming/go.sum b/gaming/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/gaming/go.sum +++ b/gaming/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/gkebackup/apiv1/backup_forgke_client.go b/gkebackup/apiv1/backup_forgke_client.go index 994b723a930..751fa03d03a 100644 --- a/gkebackup/apiv1/backup_forgke_client.go +++ b/gkebackup/apiv1/backup_forgke_client.go @@ -307,7 +307,8 @@ func (c *BackupForGKEClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *BackupForGKEClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -581,7 +582,8 @@ func NewBackupForGKEClient(ctx context.Context, opts ...option.ClientOption) (*B // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *backupForGKEGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gkebackup/apiv1/backup_forgke_client_example_test.go b/gkebackup/apiv1/backup_forgke_client_example_test.go index d9249f147a5..b01c0a7244a 100644 --- a/gkebackup/apiv1/backup_forgke_client_example_test.go +++ b/gkebackup/apiv1/backup_forgke_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewBackupForGKEClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewBackupForGKEClient() { func ExampleBackupForGKEClient_CreateBackupPlan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleBackupForGKEClient_CreateBackupPlan() { func ExampleBackupForGKEClient_ListBackupPlans() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +104,11 @@ func ExampleBackupForGKEClient_ListBackupPlans() { func ExampleBackupForGKEClient_GetBackupPlan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleBackupForGKEClient_GetBackupPlan() { func ExampleBackupForGKEClient_UpdateBackupPlan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleBackupForGKEClient_UpdateBackupPlan() { func ExampleBackupForGKEClient_DeleteBackupPlan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleBackupForGKEClient_DeleteBackupPlan() { func ExampleBackupForGKEClient_CreateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleBackupForGKEClient_CreateBackup() { func ExampleBackupForGKEClient_ListBackups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +248,11 @@ func ExampleBackupForGKEClient_ListBackups() { func ExampleBackupForGKEClient_GetBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleBackupForGKEClient_GetBackup() { func ExampleBackupForGKEClient_UpdateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleBackupForGKEClient_UpdateBackup() { func ExampleBackupForGKEClient_DeleteBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleBackupForGKEClient_DeleteBackup() { func ExampleBackupForGKEClient_ListVolumeBackups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +362,11 @@ func ExampleBackupForGKEClient_ListVolumeBackups() { func ExampleBackupForGKEClient_GetVolumeBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +387,11 @@ func ExampleBackupForGKEClient_GetVolumeBackup() { func ExampleBackupForGKEClient_CreateRestorePlan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +417,11 @@ func ExampleBackupForGKEClient_CreateRestorePlan() { func ExampleBackupForGKEClient_ListRestorePlans() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -373,6 +448,11 @@ func ExampleBackupForGKEClient_ListRestorePlans() { func ExampleBackupForGKEClient_GetRestorePlan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -393,6 +473,11 @@ func ExampleBackupForGKEClient_GetRestorePlan() { func ExampleBackupForGKEClient_UpdateRestorePlan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +503,11 @@ func ExampleBackupForGKEClient_UpdateRestorePlan() { func ExampleBackupForGKEClient_DeleteRestorePlan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -441,6 +531,11 @@ func ExampleBackupForGKEClient_DeleteRestorePlan() { func ExampleBackupForGKEClient_CreateRestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -466,6 +561,11 @@ func ExampleBackupForGKEClient_CreateRestore() { func ExampleBackupForGKEClient_ListRestores() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -492,6 +592,11 @@ func ExampleBackupForGKEClient_ListRestores() { func ExampleBackupForGKEClient_GetRestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -512,6 +617,11 @@ func ExampleBackupForGKEClient_GetRestore() { func ExampleBackupForGKEClient_UpdateRestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -537,6 +647,11 @@ func ExampleBackupForGKEClient_UpdateRestore() { func ExampleBackupForGKEClient_DeleteRestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -560,6 +675,11 @@ func ExampleBackupForGKEClient_DeleteRestore() { func ExampleBackupForGKEClient_ListVolumeRestores() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. @@ -586,6 +706,11 @@ func ExampleBackupForGKEClient_ListVolumeRestores() { func ExampleBackupForGKEClient_GetVolumeRestore() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gkebackup/apiv1/doc.go b/gkebackup/apiv1/doc.go index 5cea49f093c..a4037a4e498 100644 --- a/gkebackup/apiv1/doc.go +++ b/gkebackup/apiv1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gkebackup.NewBackupForGKEClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gkebackup.NewBackupForGKEClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/gkebackup/go.mod b/gkebackup/go.mod index e425b7c2547..bd9c56e9c94 100644 --- a/gkebackup/go.mod +++ b/gkebackup/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/gkebackup/go.sum b/gkebackup/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/gkebackup/go.sum +++ b/gkebackup/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/gkeconnect/gateway/apiv1beta1/doc.go b/gkeconnect/gateway/apiv1beta1/doc.go index 1c28a05b13c..c2d82beb7ae 100644 --- a/gkeconnect/gateway/apiv1beta1/doc.go +++ b/gkeconnect/gateway/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gateway.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gateway.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/gkeconnect/gateway/apiv1beta1/gateway_client.go b/gkeconnect/gateway/apiv1beta1/gateway_client.go index 7ff634d1428..9e4b1d86307 100644 --- a/gkeconnect/gateway/apiv1beta1/gateway_client.go +++ b/gkeconnect/gateway/apiv1beta1/gateway_client.go @@ -108,7 +108,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -202,7 +203,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gkeconnect/gateway/apiv1beta1/gateway_client_example_test.go b/gkeconnect/gateway/apiv1beta1/gateway_client_example_test.go index 9b33c1c7ca6..db427b250b4 100644 --- a/gkeconnect/gateway/apiv1beta1/gateway_client_example_test.go +++ b/gkeconnect/gateway/apiv1beta1/gateway_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_GetResource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleClient_GetResource() { func ExampleClient_PostResource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_PostResource() { func ExampleClient_DeleteResource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleClient_DeleteResource() { func ExampleClient_PutResource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleClient_PutResource() { func ExampleClient_PatchResource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gkeconnect/go.mod b/gkeconnect/go.mod index 4d08b3737b3..88f2e47f605 100644 --- a/gkeconnect/go.mod +++ b/gkeconnect/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 ) @@ -16,9 +16,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.28.1 // indirect diff --git a/gkeconnect/go.sum b/gkeconnect/go.sum index 543863e1315..b56eeb96012 100644 --- a/gkeconnect/go.sum +++ b/gkeconnect/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/gkehub/apiv1beta1/doc.go b/gkehub/apiv1beta1/doc.go index 075386892bc..82ba0157335 100644 --- a/gkehub/apiv1beta1/doc.go +++ b/gkehub/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gkehub.NewGkeHubMembershipClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gkehub.NewGkeHubMembershipClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/gkehub/apiv1beta1/gke_hub_membership_client.go b/gkehub/apiv1beta1/gke_hub_membership_client.go index 662bb36f6a6..76b5124b19e 100644 --- a/gkehub/apiv1beta1/gke_hub_membership_client.go +++ b/gkehub/apiv1beta1/gke_hub_membership_client.go @@ -345,7 +345,8 @@ func (c *GkeHubMembershipClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GkeHubMembershipClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -579,7 +580,8 @@ func NewGkeHubMembershipClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gkeHubMembershipGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -685,7 +687,7 @@ func (c *gkeHubMembershipRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *gkeHubMembershipRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1404,8 +1406,12 @@ func (c *gkeHubMembershipRESTClient) UpdateMembership(ctx context.Context, req * if req.GetRequestId() != "" { params.Add("requestId", fmt.Sprintf("%v", req.GetRequestId())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/gkehub/apiv1beta1/gke_hub_membership_client_example_test.go b/gkehub/apiv1beta1/gke_hub_membership_client_example_test.go index e9f6a1abc2d..7d436ded29b 100644 --- a/gkehub/apiv1beta1/gke_hub_membership_client_example_test.go +++ b/gkehub/apiv1beta1/gke_hub_membership_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewGkeHubMembershipClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewGkeHubMembershipClient() { func ExampleNewGkeHubMembershipRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -53,6 +63,11 @@ func ExampleNewGkeHubMembershipRESTClient() { func ExampleGkeHubMembershipClient_ListMemberships() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleGkeHubMembershipClient_ListMemberships() { func ExampleGkeHubMembershipClient_GetMembership() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleGkeHubMembershipClient_GetMembership() { func ExampleGkeHubMembershipClient_CreateMembership() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleGkeHubMembershipClient_CreateMembership() { func ExampleGkeHubMembershipClient_DeleteMembership() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -147,6 +177,11 @@ func ExampleGkeHubMembershipClient_DeleteMembership() { func ExampleGkeHubMembershipClient_UpdateMembership() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleGkeHubMembershipClient_UpdateMembership() { func ExampleGkeHubMembershipClient_GenerateConnectManifest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleGkeHubMembershipClient_GenerateConnectManifest() { func ExampleGkeHubMembershipClient_ValidateExclusivity() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleGkeHubMembershipClient_ValidateExclusivity() { func ExampleGkeHubMembershipClient_GenerateExclusivityManifest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +282,11 @@ func ExampleGkeHubMembershipClient_GenerateExclusivityManifest() { func ExampleGkeHubMembershipClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -252,6 +307,11 @@ func ExampleGkeHubMembershipClient_GetLocation() { func ExampleGkeHubMembershipClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +338,11 @@ func ExampleGkeHubMembershipClient_ListLocations() { func ExampleGkeHubMembershipClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -298,6 +363,11 @@ func ExampleGkeHubMembershipClient_GetIamPolicy() { func ExampleGkeHubMembershipClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +388,11 @@ func ExampleGkeHubMembershipClient_SetIamPolicy() { func ExampleGkeHubMembershipClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -338,6 +413,11 @@ func ExampleGkeHubMembershipClient_TestIamPermissions() { func ExampleGkeHubMembershipClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -356,6 +436,11 @@ func ExampleGkeHubMembershipClient_CancelOperation() { func ExampleGkeHubMembershipClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -374,6 +459,11 @@ func ExampleGkeHubMembershipClient_DeleteOperation() { func ExampleGkeHubMembershipClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. @@ -394,6 +484,11 @@ func ExampleGkeHubMembershipClient_GetOperation() { func ExampleGkeHubMembershipClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gkehub/go.mod b/gkehub/go.mod index 92df1b2b322..5b86b032e3b 100644 --- a/gkehub/go.mod +++ b/gkehub/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/gkehub/go.sum b/gkehub/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/gkehub/go.sum +++ b/gkehub/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/gkemulticloud/apiv1/aws_clusters_client.go b/gkemulticloud/apiv1/aws_clusters_client.go index 318312b69e0..bb3995d06fd 100644 --- a/gkemulticloud/apiv1/aws_clusters_client.go +++ b/gkemulticloud/apiv1/aws_clusters_client.go @@ -205,7 +205,8 @@ func (c *AwsClustersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AwsClustersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -405,7 +406,8 @@ func NewAwsClustersClient(ctx context.Context, opts ...option.ClientOption) (*Aw // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *awsClustersGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gkemulticloud/apiv1/aws_clusters_client_example_test.go b/gkemulticloud/apiv1/aws_clusters_client_example_test.go index 4e3b6a2f407..07ce21bb766 100644 --- a/gkemulticloud/apiv1/aws_clusters_client_example_test.go +++ b/gkemulticloud/apiv1/aws_clusters_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAwsClustersClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAwsClustersClient() { func ExampleAwsClustersClient_CreateAwsCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleAwsClustersClient_CreateAwsCluster() { func ExampleAwsClustersClient_UpdateAwsCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -88,6 +103,11 @@ func ExampleAwsClustersClient_UpdateAwsCluster() { func ExampleAwsClustersClient_GetAwsCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -108,6 +128,11 @@ func ExampleAwsClustersClient_GetAwsCluster() { func ExampleAwsClustersClient_ListAwsClusters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleAwsClustersClient_ListAwsClusters() { func ExampleAwsClustersClient_DeleteAwsCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleAwsClustersClient_DeleteAwsCluster() { func ExampleAwsClustersClient_GenerateAwsAccessToken() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +212,11 @@ func ExampleAwsClustersClient_GenerateAwsAccessToken() { func ExampleAwsClustersClient_CreateAwsNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleAwsClustersClient_CreateAwsNodePool() { func ExampleAwsClustersClient_UpdateAwsNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -227,6 +272,11 @@ func ExampleAwsClustersClient_UpdateAwsNodePool() { func ExampleAwsClustersClient_GetAwsNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +297,11 @@ func ExampleAwsClustersClient_GetAwsNodePool() { func ExampleAwsClustersClient_ListAwsNodePools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -273,6 +328,11 @@ func ExampleAwsClustersClient_ListAwsNodePools() { func ExampleAwsClustersClient_DeleteAwsNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -296,6 +356,11 @@ func ExampleAwsClustersClient_DeleteAwsNodePool() { func ExampleAwsClustersClient_GetAwsServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gkemulticloud/apiv1/azure_clusters_client.go b/gkemulticloud/apiv1/azure_clusters_client.go index d3ccac3868f..97bc3c2c3df 100644 --- a/gkemulticloud/apiv1/azure_clusters_client.go +++ b/gkemulticloud/apiv1/azure_clusters_client.go @@ -239,7 +239,8 @@ func (c *AzureClustersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AzureClustersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -488,7 +489,8 @@ func NewAzureClustersClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *azureClustersGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gkemulticloud/apiv1/azure_clusters_client_example_test.go b/gkemulticloud/apiv1/azure_clusters_client_example_test.go index 7fcc29a2b17..03e69ce838f 100644 --- a/gkemulticloud/apiv1/azure_clusters_client_example_test.go +++ b/gkemulticloud/apiv1/azure_clusters_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAzureClustersClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAzureClustersClient() { func ExampleAzureClustersClient_CreateAzureClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleAzureClustersClient_CreateAzureClient() { func ExampleAzureClustersClient_GetAzureClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleAzureClustersClient_GetAzureClient() { func ExampleAzureClustersClient_ListAzureClients() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleAzureClustersClient_ListAzureClients() { func ExampleAzureClustersClient_DeleteAzureClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleAzureClustersClient_DeleteAzureClient() { func ExampleAzureClustersClient_CreateAzureCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleAzureClustersClient_CreateAzureCluster() { func ExampleAzureClustersClient_UpdateAzureCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleAzureClustersClient_UpdateAzureCluster() { func ExampleAzureClustersClient_GetAzureCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleAzureClustersClient_GetAzureCluster() { func ExampleAzureClustersClient_ListAzureClusters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleAzureClustersClient_ListAzureClusters() { func ExampleAzureClustersClient_DeleteAzureCluster() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -251,6 +301,11 @@ func ExampleAzureClustersClient_DeleteAzureCluster() { func ExampleAzureClustersClient_GenerateAzureAccessToken() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleAzureClustersClient_GenerateAzureAccessToken() { func ExampleAzureClustersClient_CreateAzureNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -296,6 +356,11 @@ func ExampleAzureClustersClient_CreateAzureNodePool() { func ExampleAzureClustersClient_UpdateAzureNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +386,11 @@ func ExampleAzureClustersClient_UpdateAzureNodePool() { func ExampleAzureClustersClient_GetAzureNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +411,11 @@ func ExampleAzureClustersClient_GetAzureNodePool() { func ExampleAzureClustersClient_ListAzureNodePools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -367,6 +442,11 @@ func ExampleAzureClustersClient_ListAzureNodePools() { func ExampleAzureClustersClient_DeleteAzureNodePool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. @@ -390,6 +470,11 @@ func ExampleAzureClustersClient_DeleteAzureNodePool() { func ExampleAzureClustersClient_GetAzureServerConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gkemulticloud/apiv1/doc.go b/gkemulticloud/apiv1/doc.go index dbe7af75625..a60364c6318 100644 --- a/gkemulticloud/apiv1/doc.go +++ b/gkemulticloud/apiv1/doc.go @@ -32,6 +32,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gkemulticloud.NewAwsClustersClient(ctx) // if err != nil { // // TODO: Handle error. @@ -47,6 +52,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gkemulticloud.NewAwsClustersClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/gkemulticloud/go.mod b/gkemulticloud/go.mod index 23733fecf68..124e98d035d 100644 --- a/gkemulticloud/go.mod +++ b/gkemulticloud/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/gkemulticloud/go.sum b/gkemulticloud/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/gkemulticloud/go.sum +++ b/gkemulticloud/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/go.mod b/go.mod index 807313e0203..ebe28c25e56 100644 --- a/go.mod +++ b/go.mod @@ -10,9 +10,9 @@ require ( github.com/google/martian/v3 v3.2.1 github.com/googleapis/gax-go/v2 v2.4.0 go.opencensus.io v0.23.0 - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 diff --git a/go.sum b/go.sum index cc0b0ab8aad..145a76d85a0 100644 --- a/go.sum +++ b/go.sum @@ -321,8 +321,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -510,8 +511,8 @@ google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6r google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/grafeas/go.mod b/grafeas/go.mod index 9bf9136ed1c..5152806cf56 100644 --- a/grafeas/go.mod +++ b/grafeas/go.mod @@ -6,8 +6,8 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 ) @@ -17,9 +17,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.28.1 // indirect diff --git a/grafeas/go.sum b/grafeas/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/grafeas/go.sum +++ b/grafeas/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/gsuiteaddons/apiv1/doc.go b/gsuiteaddons/apiv1/doc.go index 74aa5f6164d..13ea90c06fa 100644 --- a/gsuiteaddons/apiv1/doc.go +++ b/gsuiteaddons/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gsuiteaddons.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := gsuiteaddons.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/gsuiteaddons/apiv1/g_suite_add_ons_client.go b/gsuiteaddons/apiv1/g_suite_add_ons_client.go index 8f35d7f2491..8e1cffa3183 100644 --- a/gsuiteaddons/apiv1/g_suite_add_ons_client.go +++ b/gsuiteaddons/apiv1/g_suite_add_ons_client.go @@ -214,7 +214,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -355,7 +356,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/gsuiteaddons/apiv1/g_suite_add_ons_client_example_test.go b/gsuiteaddons/apiv1/g_suite_add_ons_client_example_test.go index c3b918ac6fc..2cb21547bc2 100644 --- a/gsuiteaddons/apiv1/g_suite_add_ons_client_example_test.go +++ b/gsuiteaddons/apiv1/g_suite_add_ons_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_GetAuthorization() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_GetAuthorization() { func ExampleClient_CreateDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_CreateDeployment() { func ExampleClient_ReplaceDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleClient_ReplaceDeployment() { func ExampleClient_GetDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleClient_GetDeployment() { func ExampleClient_ListDeployments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleClient_ListDeployments() { func ExampleClient_DeleteDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_DeleteDeployment() { func ExampleClient_InstallDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +220,11 @@ func ExampleClient_InstallDeployment() { func ExampleClient_UninstallDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -198,6 +243,11 @@ func ExampleClient_UninstallDeployment() { func ExampleClient_GetInstallStatus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/gsuiteaddons/go.mod b/gsuiteaddons/go.mod index 9259e2fe875..6c727c5bed5 100644 --- a/gsuiteaddons/go.mod +++ b/gsuiteaddons/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -17,9 +17,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/gsuiteaddons/go.sum b/gsuiteaddons/go.sum index 543863e1315..b56eeb96012 100644 --- a/gsuiteaddons/go.sum +++ b/gsuiteaddons/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/iam/apiv2/doc.go b/iam/apiv2/doc.go index a3481ae2a60..ed6983fa91b 100644 --- a/iam/apiv2/doc.go +++ b/iam/apiv2/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := iam.NewPoliciesClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := iam.NewPoliciesClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/iam/apiv2/policies_client.go b/iam/apiv2/policies_client.go index 0ec07e59aa3..a6a011710cc 100644 --- a/iam/apiv2/policies_client.go +++ b/iam/apiv2/policies_client.go @@ -176,7 +176,8 @@ func (c *PoliciesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PoliciesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -339,7 +340,8 @@ func NewPoliciesClient(ctx context.Context, opts ...option.ClientOption) (*Polic // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *policiesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/iam/apiv2/policies_client_example_test.go b/iam/apiv2/policies_client_example_test.go index 00c0c78020b..94adda28838 100644 --- a/iam/apiv2/policies_client_example_test.go +++ b/iam/apiv2/policies_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewPoliciesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iam.NewPoliciesClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewPoliciesClient() { func ExamplePoliciesClient_ListPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iam.NewPoliciesClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExamplePoliciesClient_ListPolicies() { func ExamplePoliciesClient_GetPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iam.NewPoliciesClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExamplePoliciesClient_GetPolicy() { func ExamplePoliciesClient_CreatePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iam.NewPoliciesClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExamplePoliciesClient_CreatePolicy() { func ExamplePoliciesClient_UpdatePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iam.NewPoliciesClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExamplePoliciesClient_UpdatePolicy() { func ExamplePoliciesClient_DeletePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iam.NewPoliciesClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExamplePoliciesClient_DeletePolicy() { func ExamplePoliciesClient_ListApplicablePolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iam.NewPoliciesClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +221,11 @@ func ExamplePoliciesClient_ListApplicablePolicies() { func ExamplePoliciesClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iam.NewPoliciesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/iam/credentials/apiv1/doc.go b/iam/credentials/apiv1/doc.go index d29ae4cc825..71930417092 100644 --- a/iam/credentials/apiv1/doc.go +++ b/iam/credentials/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := credentials.NewIamCredentialsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := credentials.NewIamCredentialsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/iam/credentials/apiv1/iam_credentials_client.go b/iam/credentials/apiv1/iam_credentials_client.go index 1c498128472..bbc6316bc0a 100644 --- a/iam/credentials/apiv1/iam_credentials_client.go +++ b/iam/credentials/apiv1/iam_credentials_client.go @@ -156,7 +156,8 @@ func (c *IamCredentialsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IamCredentialsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -249,7 +250,8 @@ func NewIamCredentialsClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *iamCredentialsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/iam/credentials/apiv1/iam_credentials_client_example_test.go b/iam/credentials/apiv1/iam_credentials_client_example_test.go index 03119580df6..9d30f155591 100644 --- a/iam/credentials/apiv1/iam_credentials_client_example_test.go +++ b/iam/credentials/apiv1/iam_credentials_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewIamCredentialsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewIamCredentialsClient() { func ExampleIamCredentialsClient_GenerateAccessToken() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleIamCredentialsClient_GenerateAccessToken() { func ExampleIamCredentialsClient_GenerateIdToken() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleIamCredentialsClient_GenerateIdToken() { func ExampleIamCredentialsClient_SignBlob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleIamCredentialsClient_SignBlob() { func ExampleIamCredentialsClient_SignJwt() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/iam/go.mod b/iam/go.mod index e757e7681f3..8cacc576e82 100644 --- a/iam/go.mod +++ b/iam/go.mod @@ -6,9 +6,10 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 - google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220909194730-69f6226f97e5 google.golang.org/grpc v1.48.0 + google.golang.org/protobuf v1.28.1 ) require ( @@ -18,9 +19,8 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/iam/go.sum b/iam/go.sum index 9cae71363a9..bec5f93ef0f 100644 --- a/iam/go.sum +++ b/iam/go.sum @@ -30,6 +30,7 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -50,6 +51,7 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -313,8 +315,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +503,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -589,8 +594,9 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 h1:hw4Y42zL1VyVKxPgRHHh191fpVBGV8sNVmcow5Z8VXY= google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220909194730-69f6226f97e5 h1:ngtP8S8JkBWfJACT9cmj5eTkS9tIWPQI5leBz/7Bq/c= +google.golang.org/genproto v0.0.0-20220909194730-69f6226f97e5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/iap/apiv1/doc.go b/iap/apiv1/doc.go index cfef9131ebc..155383a67b6 100644 --- a/iap/apiv1/doc.go +++ b/iap/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := iap.NewIdentityAwareProxyAdminClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := iap.NewIdentityAwareProxyAdminClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/iap/apiv1/identity_aware_proxy_admin_client.go b/iap/apiv1/identity_aware_proxy_admin_client.go index 27249a1f275..23229deb066 100644 --- a/iap/apiv1/identity_aware_proxy_admin_client.go +++ b/iap/apiv1/identity_aware_proxy_admin_client.go @@ -124,7 +124,8 @@ func (c *IdentityAwareProxyAdminClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IdentityAwareProxyAdminClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -251,7 +252,8 @@ func NewIdentityAwareProxyAdminClient(ctx context.Context, opts ...option.Client // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *identityAwareProxyAdminGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/iap/apiv1/identity_aware_proxy_admin_client_example_test.go b/iap/apiv1/identity_aware_proxy_admin_client_example_test.go index 59d76ce2651..cd4e12e51a0 100644 --- a/iap/apiv1/identity_aware_proxy_admin_client_example_test.go +++ b/iap/apiv1/identity_aware_proxy_admin_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewIdentityAwareProxyAdminClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewIdentityAwareProxyAdminClient() { func ExampleIdentityAwareProxyAdminClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleIdentityAwareProxyAdminClient_SetIamPolicy() { func ExampleIdentityAwareProxyAdminClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleIdentityAwareProxyAdminClient_GetIamPolicy() { func ExampleIdentityAwareProxyAdminClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleIdentityAwareProxyAdminClient_TestIamPermissions() { func ExampleIdentityAwareProxyAdminClient_GetIapSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -119,6 +144,11 @@ func ExampleIdentityAwareProxyAdminClient_GetIapSettings() { func ExampleIdentityAwareProxyAdminClient_UpdateIapSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -139,6 +169,11 @@ func ExampleIdentityAwareProxyAdminClient_UpdateIapSettings() { func ExampleIdentityAwareProxyAdminClient_ListTunnelDestGroups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -165,6 +200,11 @@ func ExampleIdentityAwareProxyAdminClient_ListTunnelDestGroups() { func ExampleIdentityAwareProxyAdminClient_CreateTunnelDestGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -185,6 +225,11 @@ func ExampleIdentityAwareProxyAdminClient_CreateTunnelDestGroup() { func ExampleIdentityAwareProxyAdminClient_GetTunnelDestGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -205,6 +250,11 @@ func ExampleIdentityAwareProxyAdminClient_GetTunnelDestGroup() { func ExampleIdentityAwareProxyAdminClient_DeleteTunnelDestGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleIdentityAwareProxyAdminClient_DeleteTunnelDestGroup() { func ExampleIdentityAwareProxyAdminClient_UpdateTunnelDestGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/iap/apiv1/identity_aware_proxyo_auth_client.go b/iap/apiv1/identity_aware_proxyo_auth_client.go index 41997d3f77e..1684bc2a124 100644 --- a/iap/apiv1/identity_aware_proxyo_auth_client.go +++ b/iap/apiv1/identity_aware_proxyo_auth_client.go @@ -119,7 +119,8 @@ func (c *IdentityAwareProxyOAuthClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IdentityAwareProxyOAuthClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -239,7 +240,8 @@ func NewIdentityAwareProxyOAuthClient(ctx context.Context, opts ...option.Client // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *identityAwareProxyOAuthGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/iap/apiv1/identity_aware_proxyo_auth_client_example_test.go b/iap/apiv1/identity_aware_proxyo_auth_client_example_test.go index a41530a9255..43f6aad3a52 100644 --- a/iap/apiv1/identity_aware_proxyo_auth_client_example_test.go +++ b/iap/apiv1/identity_aware_proxyo_auth_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewIdentityAwareProxyOAuthClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewIdentityAwareProxyOAuthClient() { func ExampleIdentityAwareProxyOAuthClient_ListBrands() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleIdentityAwareProxyOAuthClient_ListBrands() { func ExampleIdentityAwareProxyOAuthClient_CreateBrand() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleIdentityAwareProxyOAuthClient_CreateBrand() { func ExampleIdentityAwareProxyOAuthClient_GetBrand() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleIdentityAwareProxyOAuthClient_GetBrand() { func ExampleIdentityAwareProxyOAuthClient_CreateIdentityAwareProxyClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleIdentityAwareProxyOAuthClient_CreateIdentityAwareProxyClient() { func ExampleIdentityAwareProxyOAuthClient_ListIdentityAwareProxyClients() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleIdentityAwareProxyOAuthClient_ListIdentityAwareProxyClients() { func ExampleIdentityAwareProxyOAuthClient_GetIdentityAwareProxyClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleIdentityAwareProxyOAuthClient_GetIdentityAwareProxyClient() { func ExampleIdentityAwareProxyOAuthClient_ResetIdentityAwareProxyClientSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +224,11 @@ func ExampleIdentityAwareProxyOAuthClient_ResetIdentityAwareProxyClientSecret() func ExampleIdentityAwareProxyOAuthClient_DeleteIdentityAwareProxyClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. diff --git a/iap/go.mod b/iap/go.mod index ed11e25573c..1da03f88785 100644 --- a/iap/go.mod +++ b/iap/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/iap/go.sum b/iap/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/iap/go.sum +++ b/iap/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/ids/apiv1/doc.go b/ids/apiv1/doc.go index 78d5d5ec49f..facd0b84800 100644 --- a/ids/apiv1/doc.go +++ b/ids/apiv1/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := ids.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := ids.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/ids/apiv1/ids_client.go b/ids/apiv1/ids_client.go index c0b20c9fda5..15be46afac4 100644 --- a/ids/apiv1/ids_client.go +++ b/ids/apiv1/ids_client.go @@ -136,7 +136,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -249,7 +250,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/ids/apiv1/ids_client_example_test.go b/ids/apiv1/ids_client_example_test.go index 2f8c81309b0..af0b4d30a58 100644 --- a/ids/apiv1/ids_client_example_test.go +++ b/ids/apiv1/ids_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListEndpoints() { func ExampleClient_GetEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetEndpoint() { func ExampleClient_CreateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_CreateEndpoint() { func ExampleClient_DeleteEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/ids/go.mod b/ids/go.mod index 72971eb8987..7fe1e79330b 100644 --- a/ids/go.mod +++ b/ids/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/ids/go.sum b/ids/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/ids/go.sum +++ b/ids/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/internal/aliasgen/go.mod b/internal/aliasgen/go.mod index fbb87085ebf..19e614685aa 100644 --- a/internal/aliasgen/go.mod +++ b/internal/aliasgen/go.mod @@ -3,7 +3,7 @@ module cloud.google.com/go/internal/aliasgen go 1.19 require ( - github.com/google/go-cmp v0.5.6 + github.com/google/go-cmp v0.5.8 golang.org/x/tools v0.1.12 google.golang.org/grpc v1.48.0 ) @@ -14,6 +14,6 @@ require ( golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect golang.org/x/text v0.3.7 // indirect - google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect - google.golang.org/protobuf v1.27.1 // indirect + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f // indirect + google.golang.org/protobuf v1.28.0 // indirect ) diff --git a/internal/aliasgen/go.sum b/internal/aliasgen/go.sum index dceb7a39fa2..556360fbec8 100644 --- a/internal/aliasgen/go.sum +++ b/internal/aliasgen/go.sum @@ -41,8 +41,9 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -68,6 +69,7 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -81,11 +83,16 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -96,21 +103,22 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.48.0 h1:rQOsyJ/8+ufEDJd/Gdsz7HG220Mh9HAhFHRGnIjda0w= google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= @@ -124,8 +132,9 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/internal/examples/fake/go.mod b/internal/examples/fake/go.mod index bce9b99f9e7..9f23b9e9f22 100644 --- a/internal/examples/fake/go.mod +++ b/internal/examples/fake/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( cloud.google.com/go/translate v1.2.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 ) @@ -18,9 +18,9 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect github.com/googleapis/gax-go/v2 v2.4.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.28.1 // indirect diff --git a/internal/examples/fake/go.sum b/internal/examples/fake/go.sum index f9bbdb191e6..7872e417092 100644 --- a/internal/examples/fake/go.sum +++ b/internal/examples/fake/go.sum @@ -163,6 +163,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -291,8 +292,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -312,8 +313,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -384,8 +387,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -498,8 +501,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -586,8 +589,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/internal/examples/mock/go.mod b/internal/examples/mock/go.mod index 7abd14198ca..969a70ea0e4 100644 --- a/internal/examples/mock/go.mod +++ b/internal/examples/mock/go.mod @@ -4,15 +4,15 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f ) require ( github.com/golang/protobuf v1.5.2 // indirect - golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect - google.golang.org/api v0.78.0 // indirect - google.golang.org/grpc v1.46.0 // indirect + google.golang.org/api v0.95.0 // indirect + google.golang.org/grpc v1.47.0 // indirect google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/internal/examples/mock/go.sum b/internal/examples/mock/go.sum index 6e0915c314c..0227302e133 100644 --- a/internal/examples/mock/go.sum +++ b/internal/examples/mock/go.sum @@ -26,8 +26,9 @@ cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+Y cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= -cloud.google.com/go v0.100.2 h1:t9Iw5QH5v4XtlEQaCtUY7x6sCABps8sW0acw7e2WQ6Y= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0 h1:DAq3r8y4mDgyB/ZPJ9v/5VJNqjgJAxTn6ZYLlUywOu8= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -39,8 +40,10 @@ cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJW cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -50,6 +53,7 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -155,6 +159,9 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -163,6 +170,7 @@ github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/Oth github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= github.com/googleapis/gax-go/v2 v2.4.0 h1:dS9eYAjhrE2RjmzYw2XAPvcXfmcQLtFEQWn0CR82awk= github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -276,8 +284,10 @@ golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 h1:HVyaeDAYux4pnY+D/SiwmLOR36ewZ4iGQIIrtnuCjFA= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -297,6 +307,8 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -308,6 +320,7 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/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= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -362,8 +375,12 @@ golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba h1:AyHWHCBVlIYI5rgEM3o+1PLd0sLPcIAoaUckGQMaWtw= golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -435,6 +452,8 @@ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -471,8 +490,11 @@ google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/S google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= -google.golang.org/api v0.78.0 h1:5ewPyCwP43C3i8B6C2Kb+eVAevbnke2xR8VbcSWjS4I= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -519,6 +541,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-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= @@ -552,8 +575,13 @@ google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= -google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3 h1:q1kiSVscqoDeqTF27eQ2NnLLDmqF0I373qQNXYMy0fo= google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -582,8 +610,10 @@ google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9K google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.46.0 h1:oCjezcn6g6A75TGoKYBPgKmVBLexhYLM6MebdrPApP8= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0 h1:9n77onPX5F3qfFCqjy9dhn8PbNQsIKeVU04J9G7umt8= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/internal/gapicgen/go.mod b/internal/gapicgen/go.mod index 7f61e0f70aa..de008567769 100644 --- a/internal/gapicgen/go.mod +++ b/internal/gapicgen/go.mod @@ -9,7 +9,7 @@ require ( cloud.google.com/go/internal/godocfx v0.0.0-20220625055333-3f8d1627b9c2 github.com/google/go-github/v35 v35.3.0 github.com/shurcooL/githubv4 v0.0.0-20220520033151-0b4e3294ff00 - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f google.golang.org/genproto v0.0.0-20220908141613-51c1cc9bc6d0 diff --git a/internal/gapicgen/go.sum b/internal/gapicgen/go.sum index ae7f2f9a221..dedaf5edf56 100644 --- a/internal/gapicgen/go.sum +++ b/internal/gapicgen/go.sum @@ -364,8 +364,8 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/ApproveApprovalRequest/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/ApproveApprovalRequest/main.go index 2e4b86a9de1..a7db131360a 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/ApproveApprovalRequest/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/ApproveApprovalRequest/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/DeleteAccessApprovalSettings/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/DeleteAccessApprovalSettings/main.go index 216ccdd7b51..e62107f5452 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/DeleteAccessApprovalSettings/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/DeleteAccessApprovalSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/DismissApprovalRequest/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/DismissApprovalRequest/main.go index b4be6d5640a..7180f461af6 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/DismissApprovalRequest/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/DismissApprovalRequest/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalServiceAccount/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalServiceAccount/main.go index 26d772551f9..dca4c6bc2c4 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalServiceAccount/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalServiceAccount/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalSettings/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalSettings/main.go index 3c0fe04e5e7..a3fc9a69730 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalSettings/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/GetAccessApprovalSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/GetApprovalRequest/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/GetApprovalRequest/main.go index 1a845d77d08..2488e082e60 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/GetApprovalRequest/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/GetApprovalRequest/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/InvalidateApprovalRequest/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/InvalidateApprovalRequest/main.go index 8f758b440de..0016d051417 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/InvalidateApprovalRequest/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/InvalidateApprovalRequest/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/ListApprovalRequests/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/ListApprovalRequests/main.go index 8c7a3e70f3a..e28842c9f3d 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/ListApprovalRequests/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/ListApprovalRequests/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/Client/UpdateAccessApprovalSettings/main.go b/internal/generated/snippets/accessapproval/apiv1/Client/UpdateAccessApprovalSettings/main.go index 240f101cb54..70f7fe6a991 100644 --- a/internal/generated/snippets/accessapproval/apiv1/Client/UpdateAccessApprovalSettings/main.go +++ b/internal/generated/snippets/accessapproval/apiv1/Client/UpdateAccessApprovalSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accessapproval.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accessapproval/apiv1/snippet_metadata.google.cloud.accessapproval.v1.json b/internal/generated/snippets/accessapproval/apiv1/snippet_metadata.google.cloud.accessapproval.v1.json index bf616d5c1ca..b464e2ec297 100644 --- a/internal/generated/snippets/accessapproval/apiv1/snippet_metadata.google.cloud.accessapproval.v1.json +++ b/internal/generated/snippets/accessapproval/apiv1/snippet_metadata.google.cloud.accessapproval.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/accessapproval/apiv1", - "version": "1.3.0", + "version": "1.3.1", "language": "GO", "apis": [ { @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CommitServicePerimeters/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CommitServicePerimeters/main.go index b6e83f6f79d..267c8417f06 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CommitServicePerimeters/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CommitServicePerimeters/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateAccessLevel/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateAccessLevel/main.go index f0828c0ec0c..e1116b0b138 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateAccessLevel/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateAccessLevel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateAccessPolicy/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateAccessPolicy/main.go index b39608bae07..ed635c0c12b 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateAccessPolicy/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateAccessPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateGcpUserAccessBinding/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateGcpUserAccessBinding/main.go index b4792d2ef29..0506b2461c8 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateGcpUserAccessBinding/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateGcpUserAccessBinding/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateServicePerimeter/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateServicePerimeter/main.go index 08870e96131..7a87f2d9c92 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateServicePerimeter/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/CreateServicePerimeter/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteAccessLevel/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteAccessLevel/main.go index c0348a55e5b..519a0c86151 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteAccessLevel/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteAccessLevel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteAccessPolicy/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteAccessPolicy/main.go index bd92e05c8d6..a9a9f21dc5c 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteAccessPolicy/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteAccessPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteGcpUserAccessBinding/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteGcpUserAccessBinding/main.go index 52f6021f178..22665ee4a3b 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteGcpUserAccessBinding/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteGcpUserAccessBinding/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteServicePerimeter/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteServicePerimeter/main.go index fd910d47141..6d1dcaecf86 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteServicePerimeter/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/DeleteServicePerimeter/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetAccessLevel/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetAccessLevel/main.go index e8c417b0c72..a2fa6a017eb 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetAccessLevel/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetAccessLevel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetAccessPolicy/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetAccessPolicy/main.go index fa7a65129a3..ab0c2a421cf 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetAccessPolicy/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetAccessPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetGcpUserAccessBinding/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetGcpUserAccessBinding/main.go index 6f0a78d6c46..ea8e3b702bb 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetGcpUserAccessBinding/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetGcpUserAccessBinding/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetServicePerimeter/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetServicePerimeter/main.go index 82ca3b6b035..0e943ad7984 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetServicePerimeter/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/GetServicePerimeter/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListAccessLevels/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListAccessLevels/main.go index ab2a630d1b6..561b7e67012 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListAccessLevels/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListAccessLevels/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListAccessPolicies/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListAccessPolicies/main.go index a1f0213df5c..c1720d5e12c 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListAccessPolicies/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListAccessPolicies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListGcpUserAccessBindings/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListGcpUserAccessBindings/main.go index 602926f7f1b..db321f43905 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListGcpUserAccessBindings/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListGcpUserAccessBindings/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListServicePerimeters/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListServicePerimeters/main.go index 28f26315ed1..fe08a807320 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListServicePerimeters/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ListServicePerimeters/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ReplaceAccessLevels/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ReplaceAccessLevels/main.go index f4bfc7a303d..c99e41f4c45 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ReplaceAccessLevels/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ReplaceAccessLevels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ReplaceServicePerimeters/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ReplaceServicePerimeters/main.go index d6b8fa94d0f..daa162ab420 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/ReplaceServicePerimeters/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/ReplaceServicePerimeters/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateAccessLevel/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateAccessLevel/main.go index 9681fbf6f54..6bf4d388411 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateAccessLevel/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateAccessLevel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateAccessPolicy/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateAccessPolicy/main.go index 2c9322ea9ef..2c9a38f56cf 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateAccessPolicy/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateAccessPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateGcpUserAccessBinding/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateGcpUserAccessBinding/main.go index 0d596390f5b..aecb9d6249f 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateGcpUserAccessBinding/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateGcpUserAccessBinding/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateServicePerimeter/main.go b/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateServicePerimeter/main.go index fc925f8e4fe..95c2eb90d80 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateServicePerimeter/main.go +++ b/internal/generated/snippets/accesscontextmanager/apiv1/Client/UpdateServicePerimeter/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := accesscontextmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/accesscontextmanager/apiv1/snippet_metadata.google.identity.accesscontextmanager.v1.json b/internal/generated/snippets/accesscontextmanager/apiv1/snippet_metadata.google.identity.accesscontextmanager.v1.json index 00790b0c56b..1d8200e1fa3 100644 --- a/internal/generated/snippets/accesscontextmanager/apiv1/snippet_metadata.google.identity.accesscontextmanager.v1.json +++ b/internal/generated/snippets/accesscontextmanager/apiv1/snippet_metadata.google.identity.accesscontextmanager.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1018,7 +1018,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1064,7 +1064,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CancelOperation/main.go index aa30d56e637..3581b158c7b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CreateDataset/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CreateDataset/main.go index aa6848b0597..e66516bfbd6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CreateDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/CreateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteDataset/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteDataset/main.go index 8a1d86e2cb1..6f4e302de4d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteOperation/main.go index a14a389bad4..becf5e62b72 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ExportData/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ExportData/main.go index 2d5f8ed57dd..3c1acfbde72 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ExportData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ExportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetAnnotationSpec/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetAnnotationSpec/main.go index 9aa76249929..aea88e40a13 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetAnnotationSpec/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetAnnotationSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetDataset/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetDataset/main.go index 7947738ac87..1def0987140 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetIamPolicy/main.go index 7edf4d06f12..43983782c40 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetLocation/main.go index 82d08c77f1f..f0e2e3258b1 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetOperation/main.go index 72851173512..c0a3ad322f9 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ImportData/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ImportData/main.go index 5876e714c24..c2a6c216ba4 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ImportData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ImportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListAnnotations/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListAnnotations/main.go index 7820f586905..2aa9bdef811 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListAnnotations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListAnnotations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDataItems/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDataItems/main.go index 58fe32594b4..53ffb6fc244 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDataItems/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDataItems/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDatasets/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDatasets/main.go index 3a64a25a8f3..239dbc49ef7 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDatasets/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListDatasets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListLocations/main.go index f3fc5ffb477..a3dfe42756c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListOperations/main.go index ce4d60bf7ca..f728e1484ac 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListSavedQueries/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListSavedQueries/main.go index 61957f7174b..630e19ba01f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListSavedQueries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/ListSavedQueries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/SetIamPolicy/main.go index d9cb1f6fea7..e2be0bfea47 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/TestIamPermissions/main.go index 78bd2ce89b6..b5dcb926ca3 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/UpdateDataset/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/UpdateDataset/main.go index dd2e9be4464..0f5dd420a55 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/UpdateDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/UpdateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/WaitOperation/main.go index 6e10f651853..bcbb8543e45 100644 --- a/internal/generated/snippets/aiplatform/apiv1/DatasetClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/DatasetClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CancelOperation/main.go index e1caaefaefd..a16ddd2407a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CreateEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CreateEndpoint/main.go index e36e03c4271..d1084f90291 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CreateEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/CreateEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteEndpoint/main.go index 3daa09016f0..96c5456c0c5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteOperation/main.go index 5a72ae5369f..2c18c8b858c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeployModel/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeployModel/main.go index 86bf0317294..3669318c6f6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeployModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/DeployModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetEndpoint/main.go index 514017e86ac..59e576ca44b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetIamPolicy/main.go index 6e6a43d0f6e..5f8487d82f4 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetLocation/main.go index 96248bbc00d..24fa93261be 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetOperation/main.go index 55f807f06b0..23ac1cb9fde 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListEndpoints/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListEndpoints/main.go index 1c9a42bd3e2..20b773b854a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListEndpoints/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListEndpoints/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListLocations/main.go index 13396b320c7..1aff33a3e67 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListOperations/main.go index 5de3196c435..a3401ac3dac 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/SetIamPolicy/main.go index c8f6e4882ac..5240325654e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/TestIamPermissions/main.go index 982d60c9a23..3e1aa01b9d3 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UndeployModel/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UndeployModel/main.go index 65c479b9827..af161e3f98f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UndeployModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UndeployModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UpdateEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UpdateEndpoint/main.go index eb77ecba261..90ce4f7b261 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UpdateEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/UpdateEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/WaitOperation/main.go index 479eb35230a..68f0831720c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/EndpointClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/EndpointClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/BatchCreateFeatures/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/BatchCreateFeatures/main.go index 696eb012ee7..4fe6895feae 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/BatchCreateFeatures/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/BatchCreateFeatures/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/BatchReadFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/BatchReadFeatureValues/main.go index fc9c5097186..83ef0e8347f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/BatchReadFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/BatchReadFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CancelOperation/main.go index 67e98a5a90c..88812c81d96 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateEntityType/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateEntityType/main.go index 814174d4844..626129f1750 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateEntityType/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateFeature/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateFeature/main.go index 25c66bcfe15..2c7774f0873 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateFeature/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateFeature/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateFeaturestore/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateFeaturestore/main.go index d8bc40f0992..4c59815c2eb 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateFeaturestore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/CreateFeaturestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteEntityType/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteEntityType/main.go index 45435ccbf08..a0ba47c2d7a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteFeature/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteFeature/main.go index 5f9f0ad2b82..f2fa376bc88 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteFeature/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteFeature/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteFeaturestore/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteFeaturestore/main.go index c875535b1d6..675e2d8320e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteFeaturestore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteFeaturestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteOperation/main.go index 1a1dff1873d..9aa0826e1c5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ExportFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ExportFeatureValues/main.go index 7511fd3e0d1..7e092d1a85e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ExportFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ExportFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetEntityType/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetEntityType/main.go index 331f9e00767..a6f4f1f11f8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetEntityType/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetFeature/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetFeature/main.go index 59184658a9d..3c3c2812c5e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetFeature/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetFeature/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetFeaturestore/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetFeaturestore/main.go index 2da7658aa87..a09f2515f2e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetFeaturestore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetFeaturestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetIamPolicy/main.go index 213c66b5546..a76ac8b2727 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetLocation/main.go index 6a04e4ee2ab..29380b59ee4 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetOperation/main.go index 84793845237..7af8046df85 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ImportFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ImportFeatureValues/main.go index 0e41ba1999f..dc3c71a4cca 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ImportFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ImportFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListEntityTypes/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListEntityTypes/main.go index 05775174cb1..dcb8c030d75 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListFeatures/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListFeatures/main.go index 40284fb590d..06bf097a46c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListFeatures/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListFeatures/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListFeaturestores/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListFeaturestores/main.go index f6c91749e21..3da7fc47a8a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListFeaturestores/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListFeaturestores/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListLocations/main.go index d8b04242294..40b9caf0885 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListOperations/main.go index b2eef9d99f9..3d8495f8346 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/SearchFeatures/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/SearchFeatures/main.go index d50b3bbdbce..8799f138f0e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/SearchFeatures/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/SearchFeatures/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/SetIamPolicy/main.go index c27734d0ba1..788c423980b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/TestIamPermissions/main.go index 43e5037d214..f7e148f4440 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateEntityType/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateEntityType/main.go index c6226ed5888..5a817b8c91f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateFeature/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateFeature/main.go index 2a150d4c417..64878458efe 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateFeature/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateFeature/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateFeaturestore/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateFeaturestore/main.go index b670f9784dc..9de68ef8dc2 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateFeaturestore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/UpdateFeaturestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/WaitOperation/main.go index b34eca81503..03b26d75e95 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/CancelOperation/main.go index 60a7f35c778..d96288940b7 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/DeleteOperation/main.go index 12b06e4429a..850adc393b6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetIamPolicy/main.go index 6d5714a50e1..b80ce46248f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetLocation/main.go index f80f52f2ea1..9f66a9d1d8d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetOperation/main.go index 7c846d5a62c..49f2e21be5f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ListLocations/main.go index b558944a71f..71691863500 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ListOperations/main.go index b00ac61cdd7..8e92fe954c2 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ReadFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ReadFeatureValues/main.go index 32ce2884542..202b96261de 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ReadFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/ReadFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/SetIamPolicy/main.go index c107dd3c812..f606ede19b2 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/TestIamPermissions/main.go index 77809ff46f9..555a3b32908 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/WaitOperation/main.go index c8f0fe22dc5..7e49572bfe8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/FeaturestoreOnlineServingClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/CancelOperation/main.go index 72882dadf80..816783f4a6d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/CreateIndex/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/CreateIndex/main.go index 6563e1e0fe5..63154794ab6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/CreateIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/CreateIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/DeleteIndex/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/DeleteIndex/main.go index 584a523fdc2..6d0082a5d00 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/DeleteIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/DeleteIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/DeleteOperation/main.go index 368d7c8d9f7..d0916949d99 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetIamPolicy/main.go index ea9f156f7d7..666872ebe8c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetIndex/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetIndex/main.go index fa1bd3a8154..9107164c506 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetLocation/main.go index 64bde00809e..d58a40a08e9 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetOperation/main.go index ad43a8090a5..d8877bb999d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListIndexes/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListIndexes/main.go index 576fea11405..30e44195f5d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListIndexes/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListIndexes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListLocations/main.go index b6dff1faa9c..8580f776570 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListOperations/main.go index 6e6ba529218..e7a638e6860 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/RemoveDatapoints/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/RemoveDatapoints/main.go index a26c40df19b..b05222e6adf 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/RemoveDatapoints/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/RemoveDatapoints/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/SetIamPolicy/main.go index 810970a3493..142cab3d8c0 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/TestIamPermissions/main.go index 426ff3dcee3..a86f5e1f57b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/UpdateIndex/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/UpdateIndex/main.go index 10d2a035caf..ee336d9a966 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/UpdateIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/UpdateIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/UpsertDatapoints/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/UpsertDatapoints/main.go index 47a80f0fdcd..e17cc7cc5a1 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/UpsertDatapoints/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/UpsertDatapoints/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexClient/WaitOperation/main.go index 6b4a5bf8524..fd96122b427 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/CancelOperation/main.go index 393b32b0e6f..07e25e7d06d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/CreateIndexEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/CreateIndexEndpoint/main.go index e055f0b44fc..ce90ceffb39 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/CreateIndexEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/CreateIndexEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeleteIndexEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeleteIndexEndpoint/main.go index 59e6cc2c3f5..2aacd3b52cb 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeleteIndexEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeleteIndexEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeleteOperation/main.go index ef73ef3f8e8..f04c0687a87 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeployIndex/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeployIndex/main.go index dc995c9505d..3bc95e1f92f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeployIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/DeployIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetIamPolicy/main.go index 66e35c22b9d..280231dce00 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetIndexEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetIndexEndpoint/main.go index b6011c8e259..86290b0a434 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetIndexEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetIndexEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetLocation/main.go index d718df91071..d4d6fb9858d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetOperation/main.go index 072fe83fe1c..c2b8343e1fa 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListIndexEndpoints/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListIndexEndpoints/main.go index 5b52ec73cb2..18ddf4cd0b9 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListIndexEndpoints/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListIndexEndpoints/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListLocations/main.go index c48defe1c8a..f7e06760a33 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListOperations/main.go index a4621b793bc..6bf9195f991 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/MutateDeployedIndex/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/MutateDeployedIndex/main.go index 91e2f16e3c3..dcd6bcbd52d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/MutateDeployedIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/MutateDeployedIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/SetIamPolicy/main.go index 76c61d259e3..5204992869c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/TestIamPermissions/main.go index 521a62a48f0..19b1aa5acb5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/UndeployIndex/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/UndeployIndex/main.go index 9071e2a9b3f..cfd511e896b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/UndeployIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/UndeployIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/UpdateIndexEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/UpdateIndexEndpoint/main.go index a2f61bb61a0..e310a84208c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/UpdateIndexEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/UpdateIndexEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/WaitOperation/main.go index 56b2b5f2fdc..8cc3568475b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/IndexEndpointClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelBatchPredictionJob/main.go index 7e98c035205..2d7e811a3bc 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelBatchPredictionJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelBatchPredictionJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelCustomJob/main.go index 835bb8174db..f52c7c0094e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelCustomJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelCustomJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelDataLabelingJob/main.go index 209f6d5aa29..61eebef6ddc 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelDataLabelingJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelDataLabelingJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelHyperparameterTuningJob/main.go index 780f313c520..77dfa8278aa 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelHyperparameterTuningJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelHyperparameterTuningJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelOperation/main.go index 721cd13f8d0..4992b7d810d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateBatchPredictionJob/main.go index 2a8b65fbefc..35fd48cba19 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateBatchPredictionJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateBatchPredictionJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateCustomJob/main.go index c076661ca8b..cf4df885fd5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateCustomJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateCustomJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateDataLabelingJob/main.go index f48db118462..24e89a27002 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateDataLabelingJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateDataLabelingJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateHyperparameterTuningJob/main.go index 2d9b783c0cc..0781c556b86 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateHyperparameterTuningJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateHyperparameterTuningJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateModelDeploymentMonitoringJob/main.go index 7a328c1b792..90c5b411303 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/CreateModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteBatchPredictionJob/main.go index 0bfc5ed94f7..2d6ea3641f8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteBatchPredictionJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteBatchPredictionJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteCustomJob/main.go index fd67e11f714..8bf26643214 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteCustomJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteCustomJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteDataLabelingJob/main.go index 2526ebcf2bd..394ccbe5f40 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteDataLabelingJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteDataLabelingJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteHyperparameterTuningJob/main.go index 16874c3e39d..932aca5ce5c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteHyperparameterTuningJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteHyperparameterTuningJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteModelDeploymentMonitoringJob/main.go index 7efe87556af..837883bd36f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteOperation/main.go index 49f8d8f085e..9e260f576ef 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetBatchPredictionJob/main.go index 8556453421e..3854af4ff61 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetBatchPredictionJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetBatchPredictionJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetCustomJob/main.go index 65e75ea02b3..056196c6444 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetCustomJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetCustomJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetDataLabelingJob/main.go index 842ee20c0d5..11c58a7c848 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetDataLabelingJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetDataLabelingJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetHyperparameterTuningJob/main.go index 4a793b49f32..a8cdfb89949 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetHyperparameterTuningJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetHyperparameterTuningJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetIamPolicy/main.go index 6d2fa8cf61a..3faf445c511 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetLocation/main.go index 10809868ef9..876ede9daa6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetModelDeploymentMonitoringJob/main.go index 114d80c2962..b46c73eae9b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetOperation/main.go index 347d499d29f..8e8acdebfa9 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListBatchPredictionJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListBatchPredictionJobs/main.go index 3bdde93c292..dedcb1e5f4b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListBatchPredictionJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListBatchPredictionJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListCustomJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListCustomJobs/main.go index 057edeef91a..07292a132f0 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListCustomJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListCustomJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListDataLabelingJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListDataLabelingJobs/main.go index d092bfbabd3..a61d1e4c4f9 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListDataLabelingJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListDataLabelingJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListHyperparameterTuningJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListHyperparameterTuningJobs/main.go index a084f1a00db..c4c5882c54a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListHyperparameterTuningJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListHyperparameterTuningJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListLocations/main.go index 5325f6f702e..e4c8a960968 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListModelDeploymentMonitoringJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListModelDeploymentMonitoringJobs/main.go index ab4ee6a2347..46ff832f0a3 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListModelDeploymentMonitoringJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListModelDeploymentMonitoringJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListOperations/main.go index b2955ff3c42..65d97877576 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/PauseModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/PauseModelDeploymentMonitoringJob/main.go index 20eef080376..9966dc99cbf 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/PauseModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/PauseModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/ResumeModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/ResumeModelDeploymentMonitoringJob/main.go index 7fd91a63ab4..cb703764e9b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/ResumeModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/ResumeModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/SearchModelDeploymentMonitoringStatsAnomalies/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/SearchModelDeploymentMonitoringStatsAnomalies/main.go index 6317519f78b..72643789a5f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/SearchModelDeploymentMonitoringStatsAnomalies/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/SearchModelDeploymentMonitoringStatsAnomalies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/SetIamPolicy/main.go index 6248addce88..5c943ac5e3f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/TestIamPermissions/main.go index 1e96f81a2ef..dd39a7e8dbd 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/UpdateModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/UpdateModelDeploymentMonitoringJob/main.go index 9802a30ea82..9d9b596c065 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/UpdateModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/UpdateModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/JobClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/JobClient/WaitOperation/main.go index 5634f415ec6..28cf37e7d41 100644 --- a/internal/generated/snippets/aiplatform/apiv1/JobClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/JobClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddContextArtifactsAndExecutions/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddContextArtifactsAndExecutions/main.go index 99a2442209e..268ab5a1088 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddContextArtifactsAndExecutions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddContextArtifactsAndExecutions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddContextChildren/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddContextChildren/main.go index a02cb6c72fa..ea012f1d6f6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddContextChildren/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddContextChildren/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddExecutionEvents/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddExecutionEvents/main.go index 413e9fc09c5..019dab3a801 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddExecutionEvents/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/AddExecutionEvents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CancelOperation/main.go index 45133ae36c0..1d84b26b267 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateArtifact/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateArtifact/main.go index 3b7015977a9..cd836f81dc5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateArtifact/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateContext/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateContext/main.go index e7a5d5515d0..d680403a859 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateContext/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateExecution/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateExecution/main.go index 58382d3a659..cc9782ef011 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateExecution/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateExecution/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateMetadataSchema/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateMetadataSchema/main.go index b7d49eca3d0..8f7ec11edff 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateMetadataSchema/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateMetadataSchema/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateMetadataStore/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateMetadataStore/main.go index ecf1a20d45f..cc00887f72e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateMetadataStore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/CreateMetadataStore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteArtifact/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteArtifact/main.go index 97464993e36..7c9f4d8169b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteArtifact/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteContext/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteContext/main.go index 025e79ce7e4..88cc75ade84 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteContext/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteExecution/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteExecution/main.go index 4bbf64f2ebb..025bd6d6c15 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteExecution/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteExecution/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteMetadataStore/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteMetadataStore/main.go index 18a567bf770..2b9f3d9d2ef 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteMetadataStore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteMetadataStore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteOperation/main.go index 772000fd675..cf5ce0f3556 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetArtifact/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetArtifact/main.go index 3ec328191ed..7f02b3c0d0d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetArtifact/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetContext/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetContext/main.go index 2a7ef7b12c6..a80693e5c90 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetContext/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetExecution/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetExecution/main.go index 02548a4f5ef..eba7449e702 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetExecution/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetExecution/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetIamPolicy/main.go index 30f9f78f34c..2f58f756f59 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetLocation/main.go index cc5474f4fef..db81f2e4182 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetMetadataSchema/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetMetadataSchema/main.go index f9f579a16bb..6fb5d5fa8a8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetMetadataSchema/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetMetadataSchema/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetMetadataStore/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetMetadataStore/main.go index dec82277a98..2169dc1a394 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetMetadataStore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetMetadataStore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetOperation/main.go index e8071ba3495..191c29b0f0f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListArtifacts/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListArtifacts/main.go index e54c1e2fae9..d17c41c1c50 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListArtifacts/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListArtifacts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListContexts/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListContexts/main.go index b5636ab64eb..a911a012f24 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListContexts/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListContexts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListExecutions/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListExecutions/main.go index 5be1c9a33ac..f809b2625f1 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListExecutions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListExecutions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListLocations/main.go index 58d96a4caf1..f701906dff1 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListMetadataSchemas/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListMetadataSchemas/main.go index 55873245c55..16c04e7c996 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListMetadataSchemas/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListMetadataSchemas/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListMetadataStores/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListMetadataStores/main.go index 64532479af9..24022fc0bfc 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListMetadataStores/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListMetadataStores/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListOperations/main.go index ef25a3914a3..306667cb054 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeArtifacts/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeArtifacts/main.go index 794d51d4b22..39715938375 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeArtifacts/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeArtifacts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeContexts/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeContexts/main.go index bbafdd7acf7..321096de970 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeContexts/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeContexts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeExecutions/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeExecutions/main.go index 798dae92c9f..6e4fd500563 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeExecutions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/PurgeExecutions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryArtifactLineageSubgraph/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryArtifactLineageSubgraph/main.go index 7c8da389f32..22e6bedebad 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryArtifactLineageSubgraph/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryArtifactLineageSubgraph/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryContextLineageSubgraph/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryContextLineageSubgraph/main.go index 44aa17c348c..b2af3bce840 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryContextLineageSubgraph/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryContextLineageSubgraph/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryExecutionInputsAndOutputs/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryExecutionInputsAndOutputs/main.go index b8496da5867..60fab3cfdf5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryExecutionInputsAndOutputs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/QueryExecutionInputsAndOutputs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/SetIamPolicy/main.go index 23ca12838cb..5b31d74fd3f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/TestIamPermissions/main.go index 78b7460e32f..b6d052b0043 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateArtifact/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateArtifact/main.go index 75ddcddf479..ca8a56a61a8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateArtifact/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateContext/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateContext/main.go index 8e9094ecd74..e7e2d7f6a52 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateContext/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateExecution/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateExecution/main.go index ea97471f2eb..18a9a5a9928 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateExecution/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/UpdateExecution/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/WaitOperation/main.go index ddf6e301c48..9c6268dea7e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MetadataClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MetadataClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/BatchMigrateResources/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/BatchMigrateResources/main.go index 10a4f43ebc1..0655bb9815d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/BatchMigrateResources/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/BatchMigrateResources/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/CancelOperation/main.go index bfacd8fe217..51e95e1b219 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/DeleteOperation/main.go index 23a2d7df702..23563fbc69b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetIamPolicy/main.go index dae950b40e0..f20e92a63d3 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetLocation/main.go index 36794d53f40..4050e2c68e4 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetOperation/main.go index 9b7a5335dfc..c36c51ff9d4 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/ListLocations/main.go index b45fcfa8987..80954398af2 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/ListOperations/main.go index 3557e17858b..86863b9ca57 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SearchMigratableResources/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SearchMigratableResources/main.go index 95141578981..e6403cdd93a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SearchMigratableResources/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SearchMigratableResources/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SetIamPolicy/main.go index 0154278734e..b15c009eef5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/TestIamPermissions/main.go index 6f724d9f338..091e8244ad6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/WaitOperation/main.go index cc01a4c9000..9d1cb62b74f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/MigrationClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/MigrationClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/BatchImportModelEvaluationSlices/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/BatchImportModelEvaluationSlices/main.go index b36aa7a09b3..309d17b522f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/BatchImportModelEvaluationSlices/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/BatchImportModelEvaluationSlices/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/CancelOperation/main.go index 2bc278b3845..90a1ccc5fb8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModel/main.go index 28dfa75cd50..ff133156614 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModelVersion/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModelVersion/main.go index 45cba536b7a..53a48c4135f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModelVersion/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteModelVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteOperation/main.go index 9996bf15971..5d16d37c811 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ExportModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ExportModel/main.go index ce549473e69..e4c58fd45b8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ExportModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ExportModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetIamPolicy/main.go index 15fbb383a0e..1ee8b90e3ec 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetLocation/main.go index 08fb6624998..b7723b9d168 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModel/main.go index 9f9237906bd..aa7b13c9e62 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluation/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluation/main.go index ff190590a54..7f9bb610787 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluationSlice/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluationSlice/main.go index 7a2dfa70c92..c7149edd280 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluationSlice/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetModelEvaluationSlice/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetOperation/main.go index 285f0796615..6cbc65c7bdb 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ImportModelEvaluation/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ImportModelEvaluation/main.go index d0eb1e52692..a70aa59811c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ImportModelEvaluation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ImportModelEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListLocations/main.go index 2a9aa22bf5a..5e91d01aa05 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluationSlices/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluationSlices/main.go index 813bd254622..77dfb3873ed 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluationSlices/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluationSlices/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluations/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluations/main.go index fb72e8b4d0b..f4eb973ced7 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelEvaluations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelVersions/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelVersions/main.go index c2f8842b4ad..2fe915f0426 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelVersions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModelVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModels/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModels/main.go index 619ad4edd64..ea40ea4b138 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModels/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListModels/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListOperations/main.go index 4682c85f080..f903f937e9b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/MergeVersionAliases/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/MergeVersionAliases/main.go index 8ac385387b8..11560af40e6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/MergeVersionAliases/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/MergeVersionAliases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/SetIamPolicy/main.go index 3f8dae27a73..a8aa5c35c49 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/TestIamPermissions/main.go index 083f430a207..1b61139d581 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/UpdateModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/UpdateModel/main.go index 1b176749d02..c4dc350b2e5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/UpdateModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/UpdateModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/UploadModel/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/UploadModel/main.go index cd324fbe53d..afdce13f5d7 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/UploadModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/UploadModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/ModelClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/ModelClient/WaitOperation/main.go index 602add34249..e762fd37c11 100644 --- a/internal/generated/snippets/aiplatform/apiv1/ModelClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/ModelClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelOperation/main.go index 26de52449d3..1ca916b10b2 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelPipelineJob/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelPipelineJob/main.go index eebe7f92185..802141bfd9a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelPipelineJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelPipelineJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelTrainingPipeline/main.go index 1ce21bdb947..9541a3ad8e7 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelTrainingPipeline/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CancelTrainingPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreatePipelineJob/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreatePipelineJob/main.go index 99ac0f2bac8..04a90e08dc0 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreatePipelineJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreatePipelineJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreateTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreateTrainingPipeline/main.go index 33a6a116168..8492c1fd78c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreateTrainingPipeline/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/CreateTrainingPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteOperation/main.go index c9ae8e19f40..1ca7cb9ee6c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeletePipelineJob/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeletePipelineJob/main.go index 81c876198d4..183a238405a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeletePipelineJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeletePipelineJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteTrainingPipeline/main.go index bc01643d5b1..da2b939ba45 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteTrainingPipeline/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/DeleteTrainingPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetIamPolicy/main.go index f4ca13823dd..e10d3410db8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetLocation/main.go index 73f25f82b0a..17a93cbc4e0 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetOperation/main.go index fd24a797a8c..9c3bb47d789 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetPipelineJob/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetPipelineJob/main.go index 8597ea1764c..e3f0a1a9af1 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetPipelineJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetPipelineJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetTrainingPipeline/main.go index 8b2654a2a00..810f571ab00 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetTrainingPipeline/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/GetTrainingPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListLocations/main.go index 40411e23478..bc6b2cdd001 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListOperations/main.go index 7aa0f8c0820..6a534144145 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListPipelineJobs/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListPipelineJobs/main.go index a10682a0e4a..66236c130ef 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListPipelineJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListPipelineJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListTrainingPipelines/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListTrainingPipelines/main.go index 6c49cdb5372..d81f720b65f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListTrainingPipelines/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/ListTrainingPipelines/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/SetIamPolicy/main.go index e45ebb66053..0a8d5e518ae 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/TestIamPermissions/main.go index a7164d15799..9696a422ad6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/WaitOperation/main.go index b3b0ff205ce..37f58496f78 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PipelineClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PipelineClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/CancelOperation/main.go index fa039f3d331..d87e5cedaab 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/DeleteOperation/main.go index 67cb8a9b046..14eacaa722f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Explain/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Explain/main.go index 048453de6e8..a2dd5b4975c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Explain/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Explain/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetIamPolicy/main.go index e26c6bfe45c..ac88a72beba 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetLocation/main.go index 315cf1ee200..77cff52857d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetOperation/main.go index 28e824c338c..12aa339c35b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/ListLocations/main.go index 13e87a89aae..cfc95ac8127 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/ListOperations/main.go index 9d1b6891c9e..20e6a6b029d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Predict/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Predict/main.go index 344ed3b6338..7d9388004e3 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Predict/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/Predict/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/RawPredict/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/RawPredict/main.go index 76cfc2d9b7c..cc9a89ccce5 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/RawPredict/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/RawPredict/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/SetIamPolicy/main.go index b1f8db005d9..6c2caaa2cb6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/TestIamPermissions/main.go index 4a8b8c8829a..c6384189e99 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/WaitOperation/main.go index e4a8c43aa6c..a972230d73e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/PredictionClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/PredictionClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CancelOperation/main.go index 07a2a933931..65a9cc21d72 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CreateSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CreateSpecialistPool/main.go index d74e1e45b08..9f9551cbfab 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CreateSpecialistPool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/CreateSpecialistPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteOperation/main.go index cd9e76272b4..9d413e8ffb3 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteSpecialistPool/main.go index eacddcfc279..a172d6ae9e8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteSpecialistPool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/DeleteSpecialistPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetIamPolicy/main.go index 48dc6f91473..2d41e7d70c7 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetLocation/main.go index 4e74222a364..a29ce79397d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetOperation/main.go index 125b8747c35..ff1d907facb 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetSpecialistPool/main.go index e4d7a6f08b0..e84bc322a89 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetSpecialistPool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/GetSpecialistPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListLocations/main.go index f7fa73ee8d1..b878c2c457b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListOperations/main.go index 8510fd4686b..27c74be8393 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListSpecialistPools/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListSpecialistPools/main.go index 0e127f65c0e..413af0ce38a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListSpecialistPools/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/ListSpecialistPools/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/SetIamPolicy/main.go index 8610d8ad435..3cfaba8848e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/TestIamPermissions/main.go index b69e0008b2d..b7e086e660b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/UpdateSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/UpdateSpecialistPool/main.go index 03638b63f0c..3c7d65fb284 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/UpdateSpecialistPool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/UpdateSpecialistPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/WaitOperation/main.go index 561cc3eabd6..7aaf5f51192 100644 --- a/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/SpecialistPoolClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchCreateTensorboardRuns/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchCreateTensorboardRuns/main.go index 6180e782db2..04768724aad 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchCreateTensorboardRuns/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchCreateTensorboardRuns/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchCreateTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchCreateTensorboardTimeSeries/main.go index 0b9a3d5f95d..6b1070e7b1a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchCreateTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchCreateTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go index 23da88c29e7..372ce92ddf2 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CancelOperation/main.go index 5f8aa9727f3..16547851c05 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboard/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboard/main.go index cfd4fe28a5f..cbfdf2282ee 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboard/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboard/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardExperiment/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardExperiment/main.go index e689ec3cdda..ac35378ef6c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardExperiment/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardRun/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardRun/main.go index c4ecdf3c9bf..c98a2285b92 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardRun/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardTimeSeries/main.go index e800dd08249..1fd35cd0e47 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/CreateTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteOperation/main.go index 9fb5f429480..03c8673216a 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboard/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboard/main.go index 9e7bfb12853..b621ed87fa8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboard/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboard/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardExperiment/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardExperiment/main.go index dd514eb486d..e3736ed15d1 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardExperiment/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardRun/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardRun/main.go index 0aed2cb3901..1debb381b67 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardRun/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardTimeSeries/main.go index 69028f75988..6142330f668 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/DeleteTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ExportTensorboardTimeSeriesData/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ExportTensorboardTimeSeriesData/main.go index be195dcb7b5..631558b5f10 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ExportTensorboardTimeSeriesData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ExportTensorboardTimeSeriesData/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetIamPolicy/main.go index f6186f966fc..5ed19bf170c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetLocation/main.go index a0d03a2c817..2a389cc913c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetOperation/main.go index cb6da54cf1d..d3a4de16f64 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboard/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboard/main.go index 3598b3735c1..f86b7a7445b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboard/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboard/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardExperiment/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardExperiment/main.go index 33d1285cf89..3c2a8f38f13 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardExperiment/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardRun/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardRun/main.go index 1d109c1248c..6f90f8cfe3c 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardRun/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardTimeSeries/main.go index 2844f7c01ca..00771563fb3 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/GetTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListLocations/main.go index 764684c5f1b..2853a761546 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListOperations/main.go index 9f5e1bb8fa1..bd83c3a1e40 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardExperiments/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardExperiments/main.go index b52a9ca9a5b..4a4cbf8f59f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardExperiments/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardExperiments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardRuns/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardRuns/main.go index e9c2dc3279d..67e8add7b1b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardRuns/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardRuns/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardTimeSeries/main.go index 95267553623..a176b26d373 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboardTimeSeries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboards/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboards/main.go index 5f95a1b5ff5..52cf28665cf 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboards/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ListTensorboards/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ReadTensorboardTimeSeriesData/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ReadTensorboardTimeSeriesData/main.go index a32c3691fae..4005f8d004f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ReadTensorboardTimeSeriesData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ReadTensorboardTimeSeriesData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/SetIamPolicy/main.go index ccf894b0158..54b6693ac7e 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/TestIamPermissions/main.go index 7d853e2d36e..935bbc11c89 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboard/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboard/main.go index 8fd671bcc49..981cadaf1e9 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboard/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboard/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardExperiment/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardExperiment/main.go index 73a4d48b5bf..43692281308 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardExperiment/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardRun/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardRun/main.go index e1a6bba754c..3b23920421f 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardRun/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardTimeSeries/main.go index 7d7fa9bc9d8..4a9904612dc 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/UpdateTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WaitOperation/main.go index 04ab3c7c3fd..89a68c11098 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WriteTensorboardExperimentData/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WriteTensorboardExperimentData/main.go index becb5d10bec..79199b2857d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WriteTensorboardExperimentData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WriteTensorboardExperimentData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WriteTensorboardRunData/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WriteTensorboardRunData/main.go index b04f8d17667..d323c913d10 100644 --- a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WriteTensorboardRunData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/WriteTensorboardRunData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/AddTrialMeasurement/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/AddTrialMeasurement/main.go index ec9c22387e6..f9e0d4d5dcb 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/AddTrialMeasurement/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/AddTrialMeasurement/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CancelOperation/main.go index 78270a1b399..f6bd7a528ad 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CheckTrialEarlyStoppingState/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CheckTrialEarlyStoppingState/main.go index bc471390dc1..f78250e4bd4 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CheckTrialEarlyStoppingState/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CheckTrialEarlyStoppingState/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CompleteTrial/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CompleteTrial/main.go index 2ba0fd712f5..7b70b0ab491 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CompleteTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CompleteTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CreateStudy/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CreateStudy/main.go index 5a8e700f71d..e519f2d940d 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CreateStudy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CreateStudy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CreateTrial/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CreateTrial/main.go index eec610e4cab..4742396f081 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/CreateTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/CreateTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteOperation/main.go index ffbdeff2953..1d3052de6a8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteStudy/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteStudy/main.go index 9dffea28bc9..1e9ed83beef 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteStudy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteStudy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteTrial/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteTrial/main.go index 04deae44794..e39ca8802c4 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/DeleteTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetIamPolicy/main.go index c379c99f26c..84824dc3fba 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetLocation/main.go index 2807ed90444..2a710c40f95 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetOperation/main.go index f91ba7ee45d..3dc866750a0 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetStudy/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetStudy/main.go index 5bb830a5a70..98d5f24d243 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetStudy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetStudy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetTrial/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetTrial/main.go index 928da7b0f4c..804b665ce45 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/GetTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListLocations/main.go index e9ec3a144fc..502fcaf5aa3 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListOperations/main.go index 23548d9701b..06a762fd634 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListOptimalTrials/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListOptimalTrials/main.go index 0aeba1df535..126cf04c825 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListOptimalTrials/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListOptimalTrials/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListStudies/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListStudies/main.go index a0add398a80..cf58bcb0605 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListStudies/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListStudies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListTrials/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListTrials/main.go index b8d6fcaeefb..475082a6273 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListTrials/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/ListTrials/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/LookupStudy/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/LookupStudy/main.go index a68b3fbf4c7..9638d5a11e6 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/LookupStudy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/LookupStudy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/SetIamPolicy/main.go index 33f9f88c9ad..d363620acd0 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/StopTrial/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/StopTrial/main.go index bce736ef8f2..224239bae5b 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/StopTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/StopTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/SuggestTrials/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/SuggestTrials/main.go index 1cc5549de8f..5c4cff0d086 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/SuggestTrials/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/SuggestTrials/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/TestIamPermissions/main.go index b062f47d13c..9d192448cb8 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/VizierClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1/VizierClient/WaitOperation/main.go index 3b60a581007..4648621c3ad 100644 --- a/internal/generated/snippets/aiplatform/apiv1/VizierClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1/VizierClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json b/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json index 0755dd9d109..6f4aa5ebc71 100644 --- a/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/aiplatform/apiv1", - "version": "1.17.0", + "version": "1.18.0", "language": "GO", "apis": [ { @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -832,7 +832,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -878,7 +878,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -924,7 +924,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -970,7 +970,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1015,7 +1015,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1061,7 +1061,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1107,7 +1107,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1152,7 +1152,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1198,7 +1198,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1244,7 +1244,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1290,7 +1290,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1336,7 +1336,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1382,7 +1382,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1428,7 +1428,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1474,7 +1474,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1520,7 +1520,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1566,7 +1566,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1612,7 +1612,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1658,7 +1658,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1704,7 +1704,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1750,7 +1750,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1796,7 +1796,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1842,7 +1842,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1887,7 +1887,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1933,7 +1933,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1979,7 +1979,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2025,7 +2025,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2071,7 +2071,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2117,7 +2117,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2163,7 +2163,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2208,7 +2208,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2254,7 +2254,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2300,7 +2300,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2346,7 +2346,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2392,7 +2392,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2438,7 +2438,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2484,7 +2484,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2530,7 +2530,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2576,7 +2576,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2622,7 +2622,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2668,7 +2668,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2714,7 +2714,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2760,7 +2760,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2806,7 +2806,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2852,7 +2852,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2898,7 +2898,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2944,7 +2944,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2990,7 +2990,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3036,7 +3036,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3082,7 +3082,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3128,7 +3128,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3173,7 +3173,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3218,7 +3218,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3264,7 +3264,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3310,7 +3310,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3356,7 +3356,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3402,7 +3402,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3448,7 +3448,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3494,7 +3494,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3540,7 +3540,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3631,7 +3631,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3677,7 +3677,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3722,7 +3722,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3768,7 +3768,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3814,7 +3814,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3859,7 +3859,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3905,7 +3905,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3951,7 +3951,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3997,7 +3997,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4043,7 +4043,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4089,7 +4089,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4135,7 +4135,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4181,7 +4181,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4227,7 +4227,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4273,7 +4273,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4319,7 +4319,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4365,7 +4365,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -4411,7 +4411,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4457,7 +4457,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4502,7 +4502,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4548,7 +4548,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -4594,7 +4594,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4639,7 +4639,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4685,7 +4685,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -4731,7 +4731,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4777,7 +4777,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4823,7 +4823,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4869,7 +4869,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4915,7 +4915,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4961,7 +4961,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5007,7 +5007,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5053,7 +5053,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -5099,7 +5099,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5145,7 +5145,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5191,7 +5191,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -5237,7 +5237,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5283,7 +5283,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5328,7 +5328,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5373,7 +5373,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5418,7 +5418,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5463,7 +5463,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5508,7 +5508,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5554,7 +5554,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5600,7 +5600,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5646,7 +5646,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5692,7 +5692,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5738,7 +5738,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5784,7 +5784,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5830,7 +5830,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5876,7 +5876,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5922,7 +5922,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5968,7 +5968,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6013,7 +6013,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6059,7 +6059,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6105,7 +6105,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6151,7 +6151,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6197,7 +6197,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6243,7 +6243,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6289,7 +6289,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6335,7 +6335,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6381,7 +6381,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6427,7 +6427,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6473,7 +6473,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6519,7 +6519,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6565,7 +6565,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6611,7 +6611,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6657,7 +6657,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6703,7 +6703,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6748,7 +6748,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6793,7 +6793,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6839,7 +6839,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6885,7 +6885,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6931,7 +6931,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6977,7 +6977,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -7023,7 +7023,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7069,7 +7069,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7115,7 +7115,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7161,7 +7161,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7206,7 +7206,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7252,7 +7252,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7298,7 +7298,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7344,7 +7344,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7390,7 +7390,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7436,7 +7436,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -7482,7 +7482,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7528,7 +7528,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7574,7 +7574,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7620,7 +7620,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7665,7 +7665,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7711,7 +7711,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7757,7 +7757,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7803,7 +7803,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7849,7 +7849,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7895,7 +7895,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7941,7 +7941,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7987,7 +7987,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8033,7 +8033,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8079,7 +8079,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8125,7 +8125,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8171,7 +8171,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8217,7 +8217,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8263,7 +8263,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8309,7 +8309,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8355,7 +8355,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8401,7 +8401,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -8447,7 +8447,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -8493,7 +8493,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -8539,7 +8539,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8585,7 +8585,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8631,7 +8631,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8677,7 +8677,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8723,7 +8723,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8769,7 +8769,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8815,7 +8815,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8861,7 +8861,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8907,7 +8907,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8953,7 +8953,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -8998,7 +8998,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -9043,7 +9043,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -9089,7 +9089,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9135,7 +9135,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9181,7 +9181,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9227,7 +9227,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -9273,7 +9273,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -9319,7 +9319,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -9365,7 +9365,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9411,7 +9411,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9457,7 +9457,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9503,7 +9503,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9548,7 +9548,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -9594,7 +9594,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9640,7 +9640,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9685,7 +9685,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -9731,7 +9731,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -9777,7 +9777,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9823,7 +9823,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9869,7 +9869,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9915,7 +9915,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9961,7 +9961,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10007,7 +10007,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10053,7 +10053,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10099,7 +10099,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10145,7 +10145,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10191,7 +10191,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10237,7 +10237,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10283,7 +10283,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10329,7 +10329,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10375,7 +10375,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10421,7 +10421,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10467,7 +10467,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10513,7 +10513,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10559,7 +10559,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -10605,7 +10605,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10650,7 +10650,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -10695,7 +10695,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -10740,7 +10740,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -10786,7 +10786,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10832,7 +10832,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10877,7 +10877,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -10923,7 +10923,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10969,7 +10969,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11015,7 +11015,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11061,7 +11061,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11107,7 +11107,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11153,7 +11153,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11199,7 +11199,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11245,7 +11245,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11291,7 +11291,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11337,7 +11337,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11383,7 +11383,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11429,7 +11429,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11475,7 +11475,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11521,7 +11521,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11566,7 +11566,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -11611,7 +11611,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -11657,7 +11657,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11703,7 +11703,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11749,7 +11749,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11795,7 +11795,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11841,7 +11841,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11887,7 +11887,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11933,7 +11933,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11979,7 +11979,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12025,7 +12025,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12071,7 +12071,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12117,7 +12117,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12162,7 +12162,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -12208,7 +12208,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -12253,7 +12253,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -12299,7 +12299,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12345,7 +12345,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12391,7 +12391,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12437,7 +12437,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12483,7 +12483,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12529,7 +12529,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12575,7 +12575,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12621,7 +12621,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12667,7 +12667,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12713,7 +12713,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12759,7 +12759,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -12805,7 +12805,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12851,7 +12851,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12897,7 +12897,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12943,7 +12943,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12988,7 +12988,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -13034,7 +13034,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -13080,7 +13080,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13126,7 +13126,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13172,7 +13172,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13217,7 +13217,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -13263,7 +13263,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13309,7 +13309,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13355,7 +13355,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13401,7 +13401,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13447,7 +13447,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13493,7 +13493,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13539,7 +13539,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13585,7 +13585,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13631,7 +13631,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13677,7 +13677,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13723,7 +13723,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13769,7 +13769,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13815,7 +13815,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13861,7 +13861,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13907,7 +13907,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13953,7 +13953,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13999,7 +13999,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14045,7 +14045,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14136,7 +14136,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14182,7 +14182,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14228,7 +14228,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14274,7 +14274,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -14320,7 +14320,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14366,7 +14366,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14412,7 +14412,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14458,7 +14458,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14504,7 +14504,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14550,7 +14550,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14596,7 +14596,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14641,7 +14641,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -14687,7 +14687,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -14733,7 +14733,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14779,7 +14779,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14825,7 +14825,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14870,7 +14870,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -14915,7 +14915,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -14960,7 +14960,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -15006,7 +15006,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15052,7 +15052,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15098,7 +15098,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15144,7 +15144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15190,7 +15190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15236,7 +15236,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -15282,7 +15282,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -15328,7 +15328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15374,7 +15374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -15420,7 +15420,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -15466,7 +15466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15512,7 +15512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15558,7 +15558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15604,7 +15604,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -15650,7 +15650,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15696,7 +15696,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/CancelOperation/main.go index 9dc7f75d439..a1766b27c20 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/CreateDataset/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/CreateDataset/main.go index a3ead2c619a..00e59ed458d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/CreateDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/CreateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/DeleteDataset/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/DeleteDataset/main.go index 14514fe0332..931741b8209 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/DeleteDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/DeleteDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/DeleteOperation/main.go index 5065d4a6fbc..57d97c131c2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ExportData/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ExportData/main.go index 6cec0addbed..bd3e96f220d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ExportData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ExportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetAnnotationSpec/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetAnnotationSpec/main.go index c5b20e0eccd..4ca8060e273 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetAnnotationSpec/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetAnnotationSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetDataset/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetDataset/main.go index 4808bf64221..2efb70a374b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetIamPolicy/main.go index 26142ee5b33..1d37f28187d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetLocation/main.go index 650e673b7c2..95c1a32bed6 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetOperation/main.go index b8ad3c84c6a..57fa82e9b30 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ImportData/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ImportData/main.go index 693c4fe23b5..d8c80ddd557 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ImportData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ImportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListAnnotations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListAnnotations/main.go index 18ac2292214..71cad40c1d8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListAnnotations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListAnnotations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListDataItems/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListDataItems/main.go index 8bf76546191..abb7a57b5d0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListDataItems/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListDataItems/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListDatasets/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListDatasets/main.go index a7c5213f554..b61302edc87 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListDatasets/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListDatasets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListLocations/main.go index 71cc54c6cef..9cbc9b88f5c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListOperations/main.go index 53d42ae0366..4c34d2ef330 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListSavedQueries/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListSavedQueries/main.go index 73dab2bb07a..4f0e075c5f6 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListSavedQueries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/ListSavedQueries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/SetIamPolicy/main.go index ec0aef9ff74..6c64cd544c0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/TestIamPermissions/main.go index 99d36b627ce..8b6471c2700 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/UpdateDataset/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/UpdateDataset/main.go index 105eda3c3c8..2b0dec3c402 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/UpdateDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/UpdateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/WaitOperation/main.go index 67aad5657a3..f8a04b315c2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DatasetClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDatasetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/CancelOperation/main.go index e0502518425..4fbc319e0c9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/CreateDeploymentResourcePool/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/CreateDeploymentResourcePool/main.go index 0d86048ffcf..3585fc8975f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/CreateDeploymentResourcePool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/CreateDeploymentResourcePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/DeleteDeploymentResourcePool/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/DeleteDeploymentResourcePool/main.go index e1103594afa..bc5abc6d732 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/DeleteDeploymentResourcePool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/DeleteDeploymentResourcePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/DeleteOperation/main.go index 59653b9aec5..8315d2d2d0f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetDeploymentResourcePool/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetDeploymentResourcePool/main.go index 20d603188ba..5a67b0b30d6 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetDeploymentResourcePool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetDeploymentResourcePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetIamPolicy/main.go index 3fbf8119592..0140015b0c8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetLocation/main.go index 976e77943df..2c2008d93d5 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetOperation/main.go index 14f300706ab..4fb6df96323 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListDeploymentResourcePools/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListDeploymentResourcePools/main.go index 0f789b6df8c..3951d394ead 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListDeploymentResourcePools/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListDeploymentResourcePools/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListLocations/main.go index 3895678a50c..51f3175ac5f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListOperations/main.go index cf567a25aea..1eff9913175 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/QueryDeployedModels/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/QueryDeployedModels/main.go index 22f097aced1..058262df5de 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/QueryDeployedModels/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/QueryDeployedModels/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/SetIamPolicy/main.go index 8c628dd3c64..3801830f430 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/TestIamPermissions/main.go index a427b684ceb..18d83573a58 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/WaitOperation/main.go index 3ea5193016b..978b460b14a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/DeploymentResourcePoolClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewDeploymentResourcePoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/CancelOperation/main.go index 204449b9e2b..29cf6e80189 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/CreateEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/CreateEndpoint/main.go index 551baf07273..2619cba436c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/CreateEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/CreateEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeleteEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeleteEndpoint/main.go index bb5f8f98b8d..0c10b342a7b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeleteEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeleteEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeleteOperation/main.go index deda9c7c041..4aca1fe85c4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeployModel/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeployModel/main.go index eafe2b9511e..8b329446c46 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeployModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/DeployModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetEndpoint/main.go index 1bc07853f5c..04dde6a2d55 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetIamPolicy/main.go index 1882e62496b..399c45a487c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetLocation/main.go index ec31f0fdc56..ea3ce1917f0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetOperation/main.go index 17288d70c18..7364b8c3638 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListEndpoints/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListEndpoints/main.go index 2322016552c..336dec1c771 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListEndpoints/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListEndpoints/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListLocations/main.go index 9cce9a3e887..151de781d45 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListOperations/main.go index 82e8a795f72..920dc08db65 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/SetIamPolicy/main.go index 1a10c6ea31d..3d6cf188cda 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/TestIamPermissions/main.go index 6ae4c3dd1bc..9db5c46ab3e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/UndeployModel/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/UndeployModel/main.go index 439487e1a91..f2e7a40701c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/UndeployModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/UndeployModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/UpdateEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/UpdateEndpoint/main.go index f9809464933..38f5347558b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/UpdateEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/UpdateEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/WaitOperation/main.go index 94604f502cd..5051038746d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/EndpointClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/BatchCreateFeatures/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/BatchCreateFeatures/main.go index a0919c34c43..22155bc9aae 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/BatchCreateFeatures/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/BatchCreateFeatures/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/BatchReadFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/BatchReadFeatureValues/main.go index 4a5e3caf2f2..f554772cdcc 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/BatchReadFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/BatchReadFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CancelOperation/main.go index 5f60a645ede..9954965b614 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateEntityType/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateEntityType/main.go index 6f14d06d3b4..540bfdf870f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateEntityType/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateFeature/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateFeature/main.go index 13e186fe965..8fb62cbe279 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateFeature/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateFeature/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateFeaturestore/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateFeaturestore/main.go index 0f85a38b922..92f2ee06eb0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateFeaturestore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/CreateFeaturestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteEntityType/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteEntityType/main.go index c2249d3aa3c..8f1500c4e3b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteFeature/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteFeature/main.go index 7cb7eecbb42..fcf57647a72 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteFeature/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteFeature/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteFeaturestore/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteFeaturestore/main.go index 2736422eead..d28c686812c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteFeaturestore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteFeaturestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteOperation/main.go index efdbe378095..9a230856f43 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ExportFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ExportFeatureValues/main.go index d04b423282c..527678b2b19 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ExportFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ExportFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetEntityType/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetEntityType/main.go index 3bc8e0ae825..8796c596392 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetEntityType/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetFeature/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetFeature/main.go index d9a2ded59f2..9c2d68a492f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetFeature/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetFeature/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetFeaturestore/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetFeaturestore/main.go index 0a077e4d554..33f0d96e2f3 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetFeaturestore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetFeaturestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetIamPolicy/main.go index c483db092fc..6b7aef480be 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetLocation/main.go index eebd68d979d..3961ec71455 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetOperation/main.go index 4a5704d24c1..dba1fa237cb 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ImportFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ImportFeatureValues/main.go index f4424212513..e650e244f9e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ImportFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ImportFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListEntityTypes/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListEntityTypes/main.go index 66a65760434..7efae025bea 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListFeatures/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListFeatures/main.go index a2220d21068..97005f8e8ae 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListFeatures/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListFeatures/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListFeaturestores/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListFeaturestores/main.go index 335b4cfbdf0..d5bd99f9484 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListFeaturestores/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListFeaturestores/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListLocations/main.go index a99f6028d50..84bc7d117b7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListOperations/main.go index 6d0f808002c..fbbbf10b859 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/SearchFeatures/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/SearchFeatures/main.go index 8c9a924fe7e..d74a5b3463d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/SearchFeatures/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/SearchFeatures/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/SetIamPolicy/main.go index 9f5aa577165..563abf33f3b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/TestIamPermissions/main.go index 69f163d811a..22908c47bb8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateEntityType/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateEntityType/main.go index 649bbd7b693..a68cd8fff46 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateFeature/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateFeature/main.go index cc26e7047c4..587de871a78 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateFeature/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateFeature/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateFeaturestore/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateFeaturestore/main.go index 7292cacf032..e216f14d4da 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateFeaturestore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/UpdateFeaturestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/WaitOperation/main.go index d3c103b1719..15f323a5776 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/CancelOperation/main.go index c18b79f5d0e..783db3f857f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/DeleteOperation/main.go index b3ebfe8add2..7c6cfaf1f03 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetIamPolicy/main.go index 401be40fb74..ce9cd560dfd 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetLocation/main.go index 3a0626b2f39..8b968b59e73 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetOperation/main.go index 1ac3e6416ea..7e39a223de8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ListLocations/main.go index 9b9060172ae..8c04bc8b14c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ListOperations/main.go index 276f378d757..0811ee0f159 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ReadFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ReadFeatureValues/main.go index e9e99183e52..e5adb11c1a8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ReadFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/ReadFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/SetIamPolicy/main.go index de621682d63..eed53104072 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/TestIamPermissions/main.go index 1aa323a1c40..5822b79e8f4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/WaitOperation/main.go index b67c7a9856b..24e1c7ccbc4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/WriteFeatureValues/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/WriteFeatureValues/main.go index 25ccdb3f341..376865f6839 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/WriteFeatureValues/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/FeaturestoreOnlineServingClient/WriteFeatureValues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewFeaturestoreOnlineServingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/CancelOperation/main.go index a0999590c62..11acce79093 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/CreateIndex/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/CreateIndex/main.go index 2424d0212ac..11121011b3e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/CreateIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/CreateIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/DeleteIndex/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/DeleteIndex/main.go index 6d4a6a3fa85..2b5b2465eea 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/DeleteIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/DeleteIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/DeleteOperation/main.go index 56ac7d34340..c60577fc244 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetIamPolicy/main.go index 61a40818db9..9a23ffa59ec 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetIndex/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetIndex/main.go index 31e4854ee0d..faea7effdce 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetLocation/main.go index b16dbf8ea5b..18b53a4747b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetOperation/main.go index aae720111d3..6c3c2c2b319 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListIndexes/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListIndexes/main.go index ca110af3008..5dc51622534 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListIndexes/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListIndexes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListLocations/main.go index b56005661dd..00cc3e9b3a3 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListOperations/main.go index c251ca4ec8c..0b47403f3cb 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/RemoveDatapoints/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/RemoveDatapoints/main.go index 73442d0c91f..745878aae12 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/RemoveDatapoints/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/RemoveDatapoints/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/SetIamPolicy/main.go index 115638be7a4..26bb087795d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/TestIamPermissions/main.go index 902fc8728d6..1cf050af674 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/UpdateIndex/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/UpdateIndex/main.go index 2c754cf5a99..3170e913ff4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/UpdateIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/UpdateIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/UpsertDatapoints/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/UpsertDatapoints/main.go index 56984d5ed31..7c354bf42b2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/UpsertDatapoints/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/UpsertDatapoints/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/WaitOperation/main.go index 5e597e6d4e2..93195467736 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/CancelOperation/main.go index 6c6cf7ac8fd..e328035643e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/CreateIndexEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/CreateIndexEndpoint/main.go index 7c70e2ec7eb..da68ee22c99 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/CreateIndexEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/CreateIndexEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeleteIndexEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeleteIndexEndpoint/main.go index 856846bd91e..da386769753 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeleteIndexEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeleteIndexEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeleteOperation/main.go index 94b4ac7cc77..99da2f0e16c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeployIndex/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeployIndex/main.go index cbd23784605..0c3e8e358f9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeployIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/DeployIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetIamPolicy/main.go index 4064ad85af6..64a1b727f30 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetIndexEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetIndexEndpoint/main.go index 1a68f355c9e..306781c7e47 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetIndexEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetIndexEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetLocation/main.go index 4aeae6f50b5..e0e6adada89 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetOperation/main.go index 40c4f780569..6e666bd4654 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListIndexEndpoints/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListIndexEndpoints/main.go index d9a8b38dae6..f34edeb1602 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListIndexEndpoints/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListIndexEndpoints/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListLocations/main.go index f415d07dd69..9455c4eb237 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListOperations/main.go index 594d6074eac..fd19fa0ea0f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/MutateDeployedIndex/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/MutateDeployedIndex/main.go index 6cf9512b0db..7213709b19e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/MutateDeployedIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/MutateDeployedIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/SetIamPolicy/main.go index adc0625caa3..3a9fd9d8120 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/TestIamPermissions/main.go index 0caed799b27..b72bd2a0460 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/UndeployIndex/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/UndeployIndex/main.go index 65ec0efe1d1..c27173c67b9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/UndeployIndex/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/UndeployIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/UpdateIndexEndpoint/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/UpdateIndexEndpoint/main.go index 38a7ed8d298..4f032988cf4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/UpdateIndexEndpoint/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/UpdateIndexEndpoint/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/WaitOperation/main.go index 9c3d630216d..6550e1a9448 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/IndexEndpointClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewIndexEndpointClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelBatchPredictionJob/main.go index c0c91028036..c2f9125e785 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelBatchPredictionJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelBatchPredictionJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelCustomJob/main.go index e6580cf7532..38b5d13e12d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelCustomJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelCustomJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelDataLabelingJob/main.go index 89bd0060947..55f59891f36 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelDataLabelingJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelDataLabelingJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelHyperparameterTuningJob/main.go index bbcedf4a24e..35af9d916de 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelHyperparameterTuningJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelHyperparameterTuningJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelOperation/main.go index 9ec64fa55a4..32b0f38e923 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateBatchPredictionJob/main.go index c8bbb61b8cc..f3594f82076 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateBatchPredictionJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateBatchPredictionJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateCustomJob/main.go index 3e559c84f30..a034f28c692 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateCustomJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateCustomJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateDataLabelingJob/main.go index 7304b7da64b..bf0a3c28c99 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateDataLabelingJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateDataLabelingJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateHyperparameterTuningJob/main.go index 20a2bf53ad0..cd7f1fb8935 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateHyperparameterTuningJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateHyperparameterTuningJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateModelDeploymentMonitoringJob/main.go index a0632013ebb..963a830a5aa 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/CreateModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteBatchPredictionJob/main.go index 8a4b162baa8..0bec7c95d49 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteBatchPredictionJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteBatchPredictionJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteCustomJob/main.go index 5b852e72f11..7e7ce4d3fd9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteCustomJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteCustomJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteDataLabelingJob/main.go index 709509cda12..7a0061592fe 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteDataLabelingJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteDataLabelingJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteHyperparameterTuningJob/main.go index 5a54e8ce755..f785d61e1d0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteHyperparameterTuningJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteHyperparameterTuningJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteModelDeploymentMonitoringJob/main.go index f72d9e11bd8..6c078e64341 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteOperation/main.go index 41718d267b1..1333134cfb7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetBatchPredictionJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetBatchPredictionJob/main.go index 6a071e154a1..904ffbb5b7b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetBatchPredictionJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetBatchPredictionJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetCustomJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetCustomJob/main.go index d704c11172f..23f65181647 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetCustomJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetCustomJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetDataLabelingJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetDataLabelingJob/main.go index cc3cc0e23ca..d70bcda3dd5 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetDataLabelingJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetDataLabelingJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetHyperparameterTuningJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetHyperparameterTuningJob/main.go index b0e12c3ea03..92d9c579084 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetHyperparameterTuningJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetHyperparameterTuningJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetIamPolicy/main.go index 0d6ddbadca3..63d31507c2b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetLocation/main.go index e4fe504cc86..e5f415e2165 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetModelDeploymentMonitoringJob/main.go index 8e6fbf0f11f..a740b00486e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetOperation/main.go index c46088f6109..032c78a1443 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListBatchPredictionJobs/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListBatchPredictionJobs/main.go index 128cd0c759c..f859b927c24 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListBatchPredictionJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListBatchPredictionJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListCustomJobs/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListCustomJobs/main.go index a8422d8969d..e1236e62db8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListCustomJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListCustomJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListDataLabelingJobs/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListDataLabelingJobs/main.go index 66065ac589f..1ae514542df 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListDataLabelingJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListDataLabelingJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListHyperparameterTuningJobs/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListHyperparameterTuningJobs/main.go index a176236ac4f..32a396d69d1 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListHyperparameterTuningJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListHyperparameterTuningJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListLocations/main.go index abadd321bf6..7aac3973582 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListModelDeploymentMonitoringJobs/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListModelDeploymentMonitoringJobs/main.go index ad0ff94c09a..36eed0b3aa0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListModelDeploymentMonitoringJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListModelDeploymentMonitoringJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListOperations/main.go index fbaf41a10ed..357a09ceab7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/PauseModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/PauseModelDeploymentMonitoringJob/main.go index 1bed4958521..01c49031a9f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/PauseModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/PauseModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ResumeModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ResumeModelDeploymentMonitoringJob/main.go index 1f5150b2888..608e9ecc5c7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ResumeModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/ResumeModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/SearchModelDeploymentMonitoringStatsAnomalies/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/SearchModelDeploymentMonitoringStatsAnomalies/main.go index c66489a251b..064150d2264 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/SearchModelDeploymentMonitoringStatsAnomalies/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/SearchModelDeploymentMonitoringStatsAnomalies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/SetIamPolicy/main.go index 6c49527080e..342f5498981 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/TestIamPermissions/main.go index 62610f0c3a6..f352db2f287 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/UpdateModelDeploymentMonitoringJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/UpdateModelDeploymentMonitoringJob/main.go index c793e97beb5..52853a205a5 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/UpdateModelDeploymentMonitoringJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/UpdateModelDeploymentMonitoringJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/WaitOperation/main.go index 103e3147b38..2ec98a358cd 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/JobClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddContextArtifactsAndExecutions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddContextArtifactsAndExecutions/main.go index 2e5acf8e280..a89b5573c8b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddContextArtifactsAndExecutions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddContextArtifactsAndExecutions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddContextChildren/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddContextChildren/main.go index 6e2a99411a2..577db10d691 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddContextChildren/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddContextChildren/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddExecutionEvents/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddExecutionEvents/main.go index e9d5016f7cb..04d033b19f3 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddExecutionEvents/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/AddExecutionEvents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CancelOperation/main.go index ee8220c0d63..c6af3d86140 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateArtifact/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateArtifact/main.go index 980143d1444..851bf637c20 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateArtifact/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateContext/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateContext/main.go index ef42de85417..fc7a598e356 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateContext/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateExecution/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateExecution/main.go index bf18586ff6a..45827dc3127 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateExecution/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateExecution/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateMetadataSchema/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateMetadataSchema/main.go index f1803680632..b7cef95d0c4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateMetadataSchema/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateMetadataSchema/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateMetadataStore/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateMetadataStore/main.go index 53795fbf5c1..d1859f85c84 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateMetadataStore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/CreateMetadataStore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteArtifact/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteArtifact/main.go index 07aacd878ac..c62a30d4aa3 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteArtifact/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteContext/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteContext/main.go index e5f5e616920..b7f39e1a38d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteContext/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteExecution/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteExecution/main.go index a72223f0a1c..28d9f8e7a37 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteExecution/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteExecution/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteMetadataStore/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteMetadataStore/main.go index 1aca5576f8d..f13468ef26b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteMetadataStore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteMetadataStore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteOperation/main.go index 354f85277e8..c505f19cdce 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetArtifact/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetArtifact/main.go index f9aece8c409..943f9947e31 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetArtifact/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetContext/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetContext/main.go index ebd1d5526f8..645710f5592 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetContext/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetExecution/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetExecution/main.go index 33112dea50a..e576598afd9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetExecution/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetExecution/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetIamPolicy/main.go index fce998220ce..53469a97c45 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetLocation/main.go index 9ba471d0ef3..a8f7f5d3d65 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetMetadataSchema/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetMetadataSchema/main.go index dd37107bc24..2dec4163106 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetMetadataSchema/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetMetadataSchema/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetMetadataStore/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetMetadataStore/main.go index 18989d44c4b..ee33fc7ae5c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetMetadataStore/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetMetadataStore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetOperation/main.go index c1a5e787add..f978bb6059a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListArtifacts/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListArtifacts/main.go index 85149901f56..c5c8ec80f43 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListArtifacts/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListArtifacts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListContexts/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListContexts/main.go index 2ef7620306c..f046d97003e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListContexts/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListContexts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListExecutions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListExecutions/main.go index 9c7ef331551..a982b9880a3 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListExecutions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListExecutions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListLocations/main.go index 6f445d158e8..bd368eb4013 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListMetadataSchemas/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListMetadataSchemas/main.go index fcdd5a14a8d..545391a67e7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListMetadataSchemas/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListMetadataSchemas/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListMetadataStores/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListMetadataStores/main.go index 153bb8f527a..a1c94da5db1 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListMetadataStores/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListMetadataStores/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListOperations/main.go index df6e393b1b9..20aa89b33cc 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeArtifacts/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeArtifacts/main.go index d6e54b4c7e4..e654851c351 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeArtifacts/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeArtifacts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeContexts/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeContexts/main.go index d17be0eb187..d955e133914 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeContexts/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeContexts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeExecutions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeExecutions/main.go index a081206225d..bbc248346bf 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeExecutions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/PurgeExecutions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryArtifactLineageSubgraph/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryArtifactLineageSubgraph/main.go index 722828ef0c2..31c72986ddf 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryArtifactLineageSubgraph/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryArtifactLineageSubgraph/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryContextLineageSubgraph/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryContextLineageSubgraph/main.go index 3d5cacc6d4e..235ff524593 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryContextLineageSubgraph/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryContextLineageSubgraph/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryExecutionInputsAndOutputs/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryExecutionInputsAndOutputs/main.go index 435da27d10a..cebae10b7a4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryExecutionInputsAndOutputs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/QueryExecutionInputsAndOutputs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/SetIamPolicy/main.go index a36c61c4a05..dc0b5122bd0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/TestIamPermissions/main.go index 9feccb7e22a..a8bd26b2e12 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateArtifact/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateArtifact/main.go index 65258297d3a..708bec28a56 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateArtifact/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateContext/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateContext/main.go index 82e3526bc23..2b0c6a0b1fe 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateContext/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateExecution/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateExecution/main.go index 9ca6c97eaed..07c5570b6d7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateExecution/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/UpdateExecution/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/WaitOperation/main.go index 33363aaa329..24cd44b1849 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MetadataClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/BatchMigrateResources/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/BatchMigrateResources/main.go index f0843773d51..0cd5d751dad 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/BatchMigrateResources/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/BatchMigrateResources/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/CancelOperation/main.go index aaf8f5defc8..a051fc191dc 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/DeleteOperation/main.go index 951360d0579..d1f9dd4beb2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetIamPolicy/main.go index db4198d5cde..d7719ce71a6 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetLocation/main.go index 9bba978ed51..2d5013948dc 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetOperation/main.go index 44b016b20b1..c4a40e57e94 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/ListLocations/main.go index b5c264c540d..6b67e616f75 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/ListOperations/main.go index 7b0c00aa679..3489390887f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/SearchMigratableResources/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/SearchMigratableResources/main.go index e463ba13200..e0a45bbdeb1 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/SearchMigratableResources/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/SearchMigratableResources/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/SetIamPolicy/main.go index b291f28dd24..754169e45f9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/TestIamPermissions/main.go index af351653e5f..c587274a739 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/WaitOperation/main.go index 1ee2c17c099..d70c330abd3 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/MigrationClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/BatchImportModelEvaluationSlices/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/BatchImportModelEvaluationSlices/main.go index 5170c5b4e78..e6eb75d5d38 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/BatchImportModelEvaluationSlices/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/BatchImportModelEvaluationSlices/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/CancelOperation/main.go index 391a3ff8fc4..fa90f8e46c1 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteModel/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteModel/main.go index a90f48f9e1c..f5bd766125c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteModelVersion/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteModelVersion/main.go index 7d4868ad8a9..2d3002836fa 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteModelVersion/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteModelVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteOperation/main.go index 157f25e6dc7..604e8216828 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ExportModel/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ExportModel/main.go index 10bff9d15f1..67bfffa1bec 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ExportModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ExportModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetIamPolicy/main.go index 6641312b2ee..609b8f7d4ba 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetLocation/main.go index 5f292cd52db..d9eed1f4184 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModel/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModel/main.go index 699b1e3eca8..9a4f4454f28 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModelEvaluation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModelEvaluation/main.go index 30a47911626..502854269b0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModelEvaluation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModelEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModelEvaluationSlice/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModelEvaluationSlice/main.go index 2cef6aef7fd..6a8eb0692f0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModelEvaluationSlice/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetModelEvaluationSlice/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetOperation/main.go index 09c1ec91e82..36224da0d21 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ImportModelEvaluation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ImportModelEvaluation/main.go index 45f8679f7de..3919608c8d0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ImportModelEvaluation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ImportModelEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListLocations/main.go index 26651630e37..b3d57c66cb4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelEvaluationSlices/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelEvaluationSlices/main.go index e174e7559d4..b3d171b0a1c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelEvaluationSlices/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelEvaluationSlices/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelEvaluations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelEvaluations/main.go index f097be85c75..a2aa7b6cb66 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelEvaluations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelEvaluations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelVersions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelVersions/main.go index adc56a7164d..8b245125c96 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelVersions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModelVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModels/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModels/main.go index aaa936da7fa..4b007a98f7b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModels/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListModels/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListOperations/main.go index feae97c627c..4e83e6ebba1 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/MergeVersionAliases/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/MergeVersionAliases/main.go index 743bb8693a1..b2f381be62c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/MergeVersionAliases/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/MergeVersionAliases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/SetIamPolicy/main.go index dea2780c129..c19f32bcd85 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/TestIamPermissions/main.go index a56053d6848..5d341b4b5ae 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UpdateExplanationDataset/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UpdateExplanationDataset/main.go index 85c7641ef42..4ea2314e064 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UpdateExplanationDataset/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UpdateExplanationDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UpdateModel/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UpdateModel/main.go index db4e9aeb901..6e2375b296a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UpdateModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UpdateModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UploadModel/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UploadModel/main.go index 74409d7bf1d..76eb87fce78 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UploadModel/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/UploadModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/WaitOperation/main.go index 7fd97ac2aab..44bd880c107 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/ModelClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelOperation/main.go index d83020c590e..0c23dae6576 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelPipelineJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelPipelineJob/main.go index 714ebdd59e6..274de75bc89 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelPipelineJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelPipelineJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelTrainingPipeline/main.go index 6bf85d8321c..596445e3660 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelTrainingPipeline/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CancelTrainingPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CreatePipelineJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CreatePipelineJob/main.go index a9747ce2c31..27523a2c3cf 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CreatePipelineJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CreatePipelineJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CreateTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CreateTrainingPipeline/main.go index 499ce9247da..c42c231eb4e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CreateTrainingPipeline/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/CreateTrainingPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeleteOperation/main.go index 06247bbd850..5a688e682ac 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeletePipelineJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeletePipelineJob/main.go index 60c54cff6c1..6e33c93431b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeletePipelineJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeletePipelineJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeleteTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeleteTrainingPipeline/main.go index 31611eedd83..c3d8a40f561 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeleteTrainingPipeline/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/DeleteTrainingPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetIamPolicy/main.go index 0406f6fff12..3fdad0f87ec 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetLocation/main.go index 1b8e9eecc42..008e9d3aff6 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetOperation/main.go index c892763d7db..8cef849405b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetPipelineJob/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetPipelineJob/main.go index a141796c2cb..6a113fe4694 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetPipelineJob/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetPipelineJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetTrainingPipeline/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetTrainingPipeline/main.go index cb11303d403..0f32e98d96e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetTrainingPipeline/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/GetTrainingPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListLocations/main.go index 0a36026f860..96df1fac86a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListOperations/main.go index 42991b60bd9..d5f4cf9353a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListPipelineJobs/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListPipelineJobs/main.go index 610b83b3c56..b62464c5efd 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListPipelineJobs/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListPipelineJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListTrainingPipelines/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListTrainingPipelines/main.go index c034064b216..553752c85b5 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListTrainingPipelines/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/ListTrainingPipelines/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/SetIamPolicy/main.go index 7ebb1e6ba6c..2bfc4f764e8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/TestIamPermissions/main.go index c1bff32486c..42cd0cbd4ab 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/WaitOperation/main.go index 2cb1fe99c58..5c0880083e5 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PipelineClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPipelineClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/CancelOperation/main.go index e522d773173..e9f8edd3b32 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/DeleteOperation/main.go index 6628d9ae023..61b0a503901 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/Explain/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/Explain/main.go index 6784dfa7155..ac440704bf8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/Explain/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/Explain/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetIamPolicy/main.go index c20a8cbfdff..100f6e3f152 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetLocation/main.go index ea339059310..4179678afd8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetOperation/main.go index c691e42ff3f..a372d1bed66 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/ListLocations/main.go index c4d3b923f2a..b50bf24d2f4 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/ListOperations/main.go index 7d56371e2e8..d3c56498aa2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/Predict/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/Predict/main.go index d5aee134070..dbebf100e31 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/Predict/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/Predict/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/RawPredict/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/RawPredict/main.go index 26479d77231..8eab58d62c9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/RawPredict/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/RawPredict/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/SetIamPolicy/main.go index 7a0ff8a9635..8f15df3c8d3 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/TestIamPermissions/main.go index 51557a3f93f..115056adc61 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/WaitOperation/main.go index 08fe1e49f3d..9a87cd10679 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/PredictionClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/CancelOperation/main.go index 3c1d65ca42b..f496a4e8bbe 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/CreateSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/CreateSpecialistPool/main.go index dc294c0ef20..7a4b3cadc10 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/CreateSpecialistPool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/CreateSpecialistPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/DeleteOperation/main.go index c8298dd1ccf..2de450f2424 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/DeleteSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/DeleteSpecialistPool/main.go index 2cfc42b0b6b..8d2e1b038d2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/DeleteSpecialistPool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/DeleteSpecialistPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetIamPolicy/main.go index 7dd506f54b3..afc8b91515b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetLocation/main.go index 647be06b1ee..a58dbc75f74 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetOperation/main.go index b7636208ac1..799c2ea9e26 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetSpecialistPool/main.go index 27f6bc8c393..57ad031396e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetSpecialistPool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/GetSpecialistPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListLocations/main.go index 3788d1dcfc6..17aa1ff6c99 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListOperations/main.go index 1b2778ee0c2..2ea69bd5ef0 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListSpecialistPools/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListSpecialistPools/main.go index 86307c63831..bdbdac804b1 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListSpecialistPools/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/ListSpecialistPools/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/SetIamPolicy/main.go index 0db27423200..0b8dde6a213 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/TestIamPermissions/main.go index 2cf834dc34a..1df8992c4bf 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/UpdateSpecialistPool/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/UpdateSpecialistPool/main.go index da5fe94c5f1..180c1758186 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/UpdateSpecialistPool/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/UpdateSpecialistPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/WaitOperation/main.go index 76d84b8914e..dabeb60cfdc 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/SpecialistPoolClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewSpecialistPoolClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchCreateTensorboardRuns/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchCreateTensorboardRuns/main.go index 0b3814e12cf..a5804cdfe3a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchCreateTensorboardRuns/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchCreateTensorboardRuns/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchCreateTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchCreateTensorboardTimeSeries/main.go index fa7d6da77f3..16588cee465 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchCreateTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchCreateTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go index a6c705e7771..3f67aa0086e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CancelOperation/main.go index 6057782a0e4..ca3d1695930 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboard/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboard/main.go index 7fb6d6d9b6d..26d14be208c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboard/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboard/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardExperiment/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardExperiment/main.go index c022ef4e425..b9026e3ae4d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardExperiment/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardRun/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardRun/main.go index 20c06d0e79c..374727a243c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardRun/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardTimeSeries/main.go index 91da7102955..9bec4794dc1 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/CreateTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteOperation/main.go index ee9eacace0f..55c22a8c7e8 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboard/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboard/main.go index c0b708763b8..c0f1fce0ccf 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboard/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboard/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardExperiment/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardExperiment/main.go index a241c7889b0..afd85926ab2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardExperiment/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardRun/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardRun/main.go index 3503d9d370e..3e0e32a2a28 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardRun/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardTimeSeries/main.go index 550fea26c37..c6543645c59 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/DeleteTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ExportTensorboardTimeSeriesData/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ExportTensorboardTimeSeriesData/main.go index 34f3012aaff..f907d4b3620 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ExportTensorboardTimeSeriesData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ExportTensorboardTimeSeriesData/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetIamPolicy/main.go index 4ddc4118f79..63df5cfa5f5 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetLocation/main.go index f47d635d587..e78c61ab332 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetOperation/main.go index 366586c0f66..43bcaefef1f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboard/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboard/main.go index c34051a21ca..a2f12ceb767 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboard/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboard/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardExperiment/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardExperiment/main.go index d4b5760c1b7..02d4c8f4a75 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardExperiment/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardRun/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardRun/main.go index 2cf65835e20..c2a788db822 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardRun/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardTimeSeries/main.go index b3efe8134f3..673958af0f9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/GetTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListLocations/main.go index 119e08f9b56..fd796a03b04 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListOperations/main.go index d51d788ef00..66128ad5aa7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardExperiments/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardExperiments/main.go index 95801d4c56f..12604bce130 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardExperiments/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardExperiments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardRuns/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardRuns/main.go index 6318c534ca4..637e508714e 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardRuns/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardRuns/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardTimeSeries/main.go index 1643f5a1ec2..9ad531e5397 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboardTimeSeries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboards/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboards/main.go index b0fa0f34072..2409c50b23a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboards/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ListTensorboards/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ReadTensorboardTimeSeriesData/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ReadTensorboardTimeSeriesData/main.go index 779a3daa395..2fe6a69f874 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ReadTensorboardTimeSeriesData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ReadTensorboardTimeSeriesData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/SetIamPolicy/main.go index 4109410b5be..9bfa946cd0d 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/TestIamPermissions/main.go index b0c4f32b041..196ed0ca74c 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboard/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboard/main.go index 40afcd49153..95cacf008db 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboard/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboard/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardExperiment/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardExperiment/main.go index b11dfce8616..35a2870d9df 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardExperiment/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardRun/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardRun/main.go index 6bab816d145..e9f693ee1e6 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardRun/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardTimeSeries/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardTimeSeries/main.go index 6fac3936ddd..1128fee8142 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardTimeSeries/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/UpdateTensorboardTimeSeries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WaitOperation/main.go index 67d12a83a68..08bf345874f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WriteTensorboardExperimentData/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WriteTensorboardExperimentData/main.go index 6a356694eb1..f4f9982c28a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WriteTensorboardExperimentData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WriteTensorboardExperimentData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WriteTensorboardRunData/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WriteTensorboardRunData/main.go index cadd5a401d9..b8fa0d09946 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WriteTensorboardRunData/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/WriteTensorboardRunData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewTensorboardClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/AddTrialMeasurement/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/AddTrialMeasurement/main.go index a50afa6f479..922c2ec2e19 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/AddTrialMeasurement/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/AddTrialMeasurement/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CancelOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CancelOperation/main.go index 07c36d4698e..7b2bd9602d9 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CancelOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CheckTrialEarlyStoppingState/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CheckTrialEarlyStoppingState/main.go index 2264fb5a28c..34e49f2a488 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CheckTrialEarlyStoppingState/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CheckTrialEarlyStoppingState/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CompleteTrial/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CompleteTrial/main.go index 91c6bc022e7..e9cfb745ebf 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CompleteTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CompleteTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CreateStudy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CreateStudy/main.go index ec37504f054..9467945abae 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CreateStudy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CreateStudy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CreateTrial/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CreateTrial/main.go index b47e8de14ee..7ec010fb34f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CreateTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/CreateTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteOperation/main.go index 1c3048f5aee..f37a8b941a7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteStudy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteStudy/main.go index 0abcea3d576..0953e010a71 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteStudy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteStudy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteTrial/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteTrial/main.go index 912db253139..70f5418d698 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/DeleteTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetIamPolicy/main.go index dbce17080da..bc6e20516f2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetLocation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetLocation/main.go index c2e24b7c102..f65491babce 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetLocation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetOperation/main.go index 1d5b0130c9a..69a4a2920d6 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetStudy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetStudy/main.go index 29f01cbde27..788edd52ac5 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetStudy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetStudy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetTrial/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetTrial/main.go index 1e23428ff23..71ed9dfed51 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/GetTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListLocations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListLocations/main.go index 6815ee80eaa..b6be9e31e3f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListLocations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListOperations/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListOperations/main.go index da26657662e..4333fa08a7f 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListOperations/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListOptimalTrials/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListOptimalTrials/main.go index 784f5ba102c..7bd24b2aa84 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListOptimalTrials/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListOptimalTrials/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListStudies/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListStudies/main.go index a5c5f43308d..4ce28b0efab 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListStudies/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListStudies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListTrials/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListTrials/main.go index cb8874ac902..d2cf1b67940 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListTrials/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/ListTrials/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/LookupStudy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/LookupStudy/main.go index c37b5099cd3..01e5dcdec19 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/LookupStudy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/LookupStudy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/SetIamPolicy/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/SetIamPolicy/main.go index 9c9e4ca40aa..41c0d61e748 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/StopTrial/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/StopTrial/main.go index 3c980c5dbd5..ae0eda6124a 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/StopTrial/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/StopTrial/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/SuggestTrials/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/SuggestTrials/main.go index 601ca09c006..493044ebb2b 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/SuggestTrials/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/SuggestTrials/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/TestIamPermissions/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/TestIamPermissions/main.go index 2b8598e0c7d..221b38a8e97 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/WaitOperation/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/WaitOperation/main.go index 1321a69ab4e..3c24bdc2ad2 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/WaitOperation/main.go +++ b/internal/generated/snippets/aiplatform/apiv1beta1/VizierClient/WaitOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := aiplatform.NewVizierClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index b43a6f4722d..086048f9cd7 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/aiplatform/apiv1beta1", - "version": "1.17.0", + "version": "1.18.0", "language": "GO", "apis": [ { @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -832,7 +832,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -878,7 +878,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -924,7 +924,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -970,7 +970,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1015,7 +1015,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1061,7 +1061,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1107,7 +1107,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1152,7 +1152,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1198,7 +1198,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1244,7 +1244,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1290,7 +1290,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1336,7 +1336,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1382,7 +1382,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1428,7 +1428,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1474,7 +1474,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1520,7 +1520,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1566,7 +1566,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1612,7 +1612,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1658,7 +1658,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1703,7 +1703,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1749,7 +1749,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1795,7 +1795,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1840,7 +1840,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1886,7 +1886,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1932,7 +1932,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1978,7 +1978,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2024,7 +2024,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2070,7 +2070,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2116,7 +2116,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2162,7 +2162,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2208,7 +2208,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2254,7 +2254,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2300,7 +2300,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2346,7 +2346,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2392,7 +2392,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2438,7 +2438,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2484,7 +2484,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2530,7 +2530,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2575,7 +2575,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2621,7 +2621,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2667,7 +2667,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2713,7 +2713,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2759,7 +2759,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2805,7 +2805,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2851,7 +2851,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2896,7 +2896,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2942,7 +2942,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2988,7 +2988,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3034,7 +3034,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3080,7 +3080,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3126,7 +3126,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3172,7 +3172,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3218,7 +3218,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3264,7 +3264,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3310,7 +3310,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3356,7 +3356,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3402,7 +3402,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3448,7 +3448,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3494,7 +3494,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3540,7 +3540,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3586,7 +3586,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3632,7 +3632,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3678,7 +3678,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3724,7 +3724,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3770,7 +3770,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3816,7 +3816,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3861,7 +3861,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3906,7 +3906,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3952,7 +3952,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3998,7 +3998,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4044,7 +4044,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4090,7 +4090,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4136,7 +4136,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4182,7 +4182,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4228,7 +4228,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4319,7 +4319,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4365,7 +4365,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4411,7 +4411,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4456,7 +4456,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4502,7 +4502,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -4548,7 +4548,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4593,7 +4593,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4639,7 +4639,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4685,7 +4685,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4731,7 +4731,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4777,7 +4777,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4823,7 +4823,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4869,7 +4869,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4915,7 +4915,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4961,7 +4961,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5007,7 +5007,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5053,7 +5053,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5099,7 +5099,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -5145,7 +5145,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5191,7 +5191,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5236,7 +5236,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5282,7 +5282,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -5328,7 +5328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5373,7 +5373,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5419,7 +5419,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -5465,7 +5465,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5511,7 +5511,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5557,7 +5557,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5603,7 +5603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5649,7 +5649,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5695,7 +5695,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5741,7 +5741,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5787,7 +5787,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -5833,7 +5833,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5879,7 +5879,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5925,7 +5925,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -5971,7 +5971,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6017,7 +6017,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6062,7 +6062,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6107,7 +6107,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6152,7 +6152,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6197,7 +6197,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6242,7 +6242,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6288,7 +6288,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6334,7 +6334,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6380,7 +6380,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6426,7 +6426,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6472,7 +6472,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6518,7 +6518,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6564,7 +6564,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6610,7 +6610,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6656,7 +6656,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6702,7 +6702,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6747,7 +6747,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6793,7 +6793,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6839,7 +6839,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6885,7 +6885,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6931,7 +6931,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6977,7 +6977,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7023,7 +7023,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7069,7 +7069,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7115,7 +7115,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7161,7 +7161,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7207,7 +7207,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7253,7 +7253,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7299,7 +7299,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7345,7 +7345,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7391,7 +7391,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7437,7 +7437,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7482,7 +7482,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7527,7 +7527,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7573,7 +7573,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7619,7 +7619,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7665,7 +7665,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7711,7 +7711,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -7757,7 +7757,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7803,7 +7803,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7849,7 +7849,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7895,7 +7895,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7940,7 +7940,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7986,7 +7986,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8032,7 +8032,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8078,7 +8078,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8124,7 +8124,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8170,7 +8170,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -8216,7 +8216,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8262,7 +8262,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8308,7 +8308,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8354,7 +8354,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8399,7 +8399,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -8445,7 +8445,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8491,7 +8491,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8537,7 +8537,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8583,7 +8583,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8629,7 +8629,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8675,7 +8675,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8721,7 +8721,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8767,7 +8767,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8813,7 +8813,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8859,7 +8859,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8905,7 +8905,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8951,7 +8951,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8997,7 +8997,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -9043,7 +9043,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -9089,7 +9089,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -9135,7 +9135,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -9181,7 +9181,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -9227,7 +9227,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -9273,7 +9273,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9319,7 +9319,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9365,7 +9365,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9411,7 +9411,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9457,7 +9457,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9503,7 +9503,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9549,7 +9549,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9595,7 +9595,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9641,7 +9641,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9687,7 +9687,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -9732,7 +9732,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -9777,7 +9777,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -9823,7 +9823,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9869,7 +9869,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9915,7 +9915,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9961,7 +9961,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10007,7 +10007,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10053,7 +10053,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10099,7 +10099,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10145,7 +10145,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10191,7 +10191,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10237,7 +10237,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10282,7 +10282,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -10328,7 +10328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10374,7 +10374,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10419,7 +10419,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -10465,7 +10465,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -10511,7 +10511,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10557,7 +10557,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10603,7 +10603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10649,7 +10649,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10695,7 +10695,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10741,7 +10741,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10787,7 +10787,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10833,7 +10833,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10879,7 +10879,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10925,7 +10925,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10971,7 +10971,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11017,7 +11017,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11063,7 +11063,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11109,7 +11109,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11155,7 +11155,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11201,7 +11201,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11247,7 +11247,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -11293,7 +11293,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11339,7 +11339,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -11385,7 +11385,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11430,7 +11430,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -11475,7 +11475,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -11520,7 +11520,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -11566,7 +11566,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11612,7 +11612,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11657,7 +11657,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -11703,7 +11703,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11749,7 +11749,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11795,7 +11795,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11841,7 +11841,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11887,7 +11887,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11933,7 +11933,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11979,7 +11979,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12025,7 +12025,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12071,7 +12071,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12117,7 +12117,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12163,7 +12163,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12209,7 +12209,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12255,7 +12255,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12301,7 +12301,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12346,7 +12346,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -12391,7 +12391,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -12437,7 +12437,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12483,7 +12483,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12529,7 +12529,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12575,7 +12575,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12621,7 +12621,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12667,7 +12667,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12713,7 +12713,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12759,7 +12759,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12805,7 +12805,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12851,7 +12851,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12897,7 +12897,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12942,7 +12942,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -12988,7 +12988,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -13033,7 +13033,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -13079,7 +13079,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13125,7 +13125,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13171,7 +13171,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13217,7 +13217,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13263,7 +13263,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13309,7 +13309,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13355,7 +13355,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13401,7 +13401,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13447,7 +13447,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13493,7 +13493,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13539,7 +13539,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -13585,7 +13585,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13631,7 +13631,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13677,7 +13677,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13723,7 +13723,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13768,7 +13768,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -13814,7 +13814,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -13860,7 +13860,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13906,7 +13906,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13952,7 +13952,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13997,7 +13997,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -14043,7 +14043,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14089,7 +14089,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14135,7 +14135,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14181,7 +14181,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14227,7 +14227,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14273,7 +14273,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14319,7 +14319,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14365,7 +14365,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14411,7 +14411,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14457,7 +14457,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14503,7 +14503,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14549,7 +14549,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14595,7 +14595,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14641,7 +14641,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14687,7 +14687,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14733,7 +14733,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14779,7 +14779,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14825,7 +14825,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14916,7 +14916,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14962,7 +14962,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15008,7 +15008,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15054,7 +15054,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -15100,7 +15100,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15146,7 +15146,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15192,7 +15192,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15238,7 +15238,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15284,7 +15284,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15330,7 +15330,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15376,7 +15376,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15421,7 +15421,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -15467,7 +15467,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -15513,7 +15513,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15559,7 +15559,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15605,7 +15605,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15650,7 +15650,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -15695,7 +15695,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -15740,7 +15740,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -15786,7 +15786,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15832,7 +15832,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15878,7 +15878,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15924,7 +15924,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15970,7 +15970,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16016,7 +16016,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16062,7 +16062,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16108,7 +16108,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16154,7 +16154,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16200,7 +16200,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16246,7 +16246,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16292,7 +16292,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16338,7 +16338,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16384,7 +16384,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -16430,7 +16430,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16476,7 +16476,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AcknowledgeUserDataCollection/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AcknowledgeUserDataCollection/main.go index e18bebf440f..ddcb9681483 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AcknowledgeUserDataCollection/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AcknowledgeUserDataCollection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ApproveDisplayVideo360AdvertiserLinkProposal/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ApproveDisplayVideo360AdvertiserLinkProposal/main.go index 871d6585a2c..2efbef99d9c 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ApproveDisplayVideo360AdvertiserLinkProposal/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ApproveDisplayVideo360AdvertiserLinkProposal/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveAudience/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveAudience/main.go index 81d02c9bb33..ecc744e598b 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveAudience/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveAudience/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveCustomDimension/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveCustomDimension/main.go index 2acc7d4e2ff..47012aadc24 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveCustomDimension/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveCustomDimension/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveCustomMetric/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveCustomMetric/main.go index abf4d1ae692..95a489cba3a 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveCustomMetric/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ArchiveCustomMetric/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 914ddeb3281..94d871cf8a4 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AuditUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/AuditUserLinks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 43509f81fcd..fc7b9fff1aa 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchCreateUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchCreateUserLinks/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 8bdeab1997b..270d32c0077 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchDeleteUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchDeleteUserLinks/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 61e569a5916..fdd0b625d53 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchGetUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchGetUserLinks/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 c15954e22cf..9b3ede91564 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchUpdateUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/BatchUpdateUserLinks/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CancelDisplayVideo360AdvertiserLinkProposal/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CancelDisplayVideo360AdvertiserLinkProposal/main.go index 0d07994145a..97cb0dee6ad 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CancelDisplayVideo360AdvertiserLinkProposal/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CancelDisplayVideo360AdvertiserLinkProposal/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateAudience/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateAudience/main.go index 439ea7c6fc9..6af7d84146a 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateAudience/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateAudience/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateConversionEvent/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateConversionEvent/main.go index 7b6549dcf68..c16fdf9822d 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateConversionEvent/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateConversionEvent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateCustomDimension/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateCustomDimension/main.go index f98d5f5a347..486b247e972 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateCustomDimension/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateCustomDimension/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateCustomMetric/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateCustomMetric/main.go index 7199ec32404..c736b56eab2 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateCustomMetric/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateCustomMetric/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDataStream/main.go index 3d0d11f7400..7aa41a121e3 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDataStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDisplayVideo360AdvertiserLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDisplayVideo360AdvertiserLink/main.go index 45af97939e5..8bcc3e45f75 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDisplayVideo360AdvertiserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDisplayVideo360AdvertiserLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDisplayVideo360AdvertiserLinkProposal/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDisplayVideo360AdvertiserLinkProposal/main.go index 123241f5840..c947f3e1d2d 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDisplayVideo360AdvertiserLinkProposal/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateDisplayVideo360AdvertiserLinkProposal/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 264b61b49e6..fec1b6f01ab 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateFirebaseLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateFirebaseLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 987ab608c27..245ac93d6e8 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateGoogleAdsLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateGoogleAdsLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateMeasurementProtocolSecret/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateMeasurementProtocolSecret/main.go index b0db019b566..1d461f4508c 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateMeasurementProtocolSecret/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateMeasurementProtocolSecret/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 326f54a6281..8bca0317b10 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateProperty/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateProperty/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 a63402755cd..ad7e837078b 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateUserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/CreateUserLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 d66c3d90326..39f772e2721 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAccount/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteAccount/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteConversionEvent/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteConversionEvent/main.go index 52275013163..b1f1af7f5ea 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteConversionEvent/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteConversionEvent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDataStream/main.go index c435d39886b..af311c46986 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDataStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDisplayVideo360AdvertiserLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDisplayVideo360AdvertiserLink/main.go index bbb143765de..2e413fa3d5c 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDisplayVideo360AdvertiserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDisplayVideo360AdvertiserLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDisplayVideo360AdvertiserLinkProposal/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDisplayVideo360AdvertiserLinkProposal/main.go index 1809039d4a9..1ad7b87ab8e 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDisplayVideo360AdvertiserLinkProposal/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteDisplayVideo360AdvertiserLinkProposal/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 0f0175ac9ec..40dc47f37df 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteFirebaseLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteFirebaseLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 bd79400b5bf..772630c6356 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteGoogleAdsLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteGoogleAdsLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteMeasurementProtocolSecret/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteMeasurementProtocolSecret/main.go index 1e4f2761cdf..b707667dd72 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteMeasurementProtocolSecret/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteMeasurementProtocolSecret/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 f70c73bb678..fbb0aa35b38 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteProperty/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteProperty/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 4c0f3b4e41d..9060b7856bf 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteUserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/DeleteUserLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 08e82707bea..dae63cb648c 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAccount/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAccount/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAttributionSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAttributionSettings/main.go index c1964f8e458..077fce0b7b3 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAttributionSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAttributionSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAudience/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAudience/main.go index 443a017ffc0..925b25c1716 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAudience/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetAudience/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetConversionEvent/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetConversionEvent/main.go index 699ee595897..ab02e4d6cec 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetConversionEvent/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetConversionEvent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetCustomDimension/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetCustomDimension/main.go index 70c46e75eca..03ddf43f9e6 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetCustomDimension/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetCustomDimension/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetCustomMetric/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetCustomMetric/main.go index 35fe28a47cb..cf3d318d62a 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetCustomMetric/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetCustomMetric/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataRetentionSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataRetentionSettings/main.go index 5e7cee9af6a..e1ba7c49114 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataRetentionSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataRetentionSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 ea2b701b884..5d8eb5b2247 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataSharingSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataSharingSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataStream/main.go index c2eb3c0cbcb..9db827702db 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDataStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDisplayVideo360AdvertiserLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDisplayVideo360AdvertiserLink/main.go index bcb534a68cc..a417d4d304f 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDisplayVideo360AdvertiserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDisplayVideo360AdvertiserLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDisplayVideo360AdvertiserLinkProposal/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDisplayVideo360AdvertiserLinkProposal/main.go index 293db16ce75..c59316656f2 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDisplayVideo360AdvertiserLinkProposal/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetDisplayVideo360AdvertiserLinkProposal/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 880d3be0280..a64b94fad07 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGlobalSiteTag/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGlobalSiteTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGoogleSignalsSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGoogleSignalsSettings/main.go index 743757cc418..5d60fe2e9f2 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGoogleSignalsSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetGoogleSignalsSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetMeasurementProtocolSecret/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetMeasurementProtocolSecret/main.go index 2cc4bd82653..922c24353e3 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetMeasurementProtocolSecret/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetMeasurementProtocolSecret/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 2332f1f7be2..40cd00a1487 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetProperty/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetProperty/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 3a7d08b1c4f..a2e922a7913 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetUserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/GetUserLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 325d7e148b6..e97fc27a2a8 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccountSummaries/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccountSummaries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 018117a5ff5..ba7ab4af3bc 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccounts/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAccounts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAudiences/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAudiences/main.go index 49914750507..294ff7f93eb 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAudiences/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListAudiences/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListConversionEvents/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListConversionEvents/main.go index be2e8673881..3e21d4fddbf 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListConversionEvents/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListConversionEvents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListCustomDimensions/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListCustomDimensions/main.go index df7eaef21f3..b4d11737e76 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListCustomDimensions/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListCustomDimensions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListCustomMetrics/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListCustomMetrics/main.go index f7bcf6d63b0..fb1f62866dc 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListCustomMetrics/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListCustomMetrics/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDataStreams/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDataStreams/main.go index 9b4c0f4ef27..5e98be87259 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDataStreams/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDataStreams/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDisplayVideo360AdvertiserLinkProposals/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDisplayVideo360AdvertiserLinkProposals/main.go index 44b1e262010..b7d3fedcb5c 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDisplayVideo360AdvertiserLinkProposals/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDisplayVideo360AdvertiserLinkProposals/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDisplayVideo360AdvertiserLinks/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDisplayVideo360AdvertiserLinks/main.go index 3060ccf8229..c655a44aec7 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDisplayVideo360AdvertiserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListDisplayVideo360AdvertiserLinks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 768f7bbb646..10c613cb555 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListFirebaseLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListFirebaseLinks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 d9383edc258..52cf250fa13 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListGoogleAdsLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListGoogleAdsLinks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListMeasurementProtocolSecrets/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListMeasurementProtocolSecrets/main.go index da25bc72e99..f4bfb4d6eca 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListMeasurementProtocolSecrets/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListMeasurementProtocolSecrets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 f0a9a40ca56..2e04d775eaa 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListProperties/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListProperties/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 d3d952b5715..d0ee71307ee 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListUserLinks/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ListUserLinks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 d01385087f2..61a997940bf 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ProvisionAccountTicket/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/ProvisionAccountTicket/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/RunAccessReport/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/RunAccessReport/main.go index e779e240dca..7daf6c06761 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/RunAccessReport/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/RunAccessReport/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/SearchChangeHistoryEvents/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/SearchChangeHistoryEvents/main.go index 87dd31f33b4..b60c6019fd9 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/SearchChangeHistoryEvents/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/SearchChangeHistoryEvents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 fd16e23a9ba..cebbff75fdc 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAccount/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAccount/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAttributionSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAttributionSettings/main.go index 06a6c9be3be..ce34fe69c57 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAttributionSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAttributionSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAudience/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAudience/main.go index 166c7227300..8c2b9c42229 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAudience/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateAudience/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateCustomDimension/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateCustomDimension/main.go index 8959584edf5..2e771c8bdba 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateCustomDimension/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateCustomDimension/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateCustomMetric/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateCustomMetric/main.go index 3a528ee5e61..fd93b31d0de 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateCustomMetric/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateCustomMetric/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDataRetentionSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDataRetentionSettings/main.go index 7247ddc30b5..89d2b7e03f8 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDataRetentionSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDataRetentionSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDataStream/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDataStream/main.go index 4b2b443742d..5d1725bf939 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDataStream/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDataStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDisplayVideo360AdvertiserLink/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDisplayVideo360AdvertiserLink/main.go index 4efa5cc9a0f..06aace0ee4e 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDisplayVideo360AdvertiserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateDisplayVideo360AdvertiserLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 a28605a58c5..c08956d685b 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleAdsLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleAdsLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleSignalsSettings/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleSignalsSettings/main.go index 13b6296e10f..bb0438a406a 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleSignalsSettings/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateGoogleSignalsSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateMeasurementProtocolSecret/main.go b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateMeasurementProtocolSecret/main.go index cfb2c894250..cd363659f4e 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateMeasurementProtocolSecret/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateMeasurementProtocolSecret/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 967debfbd6c..51684431eb1 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateProperty/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateProperty/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. 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 40a6b7d1c25..af3e7a231d7 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateUserLink/main.go +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/AnalyticsAdminClient/UpdateUserLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/analytics/admin/apiv1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/internal/generated/snippets/analytics/admin/apiv1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index 59b5711cf25..22e1164fc04 100644 --- a/internal/generated/snippets/analytics/admin/apiv1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/internal/generated/snippets/analytics/admin/apiv1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -233,7 +233,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -279,7 +279,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -370,7 +370,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -416,7 +416,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -462,7 +462,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -508,7 +508,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -554,7 +554,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -600,7 +600,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -646,7 +646,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -692,7 +692,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -738,7 +738,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -784,7 +784,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -830,7 +830,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -876,7 +876,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -922,7 +922,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -968,7 +968,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1014,7 +1014,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1060,7 +1060,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1105,7 +1105,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1150,7 +1150,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1195,7 +1195,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1240,7 +1240,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1285,7 +1285,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1330,7 +1330,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1375,7 +1375,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1420,7 +1420,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1466,7 +1466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1511,7 +1511,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1557,7 +1557,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1603,7 +1603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1649,7 +1649,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1695,7 +1695,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1741,7 +1741,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1787,7 +1787,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1833,7 +1833,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1879,7 +1879,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1925,7 +1925,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1971,7 +1971,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2017,7 +2017,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2063,7 +2063,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2109,7 +2109,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2155,7 +2155,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2201,7 +2201,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2247,7 +2247,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2293,7 +2293,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2339,7 +2339,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2385,7 +2385,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2431,7 +2431,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2477,7 +2477,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2523,7 +2523,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2569,7 +2569,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2615,7 +2615,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2661,7 +2661,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2707,7 +2707,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2753,7 +2753,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2799,7 +2799,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2845,7 +2845,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2891,7 +2891,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2937,7 +2937,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2983,7 +2983,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3029,7 +3029,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3075,7 +3075,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3121,7 +3121,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3167,7 +3167,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3213,7 +3213,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3259,7 +3259,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3305,7 +3305,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3351,7 +3351,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3397,7 +3397,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3443,7 +3443,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3489,7 +3489,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3535,7 +3535,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3581,7 +3581,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3627,7 +3627,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/apigateway/apiv1/Client/CreateApi/main.go b/internal/generated/snippets/apigateway/apiv1/Client/CreateApi/main.go index d61d1505553..9cb4bbd32f7 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/CreateApi/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/CreateApi/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/CreateApiConfig/main.go b/internal/generated/snippets/apigateway/apiv1/Client/CreateApiConfig/main.go index 53df8fcf594..f8925bae0fd 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/CreateApiConfig/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/CreateApiConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/CreateGateway/main.go b/internal/generated/snippets/apigateway/apiv1/Client/CreateGateway/main.go index dc987a0d8a5..43eff1a4d43 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/CreateGateway/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/CreateGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/DeleteApi/main.go b/internal/generated/snippets/apigateway/apiv1/Client/DeleteApi/main.go index 07249c78fc0..629eda8af70 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/DeleteApi/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/DeleteApi/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/DeleteApiConfig/main.go b/internal/generated/snippets/apigateway/apiv1/Client/DeleteApiConfig/main.go index 14321ea5424..93550142568 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/DeleteApiConfig/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/DeleteApiConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/DeleteGateway/main.go b/internal/generated/snippets/apigateway/apiv1/Client/DeleteGateway/main.go index 7d81e0e6715..fae594aa4f5 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/DeleteGateway/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/DeleteGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/GetApi/main.go b/internal/generated/snippets/apigateway/apiv1/Client/GetApi/main.go index b3d0b5c3b07..bd9dba1c2ce 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/GetApi/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/GetApi/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/GetApiConfig/main.go b/internal/generated/snippets/apigateway/apiv1/Client/GetApiConfig/main.go index c8f02c1c179..64baf946af8 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/GetApiConfig/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/GetApiConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/GetGateway/main.go b/internal/generated/snippets/apigateway/apiv1/Client/GetGateway/main.go index bbffb9ea4d6..8f9d8c70ba6 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/GetGateway/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/GetGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/ListApiConfigs/main.go b/internal/generated/snippets/apigateway/apiv1/Client/ListApiConfigs/main.go index aecf029f283..a1670a56015 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/ListApiConfigs/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/ListApiConfigs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/ListApis/main.go b/internal/generated/snippets/apigateway/apiv1/Client/ListApis/main.go index a9ad28198f6..8ae8cb3aa6f 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/ListApis/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/ListApis/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/ListGateways/main.go b/internal/generated/snippets/apigateway/apiv1/Client/ListGateways/main.go index 7ebf17eb8e5..4740dc1567d 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/ListGateways/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/ListGateways/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/UpdateApi/main.go b/internal/generated/snippets/apigateway/apiv1/Client/UpdateApi/main.go index 92d94db1947..175e78a04bd 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/UpdateApi/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/UpdateApi/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/UpdateApiConfig/main.go b/internal/generated/snippets/apigateway/apiv1/Client/UpdateApiConfig/main.go index c06e58172c1..b0c6bdd1415 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/UpdateApiConfig/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/UpdateApiConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/Client/UpdateGateway/main.go b/internal/generated/snippets/apigateway/apiv1/Client/UpdateGateway/main.go index 54e52736664..0b848dd2080 100644 --- a/internal/generated/snippets/apigateway/apiv1/Client/UpdateGateway/main.go +++ b/internal/generated/snippets/apigateway/apiv1/Client/UpdateGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigateway/apiv1/snippet_metadata.google.cloud.apigateway.v1.json b/internal/generated/snippets/apigateway/apiv1/snippet_metadata.google.cloud.apigateway.v1.json index 57ba0f4b516..565e4b47eef 100644 --- a/internal/generated/snippets/apigateway/apiv1/snippet_metadata.google.cloud.apigateway.v1.json +++ b/internal/generated/snippets/apigateway/apiv1/snippet_metadata.google.cloud.apigateway.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/apigeeconnect/apiv1/ConnectionClient/ListConnections/main.go b/internal/generated/snippets/apigeeconnect/apiv1/ConnectionClient/ListConnections/main.go index 21a5dd9372b..f92852828d3 100644 --- a/internal/generated/snippets/apigeeconnect/apiv1/ConnectionClient/ListConnections/main.go +++ b/internal/generated/snippets/apigeeconnect/apiv1/ConnectionClient/ListConnections/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeconnect.NewConnectionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeconnect/apiv1/TetherClient/Egress/main.go b/internal/generated/snippets/apigeeconnect/apiv1/TetherClient/Egress/main.go index 57a50d59784..70fa350212b 100644 --- a/internal/generated/snippets/apigeeconnect/apiv1/TetherClient/Egress/main.go +++ b/internal/generated/snippets/apigeeconnect/apiv1/TetherClient/Egress/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeconnect.NewTetherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeconnect/apiv1/snippet_metadata.google.cloud.apigeeconnect.v1.json b/internal/generated/snippets/apigeeconnect/apiv1/snippet_metadata.google.cloud.apigeeconnect.v1.json index fce74ded8ed..7128d029fa5 100644 --- a/internal/generated/snippets/apigeeconnect/apiv1/snippet_metadata.google.cloud.apigeeconnect.v1.json +++ b/internal/generated/snippets/apigeeconnect/apiv1/snippet_metadata.google.cloud.apigeeconnect.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -93,7 +93,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CancelOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CancelOperation/main.go index 4a1766935d4..478fa0f0870 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CancelOperation/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CreateInstance/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CreateInstance/main.go index fde853160ce..de456fa1418 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CreateInstance/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/CreateInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteInstance/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteInstance/main.go index 968ab4b5a88..9639cdd5dca 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteInstance/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteOperation/main.go index c2d6dd2dc74..b36424c6671 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteOperation/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetIamPolicy/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetIamPolicy/main.go index 7e76ade73ac..4457457a9da 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetInstance/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetInstance/main.go index 27d9a66294d..6db0bf4bbf9 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetInstance/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetLocation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetLocation/main.go index 5d269b2c018..827bbb63e2a 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetLocation/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetOperation/main.go index 0e0ace57343..694e6a3a631 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetOperation/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListLocations/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListLocations/main.go index 1501173d5c9..a38e1ac9f27 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListLocations/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListOperations/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListOperations/main.go index 774df32ceb3..e2afbc3edf5 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListOperations/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/SetIamPolicy/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/SetIamPolicy/main.go index ae217184e2d..c630604230e 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/TestIamPermissions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/TestIamPermissions/main.go index 5c81b0a1a82..82f74ec304f 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/ProvisioningClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewProvisioningClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CancelOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CancelOperation/main.go index 64066492d7e..77813b060bd 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CancelOperation/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApi/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApi/main.go index 2e149ea8516..144a692cc32 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApi/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApi/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiDeployment/main.go index 2344488a379..32b9a59a301 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiDeployment/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiSpec/main.go index d57b77b8d9f..2c3271f82b1 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiSpec/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiVersion/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiVersion/main.go index a413d723929..03093c0a2f9 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiVersion/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateApiVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateArtifact/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateArtifact/main.go index ef324bc47d3..fc3bb6f1f72 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateArtifact/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/CreateArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApi/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApi/main.go index ef4912f9c45..cb1b73f3dd8 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApi/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApi/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeployment/main.go index f2988abfbc4..35823daef5e 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeployment/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeploymentRevision/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeploymentRevision/main.go index 2bc855823c8..8602b969d78 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeploymentRevision/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiDeploymentRevision/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpec/main.go index 58dc9d6ab82..4b42a0117c9 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpec/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpecRevision/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpecRevision/main.go index a227c04e888..bc584e998dd 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpecRevision/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiSpecRevision/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiVersion/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiVersion/main.go index f0d70c767c8..a0335f410af 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiVersion/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteApiVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteArtifact/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteArtifact/main.go index 91c020335f8..17053539c8a 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteArtifact/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteOperation/main.go index 4ee21667a7f..cc65e38bf12 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteOperation/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApi/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApi/main.go index c4a3f2ef63d..1f500f1ad6a 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApi/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApi/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiDeployment/main.go index c1edc29af67..c81e32e211e 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiDeployment/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpec/main.go index f49aa49da46..708807b6b76 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpec/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpecContents/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpecContents/main.go index b575e70b845..845150905db 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpecContents/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiSpecContents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiVersion/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiVersion/main.go index f2f2280d64d..623f075c19f 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiVersion/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetApiVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifact/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifact/main.go index 34c6bfa898c..538bb91a9a2 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifact/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifactContents/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifactContents/main.go index f1a1110ea49..511ed709382 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifactContents/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetArtifactContents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetIamPolicy/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetIamPolicy/main.go index ff7c63f17dd..4caa74ce9ff 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetLocation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetLocation/main.go index feabd066534..9b3b47fd2e2 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetLocation/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetOperation/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetOperation/main.go index 545abc8df26..b67df6c8bb7 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetOperation/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeploymentRevisions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeploymentRevisions/main.go index e71abc725cd..c8da7501e20 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeploymentRevisions/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeploymentRevisions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeployments/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeployments/main.go index 7ba75f98f67..0cb07c7598c 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeployments/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiDeployments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecRevisions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecRevisions/main.go index 7db75c51f12..1b8e483a99b 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecRevisions/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecRevisions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecs/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecs/main.go index eb3ed232b9d..bc9a559c282 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecs/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiSpecs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiVersions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiVersions/main.go index e7f095bfa01..a73c09fd20c 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiVersions/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApiVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApis/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApis/main.go index 4aeb46fec4d..8b011b223fe 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApis/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListApis/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListArtifacts/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListArtifacts/main.go index 02bedd12f60..eb6e2c4aa2e 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListArtifacts/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListArtifacts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListLocations/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListLocations/main.go index 01a528827a4..5da8a465635 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListLocations/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListOperations/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListOperations/main.go index 0998fda1792..1f27f3cb7dc 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListOperations/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ReplaceArtifact/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ReplaceArtifact/main.go index d2f631088a9..84bb923810f 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ReplaceArtifact/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/ReplaceArtifact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiDeployment/main.go index f0845cea9a3..067fc0e8e12 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiDeployment/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiSpec/main.go index fd00e1f67d9..cef61f46ac2 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiSpec/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/RollbackApiSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/SetIamPolicy/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/SetIamPolicy/main.go index 2c5a1f6a6fe..74ae8b7669b 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiDeploymentRevision/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiDeploymentRevision/main.go index b1b0df341ef..a72870b56f6 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiDeploymentRevision/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiDeploymentRevision/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiSpecRevision/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiSpecRevision/main.go index 00f6ae9d321..3c1fb801017 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiSpecRevision/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TagApiSpecRevision/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TestIamPermissions/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TestIamPermissions/main.go index 3bb24e574a8..19d1e4725cb 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApi/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApi/main.go index aed4cd131fe..137138ed891 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApi/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApi/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiDeployment/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiDeployment/main.go index bc13c44f301..c9cc48520da 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiDeployment/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiSpec/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiSpec/main.go index 059a97d3a23..bd3ca645570 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiSpec/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiVersion/main.go b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiVersion/main.go index 0a7d50089c0..2e357e3cfc7 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiVersion/main.go +++ b/internal/generated/snippets/apigeeregistry/apiv1/RegistryClient/UpdateApiVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apigeeregistry.NewRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apigeeregistry/apiv1/snippet_metadata.google.cloud.apigeeregistry.v1.json b/internal/generated/snippets/apigeeregistry/apiv1/snippet_metadata.google.cloud.apigeeregistry.v1.json index 1573a76e3e0..a88bafef1e3 100644 --- a/internal/generated/snippets/apigeeregistry/apiv1/snippet_metadata.google.cloud.apigeeregistry.v1.json +++ b/internal/generated/snippets/apigeeregistry/apiv1/snippet_metadata.google.cloud.apigeeregistry.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -601,7 +601,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -647,7 +647,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -876,7 +876,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -921,7 +921,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -967,7 +967,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1012,7 +1012,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1058,7 +1058,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1103,7 +1103,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1148,7 +1148,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1193,7 +1193,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1239,7 +1239,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1285,7 +1285,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1331,7 +1331,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1377,7 +1377,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1423,7 +1423,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1469,7 +1469,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1515,7 +1515,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1561,7 +1561,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1607,7 +1607,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1653,7 +1653,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1699,7 +1699,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1745,7 +1745,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1791,7 +1791,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1837,7 +1837,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1883,7 +1883,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1929,7 +1929,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1975,7 +1975,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2021,7 +2021,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2067,7 +2067,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2113,7 +2113,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2159,7 +2159,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2205,7 +2205,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2251,7 +2251,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2297,7 +2297,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2343,7 +2343,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2389,7 +2389,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2435,7 +2435,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2481,7 +2481,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2527,7 +2527,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2573,7 +2573,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/apikeys/apiv2/Client/CreateKey/main.go b/internal/generated/snippets/apikeys/apiv2/Client/CreateKey/main.go index b130d1e8351..c39372ea01d 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/CreateKey/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/CreateKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/Client/DeleteKey/main.go b/internal/generated/snippets/apikeys/apiv2/Client/DeleteKey/main.go index f9d87331fe8..8de5c046e34 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/DeleteKey/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/DeleteKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/Client/GetKey/main.go b/internal/generated/snippets/apikeys/apiv2/Client/GetKey/main.go index deda7c13f70..a740f29e963 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/GetKey/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/GetKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/Client/GetKeyString/main.go b/internal/generated/snippets/apikeys/apiv2/Client/GetKeyString/main.go index 5b3fbd26d33..999ff5d5f79 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/GetKeyString/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/GetKeyString/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/Client/GetOperation/main.go b/internal/generated/snippets/apikeys/apiv2/Client/GetOperation/main.go index 14709eef186..4b4c0c56b66 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/GetOperation/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/Client/ListKeys/main.go b/internal/generated/snippets/apikeys/apiv2/Client/ListKeys/main.go index 088b7701628..2b63c2fa259 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/ListKeys/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/ListKeys/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/Client/LookupKey/main.go b/internal/generated/snippets/apikeys/apiv2/Client/LookupKey/main.go index c7bad45cba2..ae69550e424 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/LookupKey/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/LookupKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/Client/UndeleteKey/main.go b/internal/generated/snippets/apikeys/apiv2/Client/UndeleteKey/main.go index 670fcae80ad..a61b096c7ea 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/UndeleteKey/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/UndeleteKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/Client/UpdateKey/main.go b/internal/generated/snippets/apikeys/apiv2/Client/UpdateKey/main.go index b7722fb2cc5..ebfa873cf48 100644 --- a/internal/generated/snippets/apikeys/apiv2/Client/UpdateKey/main.go +++ b/internal/generated/snippets/apikeys/apiv2/Client/UpdateKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apikeys.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/apikeys/apiv2/snippet_metadata.google.api.apikeys.v2.json b/internal/generated/snippets/apikeys/apiv2/snippet_metadata.google.api.apikeys.v2.json index b8b20fffd1c..5e2071d1d84 100644 --- a/internal/generated/snippets/apikeys/apiv2/snippet_metadata.google.api.apikeys.v2.json +++ b/internal/generated/snippets/apikeys/apiv2/snippet_metadata.google.api.apikeys.v2.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/CreateApplication/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/CreateApplication/main.go index e6d34f15221..9d0857dbf0d 100644 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/CreateApplication/main.go +++ b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/CreateApplication/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/GetApplication/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/GetApplication/main.go index 77d3211ead7..9532f658e01 100644 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/GetApplication/main.go +++ b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/GetApplication/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/RepairApplication/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/RepairApplication/main.go index 99948db3771..62404b6e67c 100644 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/RepairApplication/main.go +++ b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/RepairApplication/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/UpdateApplication/main.go b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/UpdateApplication/main.go index ae365f49b30..fbbfb652be4 100644 --- a/internal/generated/snippets/appengine/apiv1/ApplicationsClient/UpdateApplication/main.go +++ b/internal/generated/snippets/appengine/apiv1/ApplicationsClient/UpdateApplication/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewApplicationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/CreateAuthorizedCertificate/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/CreateAuthorizedCertificate/main.go index 74345222068..10171ce2076 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/CreateAuthorizedCertificate/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/CreateAuthorizedCertificate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/DeleteAuthorizedCertificate/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/DeleteAuthorizedCertificate/main.go index 07b0f722ec6..46b7691030a 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/DeleteAuthorizedCertificate/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/DeleteAuthorizedCertificate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/GetAuthorizedCertificate/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/GetAuthorizedCertificate/main.go index 4c2a905d347..5fb25011e72 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/GetAuthorizedCertificate/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/GetAuthorizedCertificate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/ListAuthorizedCertificates/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/ListAuthorizedCertificates/main.go index f67828985f5..6bf612dae39 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/ListAuthorizedCertificates/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/ListAuthorizedCertificates/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/UpdateAuthorizedCertificate/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/UpdateAuthorizedCertificate/main.go index e39315586ee..f7334bb7bf8 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/UpdateAuthorizedCertificate/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedCertificatesClient/UpdateAuthorizedCertificate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedCertificatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/ListAuthorizedDomains/main.go b/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/ListAuthorizedDomains/main.go index baa6e4f8e36..83ff6cf6fe9 100644 --- a/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/ListAuthorizedDomains/main.go +++ b/internal/generated/snippets/appengine/apiv1/AuthorizedDomainsClient/ListAuthorizedDomains/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewAuthorizedDomainsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/CreateDomainMapping/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/CreateDomainMapping/main.go index b39ef369e76..9330547070b 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/CreateDomainMapping/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/CreateDomainMapping/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/DeleteDomainMapping/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/DeleteDomainMapping/main.go index 379c8d55dc9..8b19526f856 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/DeleteDomainMapping/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/DeleteDomainMapping/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/GetDomainMapping/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/GetDomainMapping/main.go index 213777f9cbb..b6f853515f6 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/GetDomainMapping/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/GetDomainMapping/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/ListDomainMappings/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/ListDomainMappings/main.go index b203c4e56e0..3d95abd4ff8 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/ListDomainMappings/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/ListDomainMappings/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/UpdateDomainMapping/main.go b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/UpdateDomainMapping/main.go index 3b17a0663ac..644d5d229bd 100644 --- a/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/UpdateDomainMapping/main.go +++ b/internal/generated/snippets/appengine/apiv1/DomainMappingsClient/UpdateDomainMapping/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewDomainMappingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/BatchUpdateIngressRules/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/BatchUpdateIngressRules/main.go index 406040f6274..cfe102e609d 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/BatchUpdateIngressRules/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/BatchUpdateIngressRules/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/CreateIngressRule/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/CreateIngressRule/main.go index 3562e70e42d..43c6dc97a4d 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/CreateIngressRule/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/CreateIngressRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/DeleteIngressRule/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/DeleteIngressRule/main.go index a5736e799c6..90bcae00973 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/DeleteIngressRule/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/DeleteIngressRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/GetIngressRule/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/GetIngressRule/main.go index 15c0c188121..a3d956ceaa7 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/GetIngressRule/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/GetIngressRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/ListIngressRules/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/ListIngressRules/main.go index e60576e0cbe..c86b676076e 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/ListIngressRules/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/ListIngressRules/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/FirewallClient/UpdateIngressRule/main.go b/internal/generated/snippets/appengine/apiv1/FirewallClient/UpdateIngressRule/main.go index 1ab707a76c7..9f53451fac4 100644 --- a/internal/generated/snippets/appengine/apiv1/FirewallClient/UpdateIngressRule/main.go +++ b/internal/generated/snippets/appengine/apiv1/FirewallClient/UpdateIngressRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewFirewallClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/DebugInstance/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/DebugInstance/main.go index de70ee7852d..009d7e0047c 100644 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/DebugInstance/main.go +++ b/internal/generated/snippets/appengine/apiv1/InstancesClient/DebugInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/DeleteInstance/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/DeleteInstance/main.go index d6b661d2edc..18cdb5dc241 100644 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/DeleteInstance/main.go +++ b/internal/generated/snippets/appengine/apiv1/InstancesClient/DeleteInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/GetInstance/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/GetInstance/main.go index a259013a991..956c2011a8d 100644 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/GetInstance/main.go +++ b/internal/generated/snippets/appengine/apiv1/InstancesClient/GetInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/InstancesClient/ListInstances/main.go b/internal/generated/snippets/appengine/apiv1/InstancesClient/ListInstances/main.go index c920f52164d..ba87ede07a6 100644 --- a/internal/generated/snippets/appengine/apiv1/InstancesClient/ListInstances/main.go +++ b/internal/generated/snippets/appengine/apiv1/InstancesClient/ListInstances/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewInstancesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/DeleteService/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/DeleteService/main.go index 56bf12dd401..0995d4afe42 100644 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/DeleteService/main.go +++ b/internal/generated/snippets/appengine/apiv1/ServicesClient/DeleteService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/GetService/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/GetService/main.go index ef37ecf1d63..c7af122b61a 100644 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/GetService/main.go +++ b/internal/generated/snippets/appengine/apiv1/ServicesClient/GetService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/ListServices/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/ListServices/main.go index 2f21fd3b7f2..3df3d58113d 100644 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/ListServices/main.go +++ b/internal/generated/snippets/appengine/apiv1/ServicesClient/ListServices/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/ServicesClient/UpdateService/main.go b/internal/generated/snippets/appengine/apiv1/ServicesClient/UpdateService/main.go index 159c5a8a87f..9644842cb4b 100644 --- a/internal/generated/snippets/appengine/apiv1/ServicesClient/UpdateService/main.go +++ b/internal/generated/snippets/appengine/apiv1/ServicesClient/UpdateService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewServicesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/CreateVersion/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/CreateVersion/main.go index 6fdbbc56353..bb443109c6f 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/CreateVersion/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/CreateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/DeleteVersion/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/DeleteVersion/main.go index e2eed605961..15373be849e 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/DeleteVersion/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/DeleteVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/GetVersion/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/GetVersion/main.go index 1ce3542b704..b2708a679b7 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/GetVersion/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/GetVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/ListVersions/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/ListVersions/main.go index 881a1247515..a18b4584258 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/ListVersions/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/ListVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/VersionsClient/UpdateVersion/main.go b/internal/generated/snippets/appengine/apiv1/VersionsClient/UpdateVersion/main.go index a3a971acb39..6df82b88786 100644 --- a/internal/generated/snippets/appengine/apiv1/VersionsClient/UpdateVersion/main.go +++ b/internal/generated/snippets/appengine/apiv1/VersionsClient/UpdateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appengine.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/appengine/apiv1/snippet_metadata.google.appengine.v1.json b/internal/generated/snippets/appengine/apiv1/snippet_metadata.google.appengine.v1.json index 6d3c1191ab4..040aab3c75e 100644 --- a/internal/generated/snippets/appengine/apiv1/snippet_metadata.google.appengine.v1.json +++ b/internal/generated/snippets/appengine/apiv1/snippet_metadata.google.appengine.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -465,7 +465,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -511,7 +511,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -557,7 +557,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -603,7 +603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -649,7 +649,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -695,7 +695,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -741,7 +741,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -787,7 +787,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -832,7 +832,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -878,7 +878,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -924,7 +924,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -970,7 +970,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1016,7 +1016,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1062,7 +1062,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1108,7 +1108,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1154,7 +1154,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1200,7 +1200,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1246,7 +1246,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1292,7 +1292,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1338,7 +1338,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1384,7 +1384,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1430,7 +1430,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1476,7 +1476,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1522,7 +1522,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1568,7 +1568,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] 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 77061630646..4d2a28b5145 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchCreateRows/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchCreateRows/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 d73dfbf7541..c6e377749bc 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchDeleteRows/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchDeleteRows/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 a403980839a..66ae618381b 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchUpdateRows/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/BatchUpdateRows/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 a9198d8bd78..2d466c626b6 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/CreateRow/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/CreateRow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 a734c792142..7f603bf0468 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/DeleteRow/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/DeleteRow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 4d50e9b970d..f5829ead18f 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetRow/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetRow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 f086c4b05fa..7fceed4951a 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetTable/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetTable/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 4ee7327ef1b..4f6ca776be4 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetWorkspace/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/GetWorkspace/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 f1d815a5359..0b9f117de07 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListRows/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListRows/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 0b881d5346a..270b416d6e1 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListTables/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListTables/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 0a63fbf6a79..dc547208951 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListWorkspaces/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/ListWorkspaces/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. 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 3bc268ffadc..3c9203daafb 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/Client/UpdateRow/main.go +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/Client/UpdateRow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tables.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/area120/tables/apiv1alpha1/snippet_metadata.google.area120.tables.v1alpha1.json b/internal/generated/snippets/area120/tables/apiv1alpha1/snippet_metadata.google.area120.tables.v1alpha1.json index 1efd0e1510e..de1ebcca5f4 100644 --- a/internal/generated/snippets/area120/tables/apiv1alpha1/snippet_metadata.google.area120.tables.v1alpha1.json +++ b/internal/generated/snippets/area120/tables/apiv1alpha1/snippet_metadata.google.area120.tables.v1alpha1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/CreateRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/CreateRepository/main.go index a8b949dcda5..6608a463431 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/CreateRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/CreateRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/CreateTag/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/CreateTag/main.go index bd5efed0da9..056626f0ce3 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/CreateTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/CreateTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/DeletePackage/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/DeletePackage/main.go index c13cd755501..420059e843c 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/DeletePackage/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/DeletePackage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteRepository/main.go index fd617883bb8..8e32abfc1a1 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteTag/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteTag/main.go index a9273605a5e..07d8475a1f6 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteVersion/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteVersion/main.go index 971fae8790d..b32a230b29a 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteVersion/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/DeleteVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/GetDockerImage/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/GetDockerImage/main.go index 3505e45737b..f704448bd37 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/GetDockerImage/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/GetDockerImage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/GetFile/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/GetFile/main.go index bd8994897dc..f866a45cb79 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/GetFile/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/GetFile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/GetIamPolicy/main.go index 938f4a33744..13fef6da142 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/GetPackage/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/GetPackage/main.go index 0d1092ed684..025947d41c3 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/GetPackage/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/GetPackage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/GetProjectSettings/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/GetProjectSettings/main.go index e11278c92c4..99a35114817 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/GetProjectSettings/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/GetProjectSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/GetRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/GetRepository/main.go index 0b733d22244..15001a1f525 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/GetRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/GetRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/GetTag/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/GetTag/main.go index 829367e97a9..fcc99f02ae0 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/GetTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/GetTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/GetVersion/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/GetVersion/main.go index 72ba15d389e..80023de27fc 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/GetVersion/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/GetVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/ImportAptArtifacts/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/ImportAptArtifacts/main.go index a10cc2dad4d..21ed14aff66 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/ImportAptArtifacts/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/ImportAptArtifacts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/ImportYumArtifacts/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/ImportYumArtifacts/main.go index e410129fe0e..a887a3a8d6b 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/ImportYumArtifacts/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/ImportYumArtifacts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/ListDockerImages/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/ListDockerImages/main.go index 8a19b892c1b..ece9635d1ef 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/ListDockerImages/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/ListDockerImages/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/ListFiles/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/ListFiles/main.go index bb9b95b4315..8eb17fb3c7e 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/ListFiles/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/ListFiles/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/ListPackages/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/ListPackages/main.go index 86a323b0cc8..50373f30f92 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/ListPackages/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/ListPackages/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/ListRepositories/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/ListRepositories/main.go index cd5415ed030..a857e167ba6 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/ListRepositories/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/ListRepositories/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/ListTags/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/ListTags/main.go index f70b02d878a..005404b5608 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/ListTags/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/ListTags/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/ListVersions/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/ListVersions/main.go index 109bd350f25..ca464e09be8 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/ListVersions/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/ListVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/SetIamPolicy/main.go index 9ad1def9a2e..eed6acafd97 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/TestIamPermissions/main.go index e34d11a62ab..07a000477c2 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateProjectSettings/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateProjectSettings/main.go index 39e8a53ebac..a2c7d05d667 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateProjectSettings/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateProjectSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateRepository/main.go index 182d6094970..e3718706af0 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateTag/main.go b/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateTag/main.go index b19bc48c9b6..e27494dfc1d 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1/Client/UpdateTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1/snippet_metadata.google.devtools.artifactregistry.v1.json b/internal/generated/snippets/artifactregistry/apiv1/snippet_metadata.google.devtools.artifactregistry.v1.json index bb06efdf3c4..7bc98b9dbe1 100644 --- a/internal/generated/snippets/artifactregistry/apiv1/snippet_metadata.google.devtools.artifactregistry.v1.json +++ b/internal/generated/snippets/artifactregistry/apiv1/snippet_metadata.google.devtools.artifactregistry.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -465,7 +465,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -511,7 +511,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -557,7 +557,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -603,7 +603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -649,7 +649,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -695,7 +695,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -741,7 +741,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -787,7 +787,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -833,7 +833,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -879,7 +879,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -925,7 +925,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -971,7 +971,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1017,7 +1017,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1063,7 +1063,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1109,7 +1109,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1155,7 +1155,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1201,7 +1201,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1247,7 +1247,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateRepository/main.go index 7b8a78d90b9..b25e10cab08 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateTag/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateTag/main.go index c1419c10b89..3bd42061f40 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/CreateTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeletePackage/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeletePackage/main.go index e750fa84b23..f2e59777db7 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeletePackage/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeletePackage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteRepository/main.go index 184c8ac1762..a0a48d4552a 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteTag/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteTag/main.go index 1683494e6ff..0c309871631 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteVersion/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteVersion/main.go index e71d3b0f24e..aa5d627f1cc 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteVersion/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/DeleteVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetFile/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetFile/main.go index 54be04a75d5..8cfb4cf9266 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetFile/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetFile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetIamPolicy/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetIamPolicy/main.go index dadfc542035..f3206429f20 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetPackage/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetPackage/main.go index b6acda4028a..5a9ff944e58 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetPackage/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetPackage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetProjectSettings/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetProjectSettings/main.go index 974c3b8bb49..004c280a4d0 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetProjectSettings/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetProjectSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetRepository/main.go index 0b99db039cd..230a938e4cc 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetTag/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetTag/main.go index 6a313c2c982..0f14d61087a 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetVersion/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetVersion/main.go index 5da953cd410..1a0f6bd04b0 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetVersion/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/GetVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ImportAptArtifacts/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ImportAptArtifacts/main.go index b7c4ca190c5..fd04b159577 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ImportAptArtifacts/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ImportAptArtifacts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ImportYumArtifacts/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ImportYumArtifacts/main.go index f31652d0527..2cff97535fe 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ImportYumArtifacts/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ImportYumArtifacts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListFiles/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListFiles/main.go index bd16930ca9c..c6741724198 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListFiles/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListFiles/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListPackages/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListPackages/main.go index d2a197a763e..0dbde19b5aa 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListPackages/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListPackages/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListRepositories/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListRepositories/main.go index 8ba364f4df0..1015cdcd5ec 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListRepositories/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListRepositories/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListTags/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListTags/main.go index 08f251fdec6..033be056ed9 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListTags/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListTags/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListVersions/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListVersions/main.go index 18248688698..df619a71de2 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListVersions/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/ListVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/SetIamPolicy/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/SetIamPolicy/main.go index 6c2e907a003..f85975081d2 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/TestIamPermissions/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/TestIamPermissions/main.go index 5c9d37dc8d7..3a4bad7f15b 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateProjectSettings/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateProjectSettings/main.go index 286b0bff26c..589e896cfd0 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateProjectSettings/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateProjectSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateRepository/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateRepository/main.go index f90bf1c40bc..72825f6fea3 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateRepository/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateTag/main.go b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateTag/main.go index 23548c1e96a..416c33e7b2b 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateTag/main.go +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/Client/UpdateTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := artifactregistry.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/artifactregistry/apiv1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json b/internal/generated/snippets/artifactregistry/apiv1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json index 17656ec063f..e3cf5b7fbc3 100644 --- a/internal/generated/snippets/artifactregistry/apiv1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json +++ b/internal/generated/snippets/artifactregistry/apiv1beta2/snippet_metadata.google.devtools.artifactregistry.v1beta2.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -465,7 +465,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -511,7 +511,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -557,7 +557,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -603,7 +603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -649,7 +649,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -695,7 +695,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -741,7 +741,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -787,7 +787,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -833,7 +833,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -879,7 +879,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -925,7 +925,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -971,7 +971,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1017,7 +1017,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1063,7 +1063,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1109,7 +1109,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1155,7 +1155,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicy/main.go b/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicy/main.go index aa559df9f0a..710df6177d3 100644 --- a/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicy/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicyLongrunning/main.go b/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicyLongrunning/main.go index d77471abf45..f88df99c03f 100644 --- a/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicyLongrunning/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/AnalyzeIamPolicyLongrunning/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/AnalyzeMove/main.go b/internal/generated/snippets/asset/apiv1/Client/AnalyzeMove/main.go index 4841c4d1d95..a48afc6d7a7 100644 --- a/internal/generated/snippets/asset/apiv1/Client/AnalyzeMove/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/AnalyzeMove/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/BatchGetAssetsHistory/main.go b/internal/generated/snippets/asset/apiv1/Client/BatchGetAssetsHistory/main.go index 96f43901c6e..2c7187769a0 100644 --- a/internal/generated/snippets/asset/apiv1/Client/BatchGetAssetsHistory/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/BatchGetAssetsHistory/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/BatchGetEffectiveIamPolicies/main.go b/internal/generated/snippets/asset/apiv1/Client/BatchGetEffectiveIamPolicies/main.go index 55a42fb87ef..c4c0dcafb19 100644 --- a/internal/generated/snippets/asset/apiv1/Client/BatchGetEffectiveIamPolicies/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/BatchGetEffectiveIamPolicies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/CreateFeed/main.go b/internal/generated/snippets/asset/apiv1/Client/CreateFeed/main.go index 409e3e311ba..2dae200eaa5 100644 --- a/internal/generated/snippets/asset/apiv1/Client/CreateFeed/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/CreateFeed/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/CreateSavedQuery/main.go b/internal/generated/snippets/asset/apiv1/Client/CreateSavedQuery/main.go index cefc825850e..46b5de07139 100644 --- a/internal/generated/snippets/asset/apiv1/Client/CreateSavedQuery/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/CreateSavedQuery/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/DeleteFeed/main.go b/internal/generated/snippets/asset/apiv1/Client/DeleteFeed/main.go index eb317df96d5..2310f978c69 100644 --- a/internal/generated/snippets/asset/apiv1/Client/DeleteFeed/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/DeleteFeed/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/DeleteSavedQuery/main.go b/internal/generated/snippets/asset/apiv1/Client/DeleteSavedQuery/main.go index 47a7e8ec78d..fd39a19bc98 100644 --- a/internal/generated/snippets/asset/apiv1/Client/DeleteSavedQuery/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/DeleteSavedQuery/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/ExportAssets/main.go b/internal/generated/snippets/asset/apiv1/Client/ExportAssets/main.go index 8c9e5fbc156..ccc1124c4b8 100644 --- a/internal/generated/snippets/asset/apiv1/Client/ExportAssets/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/ExportAssets/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/GetFeed/main.go b/internal/generated/snippets/asset/apiv1/Client/GetFeed/main.go index fac429c687e..df12cad10c7 100644 --- a/internal/generated/snippets/asset/apiv1/Client/GetFeed/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/GetFeed/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/asset/apiv1/Client/GetOperation/main.go index f60d2c0a4e8..fff305d25ce 100644 --- a/internal/generated/snippets/asset/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/GetSavedQuery/main.go b/internal/generated/snippets/asset/apiv1/Client/GetSavedQuery/main.go index c3a4037a85c..787c36207ad 100644 --- a/internal/generated/snippets/asset/apiv1/Client/GetSavedQuery/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/GetSavedQuery/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/ListAssets/main.go b/internal/generated/snippets/asset/apiv1/Client/ListAssets/main.go index 46ae26db13b..f6de9872587 100644 --- a/internal/generated/snippets/asset/apiv1/Client/ListAssets/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/ListAssets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/ListFeeds/main.go b/internal/generated/snippets/asset/apiv1/Client/ListFeeds/main.go index df87be96fdb..180cb2a6dd4 100644 --- a/internal/generated/snippets/asset/apiv1/Client/ListFeeds/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/ListFeeds/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/ListSavedQueries/main.go b/internal/generated/snippets/asset/apiv1/Client/ListSavedQueries/main.go index 42cf479e041..bc2f7c4908a 100644 --- a/internal/generated/snippets/asset/apiv1/Client/ListSavedQueries/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/ListSavedQueries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/QueryAssets/main.go b/internal/generated/snippets/asset/apiv1/Client/QueryAssets/main.go index 8b2d45bf85b..090e0f0c976 100644 --- a/internal/generated/snippets/asset/apiv1/Client/QueryAssets/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/QueryAssets/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/SearchAllIamPolicies/main.go b/internal/generated/snippets/asset/apiv1/Client/SearchAllIamPolicies/main.go index 743cabc1e2e..544a0d2b314 100644 --- a/internal/generated/snippets/asset/apiv1/Client/SearchAllIamPolicies/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/SearchAllIamPolicies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/SearchAllResources/main.go b/internal/generated/snippets/asset/apiv1/Client/SearchAllResources/main.go index 0a6221ec004..7f6f35729bb 100644 --- a/internal/generated/snippets/asset/apiv1/Client/SearchAllResources/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/SearchAllResources/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/UpdateFeed/main.go b/internal/generated/snippets/asset/apiv1/Client/UpdateFeed/main.go index e5c34b80261..920a80a6d28 100644 --- a/internal/generated/snippets/asset/apiv1/Client/UpdateFeed/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/UpdateFeed/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/Client/UpdateSavedQuery/main.go b/internal/generated/snippets/asset/apiv1/Client/UpdateSavedQuery/main.go index 6a37bba872f..be2ba23d546 100644 --- a/internal/generated/snippets/asset/apiv1/Client/UpdateSavedQuery/main.go +++ b/internal/generated/snippets/asset/apiv1/Client/UpdateSavedQuery/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1/snippet_metadata.google.cloud.asset.v1.json b/internal/generated/snippets/asset/apiv1/snippet_metadata.google.cloud.asset.v1.json index b3613c4311d..d5cb1254e3e 100644 --- a/internal/generated/snippets/asset/apiv1/snippet_metadata.google.cloud.asset.v1.json +++ b/internal/generated/snippets/asset/apiv1/snippet_metadata.google.cloud.asset.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -832,7 +832,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -878,7 +878,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -924,7 +924,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -970,7 +970,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/CreateFeed/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/CreateFeed/main.go index e8d480c5af4..19587528d7a 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/CreateFeed/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/CreateFeed/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/DeleteFeed/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/DeleteFeed/main.go index 6967891647d..d364b9dc9bd 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/DeleteFeed/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/DeleteFeed/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/GetFeed/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/GetFeed/main.go index adfa9860c05..25e7ade2fb6 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/GetFeed/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/GetFeed/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/ListFeeds/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/ListFeeds/main.go index 57c784a1224..ab5bb891fe9 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/ListFeeds/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/ListFeeds/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1p2beta1/Client/UpdateFeed/main.go b/internal/generated/snippets/asset/apiv1p2beta1/Client/UpdateFeed/main.go index b228160e94e..c6cfe99da66 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/Client/UpdateFeed/main.go +++ b/internal/generated/snippets/asset/apiv1p2beta1/Client/UpdateFeed/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1p2beta1/snippet_metadata.google.cloud.asset.v1p2beta1.json b/internal/generated/snippets/asset/apiv1p2beta1/snippet_metadata.google.cloud.asset.v1p2beta1.json index ca89c0e8c2f..d26153295d0 100644 --- a/internal/generated/snippets/asset/apiv1p2beta1/snippet_metadata.google.cloud.asset.v1p2beta1.json +++ b/internal/generated/snippets/asset/apiv1p2beta1/snippet_metadata.google.cloud.asset.v1p2beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/asset/apiv1p5beta1/Client/ListAssets/main.go b/internal/generated/snippets/asset/apiv1p5beta1/Client/ListAssets/main.go index 0b65ab0d605..04c5558a1d1 100644 --- a/internal/generated/snippets/asset/apiv1p5beta1/Client/ListAssets/main.go +++ b/internal/generated/snippets/asset/apiv1p5beta1/Client/ListAssets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := asset.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/asset/apiv1p5beta1/snippet_metadata.google.cloud.asset.v1p5beta1.json b/internal/generated/snippets/asset/apiv1p5beta1/snippet_metadata.google.cloud.asset.v1p5beta1.json index 78b36c88ab3..e1341eed50b 100644 --- a/internal/generated/snippets/asset/apiv1p5beta1/snippet_metadata.google.cloud.asset.v1p5beta1.json +++ b/internal/generated/snippets/asset/apiv1p5beta1/snippet_metadata.google.cloud.asset.v1p5beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] diff --git a/internal/generated/snippets/assuredworkloads/apiv1/Client/CreateWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1/Client/CreateWorkload/main.go index c0efb04a3e0..291dda397cc 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1/Client/CreateWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1/Client/CreateWorkload/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1/Client/DeleteWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1/Client/DeleteWorkload/main.go index e6c0654f9cb..b2af863d2e7 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1/Client/DeleteWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1/Client/DeleteWorkload/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1/Client/GetWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1/Client/GetWorkload/main.go index 4eed2980a3e..af725cf8e4b 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1/Client/GetWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1/Client/GetWorkload/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1/Client/ListWorkloads/main.go b/internal/generated/snippets/assuredworkloads/apiv1/Client/ListWorkloads/main.go index 355a34b8d73..a046d0fd01b 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1/Client/ListWorkloads/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1/Client/ListWorkloads/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1/Client/UpdateWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1/Client/UpdateWorkload/main.go index 7729a9dd5cd..6d33faf60eb 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1/Client/UpdateWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1/Client/UpdateWorkload/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1/snippet_metadata.google.cloud.assuredworkloads.v1.json b/internal/generated/snippets/assuredworkloads/apiv1/snippet_metadata.google.cloud.assuredworkloads.v1.json index 7b745dacd89..f54dabfebc6 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1/snippet_metadata.google.cloud.assuredworkloads.v1.json +++ b/internal/generated/snippets/assuredworkloads/apiv1/snippet_metadata.google.cloud.assuredworkloads.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/assuredworkloads/apiv1", - "version": "1.2.0", + "version": "1.3.0", "language": "GO", "apis": [ { @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/AnalyzeWorkloadMove/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/AnalyzeWorkloadMove/main.go index ae9dc09b2c8..360f30d8e1d 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/AnalyzeWorkloadMove/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/AnalyzeWorkloadMove/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/CreateWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/CreateWorkload/main.go index 0b8e5d7ad4c..17c17d9569d 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/CreateWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/CreateWorkload/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/DeleteWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/DeleteWorkload/main.go index 40697b517df..3b9e38e1311 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/DeleteWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/DeleteWorkload/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetOperation/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetOperation/main.go index c2ba6cb1a28..da378d522d8 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetOperation/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetWorkload/main.go index e58faf9f489..6a08d3de237 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/GetWorkload/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListOperations/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListOperations/main.go index 86ee12116e8..a1b91bb7959 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListOperations/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListWorkloads/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListWorkloads/main.go index 069f9a7c6cc..168f8fe4502 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListWorkloads/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/ListWorkloads/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/RestrictAllowedResources/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/RestrictAllowedResources/main.go index a687293cf6b..fcbb10e1e14 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/RestrictAllowedResources/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/RestrictAllowedResources/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/UpdateWorkload/main.go b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/UpdateWorkload/main.go index 6127b3fd5c2..cc3d371741e 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/UpdateWorkload/main.go +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/Client/UpdateWorkload/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := assuredworkloads.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/assuredworkloads/apiv1beta1/snippet_metadata.google.cloud.assuredworkloads.v1beta1.json b/internal/generated/snippets/assuredworkloads/apiv1beta1/snippet_metadata.google.cloud.assuredworkloads.v1beta1.json index 3862b988770..57d7639a4a7 100644 --- a/internal/generated/snippets/assuredworkloads/apiv1beta1/snippet_metadata.google.cloud.assuredworkloads.v1beta1.json +++ b/internal/generated/snippets/assuredworkloads/apiv1beta1/snippet_metadata.google.cloud.assuredworkloads.v1beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/assuredworkloads/apiv1beta1", - "version": "1.2.0", + "version": "1.3.0", "language": "GO", "apis": [ { @@ -14,7 +14,7 @@ { "regionTag": "assuredworkloads_v1beta1_generated_AssuredWorkloadsService_AnalyzeWorkloadMove_sync", "title": "assuredworkloads AnalyzeWorkloadMove Sample", - "description": "AnalyzeWorkloadMove a request to analyze a hypothetical move of a source project or\nproject-based workload to a target (destination) folder-based workload.", + "description": "AnalyzeWorkloadMove analyze if the source Assured Workloads can be moved to the target Assured\nWorkload", "file": "Client/AnalyzeWorkloadMove/main.go", "language": "GO", "clientMethod": { @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/automl/apiv1/Client/CreateDataset/main.go b/internal/generated/snippets/automl/apiv1/Client/CreateDataset/main.go index 62290cd07b8..5ae91d8ab21 100644 --- a/internal/generated/snippets/automl/apiv1/Client/CreateDataset/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/CreateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/CreateModel/main.go b/internal/generated/snippets/automl/apiv1/Client/CreateModel/main.go index c9bedb0062d..c958f0c6237 100644 --- a/internal/generated/snippets/automl/apiv1/Client/CreateModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/CreateModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/DeleteDataset/main.go b/internal/generated/snippets/automl/apiv1/Client/DeleteDataset/main.go index 5d7c01608ef..b5b769f7412 100644 --- a/internal/generated/snippets/automl/apiv1/Client/DeleteDataset/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/DeleteDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/DeleteModel/main.go b/internal/generated/snippets/automl/apiv1/Client/DeleteModel/main.go index f4e78baec65..60d566b9853 100644 --- a/internal/generated/snippets/automl/apiv1/Client/DeleteModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/DeleteModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/DeployModel/main.go b/internal/generated/snippets/automl/apiv1/Client/DeployModel/main.go index db591d6299e..0eb62cbffb8 100644 --- a/internal/generated/snippets/automl/apiv1/Client/DeployModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/DeployModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/ExportData/main.go b/internal/generated/snippets/automl/apiv1/Client/ExportData/main.go index 5c5178304b1..79609af7790 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ExportData/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ExportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/ExportModel/main.go b/internal/generated/snippets/automl/apiv1/Client/ExportModel/main.go index f6a6233c183..f56ad007d97 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ExportModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ExportModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/GetAnnotationSpec/main.go b/internal/generated/snippets/automl/apiv1/Client/GetAnnotationSpec/main.go index 416254f3426..1d23d809fa7 100644 --- a/internal/generated/snippets/automl/apiv1/Client/GetAnnotationSpec/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/GetAnnotationSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/GetDataset/main.go b/internal/generated/snippets/automl/apiv1/Client/GetDataset/main.go index 9fdc1a5b222..7650cbd2e7f 100644 --- a/internal/generated/snippets/automl/apiv1/Client/GetDataset/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/GetDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/GetModel/main.go b/internal/generated/snippets/automl/apiv1/Client/GetModel/main.go index 4ef60f5daf8..e8ab7603541 100644 --- a/internal/generated/snippets/automl/apiv1/Client/GetModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/GetModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/GetModelEvaluation/main.go b/internal/generated/snippets/automl/apiv1/Client/GetModelEvaluation/main.go index 78b4c07b092..c14cb1e6bc2 100644 --- a/internal/generated/snippets/automl/apiv1/Client/GetModelEvaluation/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/GetModelEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/ImportData/main.go b/internal/generated/snippets/automl/apiv1/Client/ImportData/main.go index 5ea971d8162..9a29703e42d 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ImportData/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ImportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/ListDatasets/main.go b/internal/generated/snippets/automl/apiv1/Client/ListDatasets/main.go index fb77e2f3c8c..01371980c17 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ListDatasets/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ListDatasets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/ListModelEvaluations/main.go b/internal/generated/snippets/automl/apiv1/Client/ListModelEvaluations/main.go index 0e046b3775e..4443fff364e 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ListModelEvaluations/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ListModelEvaluations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/ListModels/main.go b/internal/generated/snippets/automl/apiv1/Client/ListModels/main.go index 3e717ca8e60..502384766e3 100644 --- a/internal/generated/snippets/automl/apiv1/Client/ListModels/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/ListModels/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/UndeployModel/main.go b/internal/generated/snippets/automl/apiv1/Client/UndeployModel/main.go index 67c3821351b..29a1a6ad2e9 100644 --- a/internal/generated/snippets/automl/apiv1/Client/UndeployModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/UndeployModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/UpdateDataset/main.go b/internal/generated/snippets/automl/apiv1/Client/UpdateDataset/main.go index 6ae0d329bce..3ddc8afcdb3 100644 --- a/internal/generated/snippets/automl/apiv1/Client/UpdateDataset/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/UpdateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/Client/UpdateModel/main.go b/internal/generated/snippets/automl/apiv1/Client/UpdateModel/main.go index e38d4a4fe05..46a821c557e 100644 --- a/internal/generated/snippets/automl/apiv1/Client/UpdateModel/main.go +++ b/internal/generated/snippets/automl/apiv1/Client/UpdateModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/PredictionClient/BatchPredict/main.go b/internal/generated/snippets/automl/apiv1/PredictionClient/BatchPredict/main.go index d659851d35b..b40a49dd2cc 100644 --- a/internal/generated/snippets/automl/apiv1/PredictionClient/BatchPredict/main.go +++ b/internal/generated/snippets/automl/apiv1/PredictionClient/BatchPredict/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/PredictionClient/Predict/main.go b/internal/generated/snippets/automl/apiv1/PredictionClient/Predict/main.go index 16181fa5597..998570f7a85 100644 --- a/internal/generated/snippets/automl/apiv1/PredictionClient/Predict/main.go +++ b/internal/generated/snippets/automl/apiv1/PredictionClient/Predict/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1/snippet_metadata.google.cloud.automl.v1.json b/internal/generated/snippets/automl/apiv1/snippet_metadata.google.cloud.automl.v1.json index 4c71fc0e9a0..5074faf3928 100644 --- a/internal/generated/snippets/automl/apiv1/snippet_metadata.google.cloud.automl.v1.json +++ b/internal/generated/snippets/automl/apiv1/snippet_metadata.google.cloud.automl.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/CreateDataset/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/CreateDataset/main.go index af6487c01e3..6f4fde3ef1c 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/CreateDataset/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/CreateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/CreateModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/CreateModel/main.go index 129f37ff772..7cff59f138d 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/CreateModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/CreateModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/DeleteDataset/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/DeleteDataset/main.go index 93814ee03c5..e75cc1a83f4 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/DeleteDataset/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/DeleteDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/DeleteModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/DeleteModel/main.go index c0404cb87fd..011c1c897e1 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/DeleteModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/DeleteModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/DeployModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/DeployModel/main.go index a959378425b..690ead272f2 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/DeployModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/DeployModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ExportData/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ExportData/main.go index dcce598bd39..792e1168938 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ExportData/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ExportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ExportEvaluatedExamples/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ExportEvaluatedExamples/main.go index 7b5f0531870..f6679e645fd 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ExportEvaluatedExamples/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ExportEvaluatedExamples/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ExportModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ExportModel/main.go index eff76908e0b..17b8ffb60c9 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ExportModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ExportModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetAnnotationSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetAnnotationSpec/main.go index e5cf45080fd..fc67793b269 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetAnnotationSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetAnnotationSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetColumnSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetColumnSpec/main.go index 8750163e1e6..be65e8d650e 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetColumnSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetColumnSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetDataset/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetDataset/main.go index 7bd58d9747e..35326cf9555 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetDataset/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetModel/main.go index e34b4c743c4..395c3fff996 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetModelEvaluation/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetModelEvaluation/main.go index 410cd6ec153..7d0d5750393 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetModelEvaluation/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetModelEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/GetTableSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/GetTableSpec/main.go index d84a5fa410b..9de33bf0a82 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/GetTableSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/GetTableSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ImportData/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ImportData/main.go index 48ba7d9cc56..f56e5403b9e 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ImportData/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ImportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListColumnSpecs/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListColumnSpecs/main.go index 8685b6dd075..272c6964e56 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListColumnSpecs/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListColumnSpecs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListDatasets/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListDatasets/main.go index 031d83953bf..ab0fb3a0f1e 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListDatasets/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListDatasets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListModelEvaluations/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListModelEvaluations/main.go index fc21abdca60..e814a0bd32b 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListModelEvaluations/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListModelEvaluations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListModels/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListModels/main.go index 4556458cae5..15c5cc452bb 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListModels/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListModels/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/ListTableSpecs/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/ListTableSpecs/main.go index 8d3f93a19db..9846fb5ff62 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/ListTableSpecs/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/ListTableSpecs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/UndeployModel/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/UndeployModel/main.go index 17f65283c07..33f556ce4f3 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/UndeployModel/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/UndeployModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateColumnSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateColumnSpec/main.go index 6acac7caaac..591c812addc 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateColumnSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateColumnSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateDataset/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateDataset/main.go index 70fc401bc08..a48f2e55fa9 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateDataset/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateTableSpec/main.go b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateTableSpec/main.go index fd81cd02112..15fea1029f0 100644 --- a/internal/generated/snippets/automl/apiv1beta1/Client/UpdateTableSpec/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/Client/UpdateTableSpec/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/BatchPredict/main.go b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/BatchPredict/main.go index f6c4d6e389a..7fe1d831c56 100644 --- a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/BatchPredict/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/BatchPredict/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/Predict/main.go b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/Predict/main.go index f96dd7a4925..f0c9cbe1d9b 100644 --- a/internal/generated/snippets/automl/apiv1beta1/PredictionClient/Predict/main.go +++ b/internal/generated/snippets/automl/apiv1beta1/PredictionClient/Predict/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := automl.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/automl/apiv1beta1/snippet_metadata.google.cloud.automl.v1beta1.json b/internal/generated/snippets/automl/apiv1beta1/snippet_metadata.google.cloud.automl.v1beta1.json index 364cd1672e6..bb73228a639 100644 --- a/internal/generated/snippets/automl/apiv1beta1/snippet_metadata.google.cloud.automl.v1beta1.json +++ b/internal/generated/snippets/automl/apiv1beta1/snippet_metadata.google.cloud.automl.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1018,7 +1018,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1064,7 +1064,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1110,7 +1110,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1156,7 +1156,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1202,7 +1202,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/DetachLun/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/DetachLun/main.go index 7330e58c88c..56d3c47ef6b 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/DetachLun/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/DetachLun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetInstance/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetInstance/main.go index e150cef9d1c..ed20f827b3a 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetInstance/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetLocation/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetLocation/main.go index c73de473d25..146b19a0f9f 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetLocation/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetLun/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetLun/main.go index 4acce02b259..39fbf822801 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetLun/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetLun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetNetwork/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetNetwork/main.go index 52b31543a83..ea5d5102835 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetNetwork/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetNetwork/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetNfsShare/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetNfsShare/main.go index 70d27566585..674eee52c74 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetNfsShare/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetNfsShare/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetVolume/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetVolume/main.go index eb022b6599c..3b093e1d825 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/GetVolume/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/GetVolume/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListInstances/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListInstances/main.go index b853eeb3cd2..e8ec3eedef8 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListInstances/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListInstances/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListLocations/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListLocations/main.go index 0e01d400210..45bab1cd4fe 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListLocations/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListLuns/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListLuns/main.go index fec7d85354d..e57587a8f9c 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListLuns/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListLuns/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNetworkUsage/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNetworkUsage/main.go index f7a0af09619..3b2d13da25c 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNetworkUsage/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNetworkUsage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNetworks/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNetworks/main.go index fd234ebbefb..24314d029d7 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNetworks/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNetworks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNfsShares/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNfsShares/main.go index 5a97c922ab6..ef057237b24 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNfsShares/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListNfsShares/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListVolumes/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListVolumes/main.go index 939546b8eee..a67f130726f 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ListVolumes/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ListVolumes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ResetInstance/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ResetInstance/main.go index 618fbf54a3b..7bf1775179b 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ResetInstance/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ResetInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/ResizeVolume/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/ResizeVolume/main.go index 585205ff385..eedcbeb2135 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/ResizeVolume/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/ResizeVolume/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/StartInstance/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/StartInstance/main.go index ce71f2ed082..e9d55cbbb05 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/StartInstance/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/StartInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/StopInstance/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/StopInstance/main.go index 8432e8c4bdb..4d47b742454 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/StopInstance/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/StopInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateInstance/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateInstance/main.go index 0e51e05b551..528d82f569a 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateInstance/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateNetwork/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateNetwork/main.go index 6d938c5449f..1f23ca9df2e 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateNetwork/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateNetwork/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateNfsShare/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateNfsShare/main.go index 20eac1056b8..cfe217b7248 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateNfsShare/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateNfsShare/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateVolume/main.go b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateVolume/main.go index 311b5e9afb0..63a6b76f020 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateVolume/main.go +++ b/internal/generated/snippets/baremetalsolution/apiv2/Client/UpdateVolume/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := baremetalsolution.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/baremetalsolution/apiv2/snippet_metadata.google.cloud.baremetalsolution.v2.json b/internal/generated/snippets/baremetalsolution/apiv2/snippet_metadata.google.cloud.baremetalsolution.v2.json index c55f6781868..646797d62e8 100644 --- a/internal/generated/snippets/baremetalsolution/apiv2/snippet_metadata.google.cloud.baremetalsolution.v2.json +++ b/internal/generated/snippets/baremetalsolution/apiv2/snippet_metadata.google.cloud.baremetalsolution.v2.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1018,7 +1018,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/batch/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/batch/apiv1/Client/CancelOperation/main.go index 4176fe9bb04..8f3e8062ddd 100644 --- a/internal/generated/snippets/batch/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/CreateJob/main.go b/internal/generated/snippets/batch/apiv1/Client/CreateJob/main.go index 50bc362b52e..07e4928814d 100644 --- a/internal/generated/snippets/batch/apiv1/Client/CreateJob/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/CreateJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/DeleteJob/main.go b/internal/generated/snippets/batch/apiv1/Client/DeleteJob/main.go index 29d4396360b..58dfa115188 100644 --- a/internal/generated/snippets/batch/apiv1/Client/DeleteJob/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/DeleteJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/batch/apiv1/Client/DeleteOperation/main.go index b5c73ffe6e4..8e694ca045c 100644 --- a/internal/generated/snippets/batch/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/batch/apiv1/Client/GetIamPolicy/main.go index 9363f14a4e0..e1e8e918400 100644 --- a/internal/generated/snippets/batch/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/GetJob/main.go b/internal/generated/snippets/batch/apiv1/Client/GetJob/main.go index a96c0795e1d..b0463a3e1db 100644 --- a/internal/generated/snippets/batch/apiv1/Client/GetJob/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/GetJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/batch/apiv1/Client/GetLocation/main.go index e614e3a6e6a..d619f071b91 100644 --- a/internal/generated/snippets/batch/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/batch/apiv1/Client/GetOperation/main.go index 4b75bcf726f..1c054fa5a7f 100644 --- a/internal/generated/snippets/batch/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/GetTask/main.go b/internal/generated/snippets/batch/apiv1/Client/GetTask/main.go index c4a3359a6f7..3c3d674f67a 100644 --- a/internal/generated/snippets/batch/apiv1/Client/GetTask/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/GetTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/ListJobs/main.go b/internal/generated/snippets/batch/apiv1/Client/ListJobs/main.go index 57441e34408..b33cafc6239 100644 --- a/internal/generated/snippets/batch/apiv1/Client/ListJobs/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/ListJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/batch/apiv1/Client/ListLocations/main.go index 8284fd78f41..fbba46927e2 100644 --- a/internal/generated/snippets/batch/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/batch/apiv1/Client/ListOperations/main.go index d0bf5c2d008..90ad8e189e4 100644 --- a/internal/generated/snippets/batch/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/ListTasks/main.go b/internal/generated/snippets/batch/apiv1/Client/ListTasks/main.go index 916017f7324..351c99641de 100644 --- a/internal/generated/snippets/batch/apiv1/Client/ListTasks/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/ListTasks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/batch/apiv1/Client/SetIamPolicy/main.go index 3ba4f08809b..3523e2c024a 100644 --- a/internal/generated/snippets/batch/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/batch/apiv1/Client/TestIamPermissions/main.go index c1e5892a7cc..ab4b5c0a965 100644 --- a/internal/generated/snippets/batch/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/batch/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := batch.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/batch/apiv1/snippet_metadata.google.cloud.batch.v1.json b/internal/generated/snippets/batch/apiv1/snippet_metadata.google.cloud.batch.v1.json index b388bec5231..07edd6e5c78 100644 --- a/internal/generated/snippets/batch/apiv1/snippet_metadata.google.cloud.batch.v1.json +++ b/internal/generated/snippets/batch/apiv1/snippet_metadata.google.cloud.batch.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/batch/apiv1", - "version": "0.1.0", + "version": "0.2.0", "language": "GO", "apis": [ { @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/CancelOperation/main.go index a44a3896e2f..8b103fb5887 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/CreateAppConnection/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/CreateAppConnection/main.go index 77e594fa6d4..beeab1996a4 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/CreateAppConnection/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/CreateAppConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/DeleteAppConnection/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/DeleteAppConnection/main.go index 51702eb7211..81f34ff90e4 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/DeleteAppConnection/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/DeleteAppConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/DeleteOperation/main.go index 96c48c4c683..c1634a196f1 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetAppConnection/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetAppConnection/main.go index f41ddc53855..adef5b20302 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetAppConnection/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetAppConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetIamPolicy/main.go index 0f009701f9b..806b634a301 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetLocation/main.go index 8ec340090c5..22cc33a8e85 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetOperation/main.go index aeb2264f5b1..ac1008a9116 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListAppConnections/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListAppConnections/main.go index 8039547679e..2e143041a3d 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListAppConnections/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListAppConnections/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListLocations/main.go index 40563414574..8b015b1ce6f 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListOperations/main.go index ea7c7cf9788..da8b21b5beb 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ResolveAppConnections/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ResolveAppConnections/main.go index adca14d3cfd..6bb1ed3ff52 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ResolveAppConnections/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/ResolveAppConnections/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/SetIamPolicy/main.go index 929a0e4c1c8..9c49a157cba 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/TestIamPermissions/main.go index 3d0a4477403..4b7e22c3e98 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/UpdateAppConnection/main.go b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/UpdateAppConnection/main.go index 14fddf9d79c..8da51407d49 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/UpdateAppConnection/main.go +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/UpdateAppConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnections.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnections/apiv1/snippet_metadata.google.cloud.beyondcorp.appconnections.v1.json b/internal/generated/snippets/beyondcorp/appconnections/apiv1/snippet_metadata.google.cloud.beyondcorp.appconnections.v1.json index 6793f190c14..96aa59ac285 100644 --- a/internal/generated/snippets/beyondcorp/appconnections/apiv1/snippet_metadata.google.cloud.beyondcorp.appconnections.v1.json +++ b/internal/generated/snippets/beyondcorp/appconnections/apiv1/snippet_metadata.google.cloud.beyondcorp.appconnections.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/CancelOperation/main.go index 816d81036dc..c6dc2d96019 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/CreateAppConnector/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/CreateAppConnector/main.go index d47803b0c4b..13cb1763cf4 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/CreateAppConnector/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/CreateAppConnector/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/DeleteAppConnector/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/DeleteAppConnector/main.go index e8a878770de..5a464e26217 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/DeleteAppConnector/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/DeleteAppConnector/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/DeleteOperation/main.go index 1126a692cff..6657c0f0fbc 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetAppConnector/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetAppConnector/main.go index 45113e1867d..5226856ffc3 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetAppConnector/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetAppConnector/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetIamPolicy/main.go index b7115adcaac..cf114fdca73 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetLocation/main.go index 23280ccb799..d8e41f31ce5 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetOperation/main.go index d81225de6bd..2959e6d4d77 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListAppConnectors/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListAppConnectors/main.go index 63b65525e20..78d866adc6b 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListAppConnectors/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListAppConnectors/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListLocations/main.go index c28a5f97d6d..3c0a81240ac 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListOperations/main.go index da50ccb38bc..a5e136fcb28 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ReportStatus/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ReportStatus/main.go index ac18d24f877..e61408ccc42 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ReportStatus/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/ReportStatus/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/SetIamPolicy/main.go index a14a06bef7c..ccbfa4ec17c 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/TestIamPermissions/main.go index b4787f02f70..ffb464b01d2 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/UpdateAppConnector/main.go b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/UpdateAppConnector/main.go index e66f44553c5..695d6fb2d00 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/UpdateAppConnector/main.go +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/Client/UpdateAppConnector/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appconnectors.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/snippet_metadata.google.cloud.beyondcorp.appconnectors.v1.json b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/snippet_metadata.google.cloud.beyondcorp.appconnectors.v1.json index 0976df9dab6..75214e803b0 100644 --- a/internal/generated/snippets/beyondcorp/appconnectors/apiv1/snippet_metadata.google.cloud.beyondcorp.appconnectors.v1.json +++ b/internal/generated/snippets/beyondcorp/appconnectors/apiv1/snippet_metadata.google.cloud.beyondcorp.appconnectors.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/CancelOperation/main.go index bb832bf5c49..17a4c225028 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/CreateAppGateway/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/CreateAppGateway/main.go index 24a74915ddb..787623d46e9 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/CreateAppGateway/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/CreateAppGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/DeleteAppGateway/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/DeleteAppGateway/main.go index 1e26dd6d987..3215b2002fc 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/DeleteAppGateway/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/DeleteAppGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/DeleteOperation/main.go index d19c55f7365..5fdc95767d3 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetAppGateway/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetAppGateway/main.go index 4638a5a6ec1..cd3d469bf20 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetAppGateway/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetAppGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetIamPolicy/main.go index 3376a62c5d8..5580c4e8fd3 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetLocation/main.go index 89857b8ed38..0319dc400b6 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetOperation/main.go index 1f139cbe9b9..586c2ab75d9 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListAppGateways/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListAppGateways/main.go index 871179d1b92..51ecdcd9091 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListAppGateways/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListAppGateways/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListLocations/main.go index 44ef9714d30..c6e026b5c6e 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListOperations/main.go index ef50e161096..da1f6b2ceac 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/SetIamPolicy/main.go index 4c06c0d07f5..10d482395ff 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/TestIamPermissions/main.go index 0a0f0e8a892..4c7eab5202a 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := appgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/appgateways/apiv1/snippet_metadata.google.cloud.beyondcorp.appgateways.v1.json b/internal/generated/snippets/beyondcorp/appgateways/apiv1/snippet_metadata.google.cloud.beyondcorp.appgateways.v1.json index 2ec13e3ba08..d6972e186a4 100644 --- a/internal/generated/snippets/beyondcorp/appgateways/apiv1/snippet_metadata.google.cloud.beyondcorp.appgateways.v1.json +++ b/internal/generated/snippets/beyondcorp/appgateways/apiv1/snippet_metadata.google.cloud.beyondcorp.appgateways.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/CancelOperation/main.go index 99ed72c37ca..c04b2c902ec 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/CreateClientConnectorService/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/CreateClientConnectorService/main.go index e3a93b767c3..d8df00ebef3 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/CreateClientConnectorService/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/CreateClientConnectorService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/DeleteClientConnectorService/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/DeleteClientConnectorService/main.go index 079d3eb1955..4ebafb46197 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/DeleteClientConnectorService/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/DeleteClientConnectorService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/DeleteOperation/main.go index 2fcc14c1e2a..4a418895092 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetClientConnectorService/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetClientConnectorService/main.go index 35b7db868c8..bfa3c80784a 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetClientConnectorService/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetClientConnectorService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetIamPolicy/main.go index dfd2dfa3ad3..b273370f576 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetLocation/main.go index 18756f00a97..b5085afa6a1 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetOperation/main.go index 209ad14c5c4..5c31a203098 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListClientConnectorServices/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListClientConnectorServices/main.go index 735a08f1729..bbca0ff0cf2 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListClientConnectorServices/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListClientConnectorServices/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListLocations/main.go index 8790280f812..f287433ed77 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListOperations/main.go index 8dfd7b4bf7a..20c7e054152 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/SetIamPolicy/main.go index c52790d53a6..6f9f7fa6c96 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/TestIamPermissions/main.go index fc1b1e04c34..16128850069 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/UpdateClientConnectorService/main.go b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/UpdateClientConnectorService/main.go index 3493c7b7e20..ff406a6ef71 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/UpdateClientConnectorService/main.go +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/Client/UpdateClientConnectorService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientconnectorservices.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/snippet_metadata.google.cloud.beyondcorp.clientconnectorservices.v1.json b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/snippet_metadata.google.cloud.beyondcorp.clientconnectorservices.v1.json index 58b6d3bfefd..88bc2b06237 100644 --- a/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/snippet_metadata.google.cloud.beyondcorp.clientconnectorservices.v1.json +++ b/internal/generated/snippets/beyondcorp/clientconnectorservices/apiv1/snippet_metadata.google.cloud.beyondcorp.clientconnectorservices.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/CancelOperation/main.go index 264c1b8ba68..04a8c2f4e49 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/CreateClientGateway/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/CreateClientGateway/main.go index dfc78521d11..5d6bb73e1c4 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/CreateClientGateway/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/CreateClientGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/DeleteClientGateway/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/DeleteClientGateway/main.go index da9e087c6bc..d73a1e8898e 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/DeleteClientGateway/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/DeleteClientGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/DeleteOperation/main.go index 22e72c9065c..21751c4b067 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetClientGateway/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetClientGateway/main.go index a31efb49520..8864ea1efd9 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetClientGateway/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetClientGateway/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetIamPolicy/main.go index 1172530c85e..aeea14bb654 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetLocation/main.go index 85b349026f2..5492bf930a5 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetOperation/main.go index 08f3bda8cd2..e4c9786cadf 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListClientGateways/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListClientGateways/main.go index d30f79b813c..c84b118d119 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListClientGateways/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListClientGateways/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListLocations/main.go index 979277f43d4..32f847d952f 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListOperations/main.go index 4780764e46b..90fb9007b91 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/SetIamPolicy/main.go index c2ecda493fe..87741d7e077 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/TestIamPermissions/main.go index ab0290eadc5..46ceadb9166 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clientgateways.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/snippet_metadata.google.cloud.beyondcorp.clientgateways.v1.json b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/snippet_metadata.google.cloud.beyondcorp.clientgateways.v1.json index 2a482267e50..cf3785951a3 100644 --- a/internal/generated/snippets/beyondcorp/clientgateways/apiv1/snippet_metadata.google.cloud.beyondcorp.clientgateways.v1.json +++ b/internal/generated/snippets/beyondcorp/clientgateways/apiv1/snippet_metadata.google.cloud.beyondcorp.clientgateways.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 e5c68b90662..f853e627263 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/CreateConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/CreateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 d343aa88c41..60c25cd195d 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/DeleteConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/DeleteConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 af3cf7cacbb..0129893915e 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/GetConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/GetConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 9ee7fdebf94..a1feb4864b1 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 5276f6ed6d9..8ea534068a7 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/ListConnections/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/ListConnections/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 c93518e1e2c..29a518b674f 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 1b8097db1f0..49eb266b0a5 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 810f4ad23b8..9907074f874 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/Client/UpdateConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1/Client/UpdateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/connection/apiv1/snippet_metadata.google.cloud.bigquery.connection.v1.json b/internal/generated/snippets/bigquery/connection/apiv1/snippet_metadata.google.cloud.bigquery.connection.v1.json index 09f57724ef3..c0739e1b145 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1/snippet_metadata.google.cloud.bigquery.connection.v1.json +++ b/internal/generated/snippets/bigquery/connection/apiv1/snippet_metadata.google.cloud.bigquery.connection.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 c98662b19c6..02b5c947d43 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/CreateConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/CreateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 9e481d16ad0..4bba3dc305f 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/DeleteConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/DeleteConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 6f74caa8495..0d27daf5078 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 0529ec87d89..ba826550488 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 7d230e3df94..e2cb061833f 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/ListConnections/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/ListConnections/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 5068fe6e9e7..98741c8dd95 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 9cd14ebd67d..3a8aa4750ee 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 68ae79c2f8b..a7b6fa8066e 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnection/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. 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 85d02aad673..6b90bb3605a 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnectionCredential/main.go +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/Client/UpdateConnectionCredential/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := connection.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/connection/apiv1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json b/internal/generated/snippets/bigquery/connection/apiv1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json index 7abc6194295..543d225f682 100644 --- a/internal/generated/snippets/bigquery/connection/apiv1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json +++ b/internal/generated/snippets/bigquery/connection/apiv1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/CreateDataExchange/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/CreateDataExchange/main.go index cdeb92d7fa3..2f8774a7b98 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/CreateDataExchange/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/CreateDataExchange/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/CreateListing/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/CreateListing/main.go index 6c1025083f6..83a79194ca1 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/CreateListing/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/CreateListing/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/DeleteDataExchange/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/DeleteDataExchange/main.go index 95d654c775b..193f5359d9a 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/DeleteDataExchange/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/DeleteDataExchange/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/DeleteListing/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/DeleteListing/main.go index c24369e2238..3696078f83f 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/DeleteListing/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/DeleteListing/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetDataExchange/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetDataExchange/main.go index 5169ee57b33..b3c924f063a 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetDataExchange/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetDataExchange/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetIamPolicy/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetIamPolicy/main.go index f73e53da0d9..2d9a9564667 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetListing/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetListing/main.go index bac160a34cf..b9d1c4e76d1 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetListing/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetListing/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetLocation/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetLocation/main.go index c2d62ee2f6a..35c3befe555 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetLocation/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListDataExchanges/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListDataExchanges/main.go index 5ae68b46ae4..c37b441b445 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListDataExchanges/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListDataExchanges/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListListings/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListListings/main.go index f36d422488b..9f6a11e52e5 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListListings/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListListings/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListLocations/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListLocations/main.go index fef921c9bd0..32da4b4e7ea 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListLocations/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListOrgDataExchanges/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListOrgDataExchanges/main.go index 4d2f0669f26..d8ab0c81eff 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListOrgDataExchanges/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/ListOrgDataExchanges/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/SetIamPolicy/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/SetIamPolicy/main.go index 574f1ab8e69..735b2fa23e9 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/SubscribeListing/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/SubscribeListing/main.go index da4cde59715..4f88407c7c6 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/SubscribeListing/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/SubscribeListing/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/TestIamPermissions/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/TestIamPermissions/main.go index 5c003c0bbed..e57adf6ba40 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/UpdateDataExchange/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/UpdateDataExchange/main.go index f14a3335a81..85ff76d8b5f 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/UpdateDataExchange/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/UpdateDataExchange/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/UpdateListing/main.go b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/UpdateListing/main.go index 36647272ed5..a7c22041c4d 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/UpdateListing/main.go +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/AnalyticsHubClient/UpdateListing/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataexchange.NewAnalyticsHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json index 55ca9b32bae..6a408412744 100644 --- a/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json +++ b/internal/generated/snippets/bigquery/dataexchange/apiv1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 e69af06dbed..7e3b7390e16 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CheckValidCreds/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CheckValidCreds/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 1b42edbb78b..cf6cfbe35b9 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CreateTransferConfig/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/CreateTransferConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 acd73413cc6..1901ecf7ade 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferConfig/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 9d3b879af4f..eb46b3b5af9 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferRun/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/DeleteTransferRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/EnrollDataSources/main.go b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/EnrollDataSources/main.go index 1a1af4a1544..e5dfad8626d 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/EnrollDataSources/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/EnrollDataSources/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 05308b1d254..fa9592f0f8d 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetDataSource/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetDataSource/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 e833d47c39d..7ab7ce6afd7 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferConfig/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 7c62fab1f9a..ceb2676e207 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferRun/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/GetTransferRun/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 0938e40f798..cb7c42f637e 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListDataSources/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListDataSources/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 95e2f34f2c1..2b47bcf87b8 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferConfigs/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferConfigs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 4ffb3cdae4a..e78b52bd2b2 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferLogs/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferLogs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 90253a78e2f..e4ca27b3b9c 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferRuns/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ListTransferRuns/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 44e7669d3d8..b7a3fb5316b 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ScheduleTransferRuns/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/ScheduleTransferRuns/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 e0169307c92..accac4b82d7 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/StartManualTransferRuns/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/StartManualTransferRuns/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. 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 d044c544419..6c5b2b4ebca 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/UpdateTransferConfig/main.go +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/Client/UpdateTransferConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datatransfer.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/datatransfer/apiv1/snippet_metadata.google.cloud.bigquery.datatransfer.v1.json b/internal/generated/snippets/bigquery/datatransfer/apiv1/snippet_metadata.google.cloud.bigquery.datatransfer.v1.json index 1bdf57b357a..398848a0657 100644 --- a/internal/generated/snippets/bigquery/datatransfer/apiv1/snippet_metadata.google.cloud.bigquery.datatransfer.v1.json +++ b/internal/generated/snippets/bigquery/datatransfer/apiv1/snippet_metadata.google.cloud.bigquery.datatransfer.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -233,7 +233,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -279,7 +279,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -371,7 +371,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -417,7 +417,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -463,7 +463,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -509,7 +509,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -555,7 +555,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -601,7 +601,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -647,7 +647,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/bigquery/migration/apiv2/Client/CreateMigrationWorkflow/main.go b/internal/generated/snippets/bigquery/migration/apiv2/Client/CreateMigrationWorkflow/main.go index 4c611f691cb..ae38ccd25bb 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/Client/CreateMigrationWorkflow/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2/Client/CreateMigrationWorkflow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2/Client/DeleteMigrationWorkflow/main.go b/internal/generated/snippets/bigquery/migration/apiv2/Client/DeleteMigrationWorkflow/main.go index 02a06faab39..3ff1167f893 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/Client/DeleteMigrationWorkflow/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2/Client/DeleteMigrationWorkflow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2/Client/GetMigrationSubtask/main.go b/internal/generated/snippets/bigquery/migration/apiv2/Client/GetMigrationSubtask/main.go index 4952930c24b..0af248cf101 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/Client/GetMigrationSubtask/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2/Client/GetMigrationSubtask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2/Client/GetMigrationWorkflow/main.go b/internal/generated/snippets/bigquery/migration/apiv2/Client/GetMigrationWorkflow/main.go index e8af902ad23..431a731f10d 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/Client/GetMigrationWorkflow/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2/Client/GetMigrationWorkflow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2/Client/ListMigrationSubtasks/main.go b/internal/generated/snippets/bigquery/migration/apiv2/Client/ListMigrationSubtasks/main.go index e9735223166..c2b0ec8db68 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/Client/ListMigrationSubtasks/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2/Client/ListMigrationSubtasks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2/Client/ListMigrationWorkflows/main.go b/internal/generated/snippets/bigquery/migration/apiv2/Client/ListMigrationWorkflows/main.go index f0463c4dc69..588484c8b60 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/Client/ListMigrationWorkflows/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2/Client/ListMigrationWorkflows/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2/Client/StartMigrationWorkflow/main.go b/internal/generated/snippets/bigquery/migration/apiv2/Client/StartMigrationWorkflow/main.go index a6bc23a5f56..9df67874fa6 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/Client/StartMigrationWorkflow/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2/Client/StartMigrationWorkflow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2/snippet_metadata.google.cloud.bigquery.migration.v2.json b/internal/generated/snippets/bigquery/migration/apiv2/snippet_metadata.google.cloud.bigquery.migration.v2.json index 79ae8112f06..1e9126a3d1f 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2/snippet_metadata.google.cloud.bigquery.migration.v2.json +++ b/internal/generated/snippets/bigquery/migration/apiv2/snippet_metadata.google.cloud.bigquery.migration.v2.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/CreateMigrationWorkflow/main.go b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/CreateMigrationWorkflow/main.go index af455ed430d..02d4fd40aea 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/CreateMigrationWorkflow/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/CreateMigrationWorkflow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/DeleteMigrationWorkflow/main.go b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/DeleteMigrationWorkflow/main.go index 9e7212a43b7..8a3a176ce50 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/DeleteMigrationWorkflow/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/DeleteMigrationWorkflow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/GetMigrationSubtask/main.go b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/GetMigrationSubtask/main.go index 9fc0ca91c1a..f68a6906f84 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/GetMigrationSubtask/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/GetMigrationSubtask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/GetMigrationWorkflow/main.go b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/GetMigrationWorkflow/main.go index 1115bd51109..1fbad240dd6 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/GetMigrationWorkflow/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/GetMigrationWorkflow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/ListMigrationSubtasks/main.go b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/ListMigrationSubtasks/main.go index 0c97e03d899..42d1f742f8f 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/ListMigrationSubtasks/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/ListMigrationSubtasks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/ListMigrationWorkflows/main.go b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/ListMigrationWorkflows/main.go index 35a7197a9f3..3613ad35b29 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/ListMigrationWorkflows/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/ListMigrationWorkflows/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/StartMigrationWorkflow/main.go b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/StartMigrationWorkflow/main.go index 583e7033e5f..d2d96698540 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/StartMigrationWorkflow/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/Client/StartMigrationWorkflow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/SqlTranslationClient/TranslateQuery/main.go b/internal/generated/snippets/bigquery/migration/apiv2alpha/SqlTranslationClient/TranslateQuery/main.go index e3e438884f7..ef7f521d9d7 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/SqlTranslationClient/TranslateQuery/main.go +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/SqlTranslationClient/TranslateQuery/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := migration.NewSqlTranslationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/migration/apiv2alpha/snippet_metadata.google.cloud.bigquery.migration.v2alpha.json b/internal/generated/snippets/bigquery/migration/apiv2alpha/snippet_metadata.google.cloud.bigquery.migration.v2alpha.json index 7e398d52e24..2344d875d54 100644 --- a/internal/generated/snippets/bigquery/migration/apiv2alpha/snippet_metadata.google.cloud.bigquery.migration.v2alpha.json +++ b/internal/generated/snippets/bigquery/migration/apiv2alpha/snippet_metadata.google.cloud.bigquery.migration.v2alpha.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 a127ac60f35..03337370bf4 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateAssignment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 0f5c19090db..613621cb4b5 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 a4101e9ddfa..b408420c94f 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/CreateReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 ec38b9b5126..3713cb27ca7 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteAssignment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 c421d535750..261a7fbe1d7 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 24fed138057..e8b5eedd968 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/DeleteReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 28ae09eb8c3..f36b3078ac3 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetBiReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetBiReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 1277aadbae0..8b79a4a770f 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 1214f566b8b..ff9975a0ebc 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/GetReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 c9b4f9d58b0..9a186626607 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListAssignments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 b77c9de2e6c..9a442c44948 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListCapacityCommitments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListCapacityCommitments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 cfb2f4df0ef..172f3a4abb7 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListReservations/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/ListReservations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 6035ac977af..b95a9a07a31 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/MergeCapacityCommitments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/MergeCapacityCommitments/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 094d824b1d5..e94be931c42 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/MoveAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/MoveAssignment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAllAssignments/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAllAssignments/main.go index e5d46c58b90..1d5340272f7 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAllAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAllAssignments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 6c51c10ff70..af5f27200ac 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/SearchAssignments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 ce1b576fb70..474dbbbabff 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/SplitCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/SplitCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateAssignment/main.go b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateAssignment/main.go index 317ea18a5fd..706e20f4233 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateAssignment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 070309dbcb1..db5730e784c 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateBiReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateBiReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 72993333ffe..918829a3c82 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 86af2115d42..6231d7bcbf9 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1/Client/UpdateReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/reservation/apiv1/snippet_metadata.google.cloud.bigquery.reservation.v1.json b/internal/generated/snippets/bigquery/reservation/apiv1/snippet_metadata.google.cloud.bigquery.reservation.v1.json index c706d8c7600..c8b6dce828a 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1/snippet_metadata.google.cloud.bigquery.reservation.v1.json +++ b/internal/generated/snippets/bigquery/reservation/apiv1/snippet_metadata.google.cloud.bigquery.reservation.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -279,7 +279,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -371,7 +371,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -417,7 +417,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -463,7 +463,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -509,7 +509,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -555,7 +555,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -601,7 +601,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -647,7 +647,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -923,7 +923,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -969,7 +969,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 16b55837bc3..59d714cf826 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateAssignment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 61c30628522..782bec5492b 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 4fbc6f80919..c3b3172cb17 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/CreateReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 adcaf402b9a..5b35b818c99 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteAssignment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 07535cd5af7..4328747906d 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 807c7516eae..a406d3872f6 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/DeleteReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 e17078023ad..2c86516e7bf 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetBiReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetBiReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 6c029b081f7..470e0d8d717 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 ffefe24a7d9..aa8e23e94dd 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/GetReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 3f04999da43..66402eeb65f 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListAssignments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 b1a412d2e16..59aea2db426 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListCapacityCommitments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListCapacityCommitments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 280752f7fba..8d9a4dcd3a1 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListReservations/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/ListReservations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 398fd0c38d7..856004cd9fe 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MergeCapacityCommitments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MergeCapacityCommitments/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 269a5b6dd25..917f75cfde7 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MoveAssignment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/MoveAssignment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 7425028dc5a..0b9dc616d0f 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SearchAssignments/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SearchAssignments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 7a391bfa11e..59464bbc8f1 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SplitCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/SplitCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 1a658d890d3..228039ac584 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateBiReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateBiReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 a7cddbc9d4d..31ccbab46b6 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateCapacityCommitment/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateCapacityCommitment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. 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 726bc85ce58..4489fb5138a 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateReservation/main.go +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/Client/UpdateReservation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := reservation.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/reservation/apiv1beta1/snippet_metadata.google.cloud.bigquery.reservation.v1beta1.json b/internal/generated/snippets/bigquery/reservation/apiv1beta1/snippet_metadata.google.cloud.bigquery.reservation.v1beta1.json index b19db7da8b0..40a6623ee7f 100644 --- a/internal/generated/snippets/bigquery/reservation/apiv1beta1/snippet_metadata.google.cloud.bigquery.reservation.v1beta1.json +++ b/internal/generated/snippets/bigquery/reservation/apiv1beta1/snippet_metadata.google.cloud.bigquery.reservation.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -279,7 +279,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -371,7 +371,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -417,7 +417,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -463,7 +463,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -509,7 +509,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -555,7 +555,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -601,7 +601,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -647,7 +647,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 91e40a69c45..1178089fd05 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/CreateReadSession/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/CreateReadSession/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. 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 50245457a34..ba045b21627 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/SplitReadStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryReadClient/SplitReadStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/AppendRows/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/AppendRows/main.go index 14037858040..7c4448a5491 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/AppendRows/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/AppendRows/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/BatchCommitWriteStreams/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/BatchCommitWriteStreams/main.go index 77a2b051f10..539294e44ac 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/BatchCommitWriteStreams/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/BatchCommitWriteStreams/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/CreateWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/CreateWriteStream/main.go index c0dcb52d823..19a14044961 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/CreateWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/CreateWriteStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/FinalizeWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/FinalizeWriteStream/main.go index 168e7c58346..6f68862428e 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/FinalizeWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/FinalizeWriteStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/FlushRows/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/FlushRows/main.go index 2b7c9b0315a..8c178378bba 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/FlushRows/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/FlushRows/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/GetWriteStream/main.go b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/GetWriteStream/main.go index d169216ecae..7a7a91556da 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/GetWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1/BigQueryWriteClient/GetWriteStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1/snippet_metadata.google.cloud.bigquery.storage.v1.json b/internal/generated/snippets/bigquery/storage/apiv1/snippet_metadata.google.cloud.bigquery.storage.v1.json index e1c92255bd2..9b549ac562d 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1/snippet_metadata.google.cloud.bigquery.storage.v1.json +++ b/internal/generated/snippets/bigquery/storage/apiv1/snippet_metadata.google.cloud.bigquery.storage.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -184,7 +184,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] @@ -230,7 +230,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -276,7 +276,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -322,7 +322,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -368,7 +368,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -414,7 +414,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 e45a806a2fa..952bf20290f 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/BatchCreateReadSessionStreams/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/BatchCreateReadSessionStreams/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. 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 8adc2ec5bd6..b5e5e311a95 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/CreateReadSession/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/CreateReadSession/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. 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 7c258928a57..03f39fb030b 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/FinalizeStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/FinalizeStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. 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 e906c0575e6..63015b2f012 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/SplitReadStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/BigQueryStorageClient/SplitReadStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryStorageClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json b/internal/generated/snippets/bigquery/storage/apiv1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json index 8adc107aa2e..cc8cdd16959 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json +++ b/internal/generated/snippets/bigquery/storage/apiv1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 220b6450b7a..e7650c76a25 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/CreateReadSession/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/CreateReadSession/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. 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 d405dd9779c..892c3cf38f1 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/SplitReadStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryReadClient/SplitReadStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryReadClient(ctx) if err != nil { // TODO: Handle error. 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 134cf96af4d..78495e38faf 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/AppendRows/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/AppendRows/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. 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 433fde14263..b0632ea1f37 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/BatchCommitWriteStreams/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/BatchCommitWriteStreams/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. 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 61fe2155966..db3caa9aad0 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/CreateWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/CreateWriteStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. 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 dfaff412e13..dcfd8aa8fcb 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FinalizeWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FinalizeWriteStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. 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 1b3915de628..f8589e7f26c 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FlushRows/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/FlushRows/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. 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 f05a86e088e..564d225a07a 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/GetWriteStream/main.go +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/BigQueryWriteClient/GetWriteStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewBigQueryWriteClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/bigquery/storage/apiv1beta2/snippet_metadata.google.cloud.bigquery.storage.v1beta2.json b/internal/generated/snippets/bigquery/storage/apiv1beta2/snippet_metadata.google.cloud.bigquery.storage.v1beta2.json index d9e4484931b..516ced1c528 100644 --- a/internal/generated/snippets/bigquery/storage/apiv1beta2/snippet_metadata.google.cloud.bigquery.storage.v1beta2.json +++ b/internal/generated/snippets/bigquery/storage/apiv1beta2/snippet_metadata.google.cloud.bigquery.storage.v1beta2.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -184,7 +184,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] @@ -230,7 +230,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -276,7 +276,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -322,7 +322,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -368,7 +368,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -414,7 +414,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/CreateBillingAccount/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/CreateBillingAccount/main.go index 607929f1c4b..b8202db2420 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/CreateBillingAccount/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/CreateBillingAccount/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetBillingAccount/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetBillingAccount/main.go index 6f8062f8abb..147a6222edb 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetBillingAccount/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetBillingAccount/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetIamPolicy/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetIamPolicy/main.go index d3402e028cf..83182b37641 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetProjectBillingInfo/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetProjectBillingInfo/main.go index d87fa3176de..34f1bc4ae2f 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetProjectBillingInfo/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/GetProjectBillingInfo/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListBillingAccounts/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListBillingAccounts/main.go index d3ab9484075..5969376839a 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListBillingAccounts/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListBillingAccounts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListProjectBillingInfo/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListProjectBillingInfo/main.go index db4a5238933..fb34ce7f470 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListProjectBillingInfo/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/ListProjectBillingInfo/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/SetIamPolicy/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/SetIamPolicy/main.go index 5f16253b5b2..2ddd771b5c0 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/TestIamPermissions/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/TestIamPermissions/main.go index 8f3a614f4c6..14c8fcadc33 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateBillingAccount/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateBillingAccount/main.go index c548278cc4f..be45561cb10 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateBillingAccount/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateBillingAccount/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateProjectBillingInfo/main.go b/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateProjectBillingInfo/main.go index e7bd052a0ed..0d027d7b09f 100644 --- a/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateProjectBillingInfo/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudBillingClient/UpdateProjectBillingInfo/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudBillingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListServices/main.go b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListServices/main.go index 5763c4729ed..ae829ede5ae 100644 --- a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListServices/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListServices/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudCatalogClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListSkus/main.go b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListSkus/main.go index 6cd293e83b4..08586fb6b92 100644 --- a/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListSkus/main.go +++ b/internal/generated/snippets/billing/apiv1/CloudCatalogClient/ListSkus/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := billing.NewCloudCatalogClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/apiv1/snippet_metadata.google.cloud.billing.v1.json b/internal/generated/snippets/billing/apiv1/snippet_metadata.google.cloud.billing.v1.json index 296eb1f8b38..65cca4be4cb 100644 --- a/internal/generated/snippets/billing/apiv1/snippet_metadata.google.cloud.billing.v1.json +++ b/internal/generated/snippets/billing/apiv1/snippet_metadata.google.cloud.billing.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] 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 d871f6c6eb8..5c4f7fb6a1a 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/CreateBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/CreateBudget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. 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 469cd81d00e..50a4d8e390c 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/DeleteBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/DeleteBudget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. 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 236b3359852..e0c44cdf76d 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/GetBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/GetBudget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. 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 7958b2b79f9..419d698cce0 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/ListBudgets/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/ListBudgets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. 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 52dbc4e55dd..b3653b2e0bf 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/UpdateBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1/BudgetClient/UpdateBudget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/budgets/apiv1/snippet_metadata.google.cloud.billing.budgets.v1.json b/internal/generated/snippets/billing/budgets/apiv1/snippet_metadata.google.cloud.billing.budgets.v1.json index ce27f642d25..c24ea3680c1 100644 --- a/internal/generated/snippets/billing/budgets/apiv1/snippet_metadata.google.cloud.billing.budgets.v1.json +++ b/internal/generated/snippets/billing/budgets/apiv1/snippet_metadata.google.cloud.billing.budgets.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] 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 617730d4dc4..492ce992bbd 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/CreateBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/CreateBudget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. 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 b7e4c2cfe87..e1c5ad1b475 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/DeleteBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/DeleteBudget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. 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 c14740bea44..91b4cef59fe 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/GetBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/GetBudget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. 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 48c6bff4e82..94423a47528 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/ListBudgets/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/ListBudgets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. 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 08950faab76..29644b6217f 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/UpdateBudget/main.go +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/BudgetClient/UpdateBudget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := budgets.NewBudgetClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/billing/budgets/apiv1beta1/snippet_metadata.google.cloud.billing.budgets.v1beta1.json b/internal/generated/snippets/billing/budgets/apiv1beta1/snippet_metadata.google.cloud.billing.budgets.v1beta1.json index 19295a9ed0d..126b493d6cf 100644 --- a/internal/generated/snippets/billing/budgets/apiv1beta1/snippet_metadata.google.cloud.billing.budgets.v1beta1.json +++ b/internal/generated/snippets/billing/budgets/apiv1beta1/snippet_metadata.google.cloud.billing.budgets.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/CreateAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/CreateAttestor/main.go index e9447f57ce6..03005cb22ac 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/CreateAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/CreateAttestor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/DeleteAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/DeleteAttestor/main.go index 85671bc00b7..6d4da041702 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/DeleteAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/DeleteAttestor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/GetAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/GetAttestor/main.go index 5c89d58a33c..7f2cd41acf0 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/GetAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/GetAttestor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/GetPolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/GetPolicy/main.go index 2e7ddcce0ad..39f6b0b6c0b 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/GetPolicy/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/GetPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/ListAttestors/main.go b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/ListAttestors/main.go index 5d9d18214b7..f1fa83dc270 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/ListAttestors/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/ListAttestors/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/UpdateAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/UpdateAttestor/main.go index 43ae5c84968..d2218e3ee29 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/UpdateAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/UpdateAttestor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/UpdatePolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/UpdatePolicy/main.go index 75c5d9bae8b..0c3b7f34d39 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/UpdatePolicy/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/BinauthzManagementClient/UpdatePolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/SystemPolicyClient/GetSystemPolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1/SystemPolicyClient/GetSystemPolicy/main.go index 63b723b45d6..b4fa76373a8 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/SystemPolicyClient/GetSystemPolicy/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/SystemPolicyClient/GetSystemPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewSystemPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/ValidationHelperClient/ValidateAttestationOccurrence/main.go b/internal/generated/snippets/binaryauthorization/apiv1/ValidationHelperClient/ValidateAttestationOccurrence/main.go index 89c0e5d28ea..a4a4e202a24 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/ValidationHelperClient/ValidateAttestationOccurrence/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1/ValidationHelperClient/ValidateAttestationOccurrence/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewValidationHelperClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1/snippet_metadata.google.cloud.binaryauthorization.v1.json b/internal/generated/snippets/binaryauthorization/apiv1/snippet_metadata.google.cloud.binaryauthorization.v1.json index 9b5cfdf6ce6..a8ce94cf80d 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1/snippet_metadata.google.cloud.binaryauthorization.v1.json +++ b/internal/generated/snippets/binaryauthorization/apiv1/snippet_metadata.google.cloud.binaryauthorization.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/CreateAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/CreateAttestor/main.go index f68541a3a42..c9789e20c43 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/CreateAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/CreateAttestor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/DeleteAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/DeleteAttestor/main.go index fd475d05b8e..05aea0562a2 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/DeleteAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/DeleteAttestor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetAttestor/main.go index 130fb58a166..d119b6f31ee 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetAttestor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetPolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetPolicy/main.go index 3e03b3d3cb6..d9452d5002d 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetPolicy/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/GetPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/ListAttestors/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/ListAttestors/main.go index ed76cfb2c35..4e36a274619 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/ListAttestors/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/ListAttestors/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdateAttestor/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdateAttestor/main.go index 4135ea1eca4..c031d77f8f3 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdateAttestor/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdateAttestor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdatePolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdatePolicy/main.go index 4300a23209c..cb5a96165b6 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdatePolicy/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/BinauthzManagementServiceV1Beta1Client/UpdatePolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewBinauthzManagementServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/SystemPolicyV1Beta1Client/GetSystemPolicy/main.go b/internal/generated/snippets/binaryauthorization/apiv1beta1/SystemPolicyV1Beta1Client/GetSystemPolicy/main.go index 491bcaad7c1..87aaff785a8 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/SystemPolicyV1Beta1Client/GetSystemPolicy/main.go +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/SystemPolicyV1Beta1Client/GetSystemPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := binaryauthorization.NewSystemPolicyV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/binaryauthorization/apiv1beta1/snippet_metadata.google.cloud.binaryauthorization.v1beta1.json b/internal/generated/snippets/binaryauthorization/apiv1beta1/snippet_metadata.google.cloud.binaryauthorization.v1beta1.json index e6d1fba3c26..fd8f9ea158e 100644 --- a/internal/generated/snippets/binaryauthorization/apiv1beta1/snippet_metadata.google.cloud.binaryauthorization.v1beta1.json +++ b/internal/generated/snippets/binaryauthorization/apiv1beta1/snippet_metadata.google.cloud.binaryauthorization.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/CancelOperation/main.go index d1ff0353499..6445c6966db 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificate/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificate/main.go index 30f0f19400f..25f0406c122 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificate/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificateMap/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificateMap/main.go index a17ac0607b8..f9861fdfe00 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificateMap/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificateMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificateMapEntry/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificateMapEntry/main.go index 85f405235be..b5edfea8852 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificateMapEntry/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/CreateCertificateMapEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/CreateDnsAuthorization/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/CreateDnsAuthorization/main.go index d3cbdd67fd6..201873d012d 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/CreateDnsAuthorization/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/CreateDnsAuthorization/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificate/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificate/main.go index 65efebe972f..87375785903 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificate/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificateMap/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificateMap/main.go index f25ac6211aa..e670019fc8e 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificateMap/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificateMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificateMapEntry/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificateMapEntry/main.go index 29761b79036..d0feb428ce8 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificateMapEntry/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteCertificateMapEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteDnsAuthorization/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteDnsAuthorization/main.go index 3c60d1ca984..c419bd9f765 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteDnsAuthorization/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteDnsAuthorization/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteOperation/main.go index 3924c99b6a1..c55e6056b61 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificate/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificate/main.go index 697a8972a4d..e578aabe5ec 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificate/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificateMap/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificateMap/main.go index e320ebcc35c..7e368282399 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificateMap/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificateMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificateMapEntry/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificateMapEntry/main.go index 7c0bddba16a..3086fe93286 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificateMapEntry/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/GetCertificateMapEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/GetDnsAuthorization/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/GetDnsAuthorization/main.go index 83677df6d8b..dfa02f43a4a 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/GetDnsAuthorization/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/GetDnsAuthorization/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/GetLocation/main.go index 077e9b5aaf8..66075eb3b98 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/GetOperation/main.go index b12d114b110..247e75722d7 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificateMapEntries/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificateMapEntries/main.go index 9e392fc5c11..b5054079717 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificateMapEntries/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificateMapEntries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificateMaps/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificateMaps/main.go index 5cde0046756..7a3e5403d21 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificateMaps/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificateMaps/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificates/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificates/main.go index 4400e462663..39e9e8a3d2c 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificates/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/ListCertificates/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/ListDnsAuthorizations/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/ListDnsAuthorizations/main.go index eb3892a35a8..77248b6615f 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/ListDnsAuthorizations/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/ListDnsAuthorizations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/ListLocations/main.go index e9bca1b0836..907c355cadd 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/ListOperations/main.go index 8b21a440323..3b87007c7c1 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificate/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificate/main.go index cbde62ca108..80d2a8aefcc 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificate/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificateMap/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificateMap/main.go index d540f7c9606..1003f64ba45 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificateMap/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificateMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificateMapEntry/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificateMapEntry/main.go index e980258d1ec..4562ff25771 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificateMapEntry/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateCertificateMapEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateDnsAuthorization/main.go b/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateDnsAuthorization/main.go index 212c6ee21de..d1611069a02 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateDnsAuthorization/main.go +++ b/internal/generated/snippets/certificatemanager/apiv1/Client/UpdateDnsAuthorization/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := certificatemanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/certificatemanager/apiv1/snippet_metadata.google.cloud.certificatemanager.v1.json b/internal/generated/snippets/certificatemanager/apiv1/snippet_metadata.google.cloud.certificatemanager.v1.json index 2eef8f4df7f..1044455c973 100644 --- a/internal/generated/snippets/certificatemanager/apiv1/snippet_metadata.google.cloud.certificatemanager.v1.json +++ b/internal/generated/snippets/certificatemanager/apiv1/snippet_metadata.google.cloud.certificatemanager.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -832,7 +832,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -878,7 +878,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -924,7 +924,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -970,7 +970,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1016,7 +1016,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1062,7 +1062,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1108,7 +1108,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1154,7 +1154,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1200,7 +1200,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ActivateEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ActivateEntitlement/main.go index b1bc2e02f23..92b7247acd7 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ActivateEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ActivateEntitlement/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelEntitlement/main.go index b4c4a04bb29..7100e23a95c 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelEntitlement/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelOperation/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelOperation/main.go index 530a1e5a577..219da0a2e98 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelOperation/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeOffer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeOffer/main.go index dc9d40fa4ea..f4d28281d78 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeOffer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeOffer/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeParameters/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeParameters/main.go index 5ff1b8532ba..090cbd3fcf3 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeParameters/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeParameters/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeRenewalSettings/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeRenewalSettings/main.go index 5fcdde31333..457674b745f 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeRenewalSettings/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ChangeRenewalSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CheckCloudIdentityAccountsExist/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CheckCloudIdentityAccountsExist/main.go index 3b28a40e12a..92913e14727 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CheckCloudIdentityAccountsExist/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CheckCloudIdentityAccountsExist/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerLink/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerLink/main.go index a77e16f3320..39180356f8d 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerLink/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerRepricingConfig/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerRepricingConfig/main.go index 28c4107246a..6145f7846b2 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerRepricingConfig/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateChannelPartnerRepricingConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomer/main.go index 36d330a4ce1..beeb466f3d3 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomer/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomerRepricingConfig/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomerRepricingConfig/main.go index 2f0765b0c5a..3e82094704b 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomerRepricingConfig/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateCustomerRepricingConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateEntitlement/main.go index d801174fb52..176b0ed319a 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/CreateEntitlement/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteChannelPartnerRepricingConfig/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteChannelPartnerRepricingConfig/main.go index 9c20f86be4f..b8a7e5fe550 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteChannelPartnerRepricingConfig/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteChannelPartnerRepricingConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomer/main.go index c68da77fcce..c4441ca3ac0 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomer/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomerRepricingConfig/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomerRepricingConfig/main.go index ed4a79a87eb..40cb7f28897 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomerRepricingConfig/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteCustomerRepricingConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteOperation/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteOperation/main.go index 7e4e7cac859..3a1218e23b2 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteOperation/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerLink/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerLink/main.go index 6bcf5065cd7..3c7b53a83a0 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerLink/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerRepricingConfig/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerRepricingConfig/main.go index e12d193d72b..a6f1a6d8170 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerRepricingConfig/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetChannelPartnerRepricingConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomer/main.go index ebb230f436a..0b57143b7dc 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomer/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomerRepricingConfig/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomerRepricingConfig/main.go index 162e8b5327b..af222bbef0d 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomerRepricingConfig/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetCustomerRepricingConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetEntitlement/main.go index b46493d3e18..2018b125dec 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetEntitlement/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetOperation/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetOperation/main.go index a182bd12579..472820ac8db 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetOperation/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ImportCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ImportCustomer/main.go index caf989e5088..b0137391b2f 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ImportCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ImportCustomer/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerLinks/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerLinks/main.go index d74376a0a0a..06971420c60 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerLinks/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerLinks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerRepricingConfigs/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerRepricingConfigs/main.go index 716a76cedc0..3d406d5c7da 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerRepricingConfigs/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListChannelPartnerRepricingConfigs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomerRepricingConfigs/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomerRepricingConfigs/main.go index b6487ac0c2c..5ef9c5a3a31 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomerRepricingConfigs/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomerRepricingConfigs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomers/main.go index e6960e4c872..14f1c75ded5 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListCustomers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListEntitlements/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListEntitlements/main.go index bc74698506c..682b6b35f96 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListEntitlements/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListEntitlements/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOffers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOffers/main.go index 4c251b65bfd..d9f2b3415f8 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOffers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOffers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOperations/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOperations/main.go index 4d24773641e..6c6482be03d 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOperations/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListProducts/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListProducts/main.go index e09e2a6dcd5..744ac3e1593 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListProducts/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListProducts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableOffers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableOffers/main.go index 73446b9ad72..d4c78e1ed09 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableOffers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableOffers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableSkus/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableSkus/main.go index e760174fa36..016b8a25d80 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableSkus/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListPurchasableSkus/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSkus/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSkus/main.go index beec2533239..9aef367ab08 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSkus/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSkus/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSubscribers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSubscribers/main.go index 093fdf3320a..866bf594728 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSubscribers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListSubscribers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableOffers/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableOffers/main.go index dd74733c7ca..bfe466a063d 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableOffers/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableOffers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableSkus/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableSkus/main.go index 353f3d2f13e..61b8270f17d 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableSkus/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ListTransferableSkus/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/LookupOffer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/LookupOffer/main.go index e0e2e055354..3295f441984 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/LookupOffer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/LookupOffer/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ProvisionCloudIdentity/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ProvisionCloudIdentity/main.go index 5037aa8a225..1deca4260cb 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/ProvisionCloudIdentity/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/ProvisionCloudIdentity/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/RegisterSubscriber/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/RegisterSubscriber/main.go index 641dd528e43..626c0a2d34b 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/RegisterSubscriber/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/RegisterSubscriber/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/StartPaidService/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/StartPaidService/main.go index 77a12a0f429..b17f3dc0899 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/StartPaidService/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/StartPaidService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/SuspendEntitlement/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/SuspendEntitlement/main.go index b6527925d2c..5c2986f5433 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/SuspendEntitlement/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/SuspendEntitlement/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlements/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlements/main.go index 0a3511530b6..9d0ac3ed491 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlements/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlements/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlementsToGoogle/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlementsToGoogle/main.go index e561ef95d0a..b5561b8f37a 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlementsToGoogle/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/TransferEntitlementsToGoogle/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UnregisterSubscriber/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UnregisterSubscriber/main.go index 0ee1fb89ee3..2dea430ba3e 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UnregisterSubscriber/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UnregisterSubscriber/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerLink/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerLink/main.go index 5c0df9fd438..9a92a48f047 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerLink/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerLink/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerRepricingConfig/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerRepricingConfig/main.go index 7b8efc3df91..923cb82e026 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerRepricingConfig/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateChannelPartnerRepricingConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomer/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomer/main.go index d463be14b5f..f2bb978ccd8 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomer/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomer/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomerRepricingConfig/main.go b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomerRepricingConfig/main.go index 9bf4d5d5a39..0dabc1298ec 100644 --- a/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomerRepricingConfig/main.go +++ b/internal/generated/snippets/channel/apiv1/CloudChannelClient/UpdateCustomerRepricingConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := channel.NewCloudChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/channel/apiv1/snippet_metadata.google.cloud.channel.v1.json b/internal/generated/snippets/channel/apiv1/snippet_metadata.google.cloud.channel.v1.json index 330014b80a3..997e26cc559 100644 --- a/internal/generated/snippets/channel/apiv1/snippet_metadata.google.cloud.channel.v1.json +++ b/internal/generated/snippets/channel/apiv1/snippet_metadata.google.cloud.channel.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -465,7 +465,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -511,7 +511,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -557,7 +557,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -647,7 +647,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -692,7 +692,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -737,7 +737,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -783,7 +783,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -829,7 +829,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -875,7 +875,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -921,7 +921,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -967,7 +967,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1013,7 +1013,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1059,7 +1059,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1105,7 +1105,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1151,7 +1151,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1197,7 +1197,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1243,7 +1243,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1289,7 +1289,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1335,7 +1335,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1381,7 +1381,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1427,7 +1427,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1473,7 +1473,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1519,7 +1519,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1565,7 +1565,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1611,7 +1611,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1657,7 +1657,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1703,7 +1703,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1749,7 +1749,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1795,7 +1795,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1841,7 +1841,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1887,7 +1887,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1933,7 +1933,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1979,7 +1979,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2025,7 +2025,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2071,7 +2071,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2117,7 +2117,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2163,7 +2163,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2209,7 +2209,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2255,7 +2255,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ApproveBuild/main.go b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ApproveBuild/main.go index da83e009209..e4e2e2d16a7 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ApproveBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ApproveBuild/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 6b5f1d5fcb3..4aa7f19d318 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CancelBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CancelBuild/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 b1c13cf60cf..2a9d1d4685c 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuild/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 8bd90ccc37f..f7954e12309 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateBuildTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 9c1baa91aee..87804752956 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateWorkerPool/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/CreateWorkerPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 71c51a67cfd..53122f75c96 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteBuildTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 c5a69cac876..ede0691cc6c 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteWorkerPool/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/DeleteWorkerPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 c753f012509..c91757c822b 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuild/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 c65756d4be2..90a76a99a0e 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetBuildTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 07eb7e664a2..2902cf24d38 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetWorkerPool/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/GetWorkerPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 7c042d67e7a..6ab0329a8a0 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuildTriggers/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuildTriggers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 2fb88db451e..c8e6c718739 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuilds/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListBuilds/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 e9b9e51a129..9c6315e1ec6 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListWorkerPools/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ListWorkerPools/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 9fe2ff81d31..1a465001620 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ReceiveTriggerWebhook/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/ReceiveTriggerWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 e2ad2c776bd..dec1f09882e 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RetryBuild/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RetryBuild/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 550462c8451..6e38767c02b 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RunBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/RunBuildTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 9ac8e0001e0..5dbcc830d0e 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateBuildTrigger/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateBuildTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. 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 3126be9b30e..7e31397356a 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateWorkerPool/main.go +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/Client/UpdateWorkerPool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudbuild.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudbuild/apiv1/v2/snippet_metadata.google.devtools.cloudbuild.v1.json b/internal/generated/snippets/cloudbuild/apiv1/v2/snippet_metadata.google.devtools.cloudbuild.v1.json index 5f3a804d8e3..7189cca065d 100644 --- a/internal/generated/snippets/cloudbuild/apiv1/v2/snippet_metadata.google.devtools.cloudbuild.v1.json +++ b/internal/generated/snippets/cloudbuild/apiv1/v2/snippet_metadata.google.devtools.cloudbuild.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -465,7 +465,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -511,7 +511,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -557,7 +557,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -603,7 +603,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -649,7 +649,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -695,7 +695,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -741,7 +741,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -787,7 +787,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -833,7 +833,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/CreateConnectionProfile/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/CreateConnectionProfile/main.go index 0a500be51a7..72c5b3e6d30 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/CreateConnectionProfile/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/CreateConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/CreateMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/CreateMigrationJob/main.go index 83953d214cc..95fc6ad28ef 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/CreateMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/CreateMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/DeleteConnectionProfile/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/DeleteConnectionProfile/main.go index 4f05497caed..c1e63ac83e2 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/DeleteConnectionProfile/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/DeleteConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/DeleteMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/DeleteMigrationJob/main.go index 9a6aa482bb4..78429e930c1 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/DeleteMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/DeleteMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GenerateSshScript/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GenerateSshScript/main.go index f75643d773a..48dc7c74f85 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GenerateSshScript/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GenerateSshScript/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GetConnectionProfile/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GetConnectionProfile/main.go index f96686d0404..e64c65e0305 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GetConnectionProfile/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GetConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GetMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GetMigrationJob/main.go index 386a6bd3d99..be7c59ae438 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GetMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/GetMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ListConnectionProfiles/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ListConnectionProfiles/main.go index 7809f241ace..24f11c997ad 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ListConnectionProfiles/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ListConnectionProfiles/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ListMigrationJobs/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ListMigrationJobs/main.go index b13ea804b84..ec7ea5e2987 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ListMigrationJobs/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ListMigrationJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/PromoteMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/PromoteMigrationJob/main.go index 2d966e3d5b5..64502a7ce8a 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/PromoteMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/PromoteMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/RestartMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/RestartMigrationJob/main.go index a5e14eac2d3..1c36cdbdc33 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/RestartMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/RestartMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ResumeMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ResumeMigrationJob/main.go index 9059fa8a155..f48cdccfe88 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ResumeMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/ResumeMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/StartMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/StartMigrationJob/main.go index 9afcd7549ff..5226c6f8207 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/StartMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/StartMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/StopMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/StopMigrationJob/main.go index 58bfd9a074a..f5986a0e5c6 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/StopMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/StopMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/UpdateConnectionProfile/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/UpdateConnectionProfile/main.go index 7abd71f3fbb..521e92c1beb 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/UpdateConnectionProfile/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/UpdateConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/UpdateMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/UpdateMigrationJob/main.go index 2e0a8203ced..205dadff5c9 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/UpdateMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/UpdateMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/VerifyMigrationJob/main.go b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/VerifyMigrationJob/main.go index d5826c2a71f..7fa8198963c 100644 --- a/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/VerifyMigrationJob/main.go +++ b/internal/generated/snippets/clouddms/apiv1/DataMigrationClient/VerifyMigrationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := clouddms.NewDataMigrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/clouddms/apiv1/snippet_metadata.google.cloud.clouddms.v1.json b/internal/generated/snippets/clouddms/apiv1/snippet_metadata.google.cloud.clouddms.v1.json index 5bd2b2a176d..cc9bc267247 100644 --- a/internal/generated/snippets/clouddms/apiv1/snippet_metadata.google.cloud.clouddms.v1.json +++ b/internal/generated/snippets/clouddms/apiv1/snippet_metadata.google.cloud.clouddms.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/CreateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/CreateQueue/main.go index cf0bfc91149..6257aae84ee 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/CreateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/CreateQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/CreateTask/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/CreateTask/main.go index abb6e8893e9..681138c7b23 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/CreateTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/CreateTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteQueue/main.go index 88d3d56cea3..4266694ec11 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteTask/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteTask/main.go index 659af56d5b9..9dfd188516a 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/DeleteTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/GetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/GetIamPolicy/main.go index 177ccbc6dd7..6d8a4d2df39 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/GetQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/GetQueue/main.go index 3504083573f..cf3904f3282 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/GetQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/GetQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/GetTask/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/GetTask/main.go index 8f28515e630..4448e6ce6b5 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/GetTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/GetTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/ListQueues/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/ListQueues/main.go index 3e186dd7c92..88a5f2c53c4 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/ListQueues/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/ListQueues/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/ListTasks/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/ListTasks/main.go index 819d444cf2d..616a884f555 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/ListTasks/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/ListTasks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/PauseQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/PauseQueue/main.go index e72bf1be12b..887a2f67fb3 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/PauseQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/PauseQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/PurgeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/PurgeQueue/main.go index 4267f7ac809..43e6b8a7eb1 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/PurgeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/PurgeQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/ResumeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/ResumeQueue/main.go index ac64b2b1c8e..1c1470ceca2 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/ResumeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/ResumeQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/RunTask/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/RunTask/main.go index 2b7b57a2857..7ad2ddd09a3 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/RunTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/RunTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/SetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/SetIamPolicy/main.go index 1bcb3551eea..e6f429ebc8f 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/TestIamPermissions/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/TestIamPermissions/main.go index e738a837c2e..cb4fcdd96c8 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/Client/UpdateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2/Client/UpdateQueue/main.go index fa9c3b6bb5c..3fdc00916b5 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/Client/UpdateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2/Client/UpdateQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2/snippet_metadata.google.cloud.tasks.v2.json b/internal/generated/snippets/cloudtasks/apiv2/snippet_metadata.google.cloud.tasks.v2.json index 9b1130aca62..2ab0d24c458 100644 --- a/internal/generated/snippets/cloudtasks/apiv2/snippet_metadata.google.cloud.tasks.v2.json +++ b/internal/generated/snippets/cloudtasks/apiv2/snippet_metadata.google.cloud.tasks.v2.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/AcknowledgeTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/AcknowledgeTask/main.go index a136c8c586a..bcded53c487 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/AcknowledgeTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/AcknowledgeTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CancelLease/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CancelLease/main.go index 7e0def6b5f7..f19a8aec66c 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CancelLease/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CancelLease/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateQueue/main.go index b95ad69aaca..393733ba5f0 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateTask/main.go index 55fde3d0a18..2147397d1c7 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/CreateTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteQueue/main.go index 54edce1c556..995ef2cdca5 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteTask/main.go index 41aae16bce4..a7d8870fe2a 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/DeleteTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetIamPolicy/main.go index bb1cf259d46..82ef4850a34 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetQueue/main.go index 4eca441c941..286c1a2d501 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetTask/main.go index bfaf11470e9..88e7d70d4da 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/GetTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/LeaseTasks/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/LeaseTasks/main.go index ef77785bffa..58d7f6c7ac1 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/LeaseTasks/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/LeaseTasks/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListQueues/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListQueues/main.go index b419f815196..1c680946ade 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListQueues/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListQueues/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListTasks/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListTasks/main.go index fad077f65de..d49cb357fc8 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListTasks/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ListTasks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go index ab370ce699c..f60cf50d426 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PurgeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PurgeQueue/main.go index 44e7f14653e..0bad4a957ad 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PurgeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/PurgeQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RenewLease/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RenewLease/main.go index 385cc4158f7..5a312db41f6 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RenewLease/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RenewLease/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ResumeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ResumeQueue/main.go index 2b02cffdd4d..5fa53f28e3c 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ResumeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/ResumeQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RunTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RunTask/main.go index 3806efdacea..2a169ba9ee6 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RunTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/RunTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/SetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/SetIamPolicy/main.go index 4d728f6e382..1710d5d3d65 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/TestIamPermissions/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/TestIamPermissions/main.go index fc55e4d8937..7adfa9b6232 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/UpdateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/UpdateQueue/main.go index d8619fec8a0..1cd57fa9502 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/Client/UpdateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/Client/UpdateQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json b/internal/generated/snippets/cloudtasks/apiv2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json index 4dc5f7df6ef..8610708f0ff 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json +++ b/internal/generated/snippets/cloudtasks/apiv2beta2/snippet_metadata.google.cloud.tasks.v2beta2.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -279,7 +279,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -371,7 +371,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -417,7 +417,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -463,7 +463,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -509,7 +509,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -555,7 +555,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -601,7 +601,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -647,7 +647,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -923,7 +923,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateQueue/main.go index f67fa85f926..a4dd9779cc4 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateTask/main.go index ba3d9ceaedb..724395d44f8 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/CreateTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteQueue/main.go index a6270669ba4..4ed3c9a57b1 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteTask/main.go index 6a8f86b343d..f8d0ea1b6df 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/DeleteTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetIamPolicy/main.go index 3d69396e394..9796843d773 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetQueue/main.go index f47a629faf1..2291ccf4690 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetTask/main.go index 8c179e587a3..acd879c3014 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/GetTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListQueues/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListQueues/main.go index 684ecd4e5b2..ed02b9ce7fa 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListQueues/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListQueues/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListTasks/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListTasks/main.go index 17aea47dfc6..57e59938159 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListTasks/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ListTasks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PauseQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PauseQueue/main.go index 59c4715d4d0..473316c23ca 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PauseQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PauseQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PurgeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PurgeQueue/main.go index 4770ed5db09..b50e69f159e 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PurgeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/PurgeQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ResumeQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ResumeQueue/main.go index cc7909057da..6d8ad1f9f7a 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ResumeQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/ResumeQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/RunTask/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/RunTask/main.go index 8599c0989b9..267228d6c05 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/RunTask/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/RunTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/SetIamPolicy/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/SetIamPolicy/main.go index dcdac6f47da..c87d0e51166 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/TestIamPermissions/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/TestIamPermissions/main.go index 49c3b66fc5f..cd5d0f7cf91 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/UpdateQueue/main.go b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/UpdateQueue/main.go index 883cfa24813..f7acfb1835a 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/Client/UpdateQueue/main.go +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/Client/UpdateQueue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cloudtasks.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/cloudtasks/apiv2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json b/internal/generated/snippets/cloudtasks/apiv2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json index 76b32d931d1..958cf768476 100644 --- a/internal/generated/snippets/cloudtasks/apiv2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json +++ b/internal/generated/snippets/cloudtasks/apiv2beta3/snippet_metadata.google.cloud.tasks.v2beta3.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/AggregatedList/main.go index eb6fd651b99..4da34219e55 100644 --- a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAcceleratorTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/Get/main.go index 33d8236ec79..a2bffa08459 100644 --- a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAcceleratorTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/List/main.go index 7c7d046da63..3eaad50f3e0 100644 --- a/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/AcceleratorTypesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAcceleratorTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/AggregatedList/main.go index c3e0ec5a082..217aa12c7eb 100644 --- a/internal/generated/snippets/compute/apiv1/AddressesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/Delete/main.go index 2beebbb2f0f..8f272599b79 100644 --- a/internal/generated/snippets/compute/apiv1/AddressesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/Get/main.go index 3cbbd4796fc..1a8f47fbf69 100644 --- a/internal/generated/snippets/compute/apiv1/AddressesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/Insert/main.go index bf6764eaf37..65ee6f2d11e 100644 --- a/internal/generated/snippets/compute/apiv1/AddressesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AddressesClient/List/main.go b/internal/generated/snippets/compute/apiv1/AddressesClient/List/main.go index 4b6f541230e..d0ba6e1652e 100644 --- a/internal/generated/snippets/compute/apiv1/AddressesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/AddressesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/AggregatedList/main.go index 6f18b7883cb..189fba977e6 100644 --- a/internal/generated/snippets/compute/apiv1/AutoscalersClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Delete/main.go index 240f93d2b38..ce871c5de24 100644 --- a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Get/main.go index 3e8f47814a8..4e5255e4853 100644 --- a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Insert/main.go index 97964a90f94..2d8ce2b252f 100644 --- a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/List/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/List/main.go index 44784a08888..83413320227 100644 --- a/internal/generated/snippets/compute/apiv1/AutoscalersClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Patch/main.go index f67915d3b02..9ee9ca42c0f 100644 --- a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Update/main.go b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Update/main.go index 17fc30df91a..0e352493e42 100644 --- a/internal/generated/snippets/compute/apiv1/AutoscalersClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/AutoscalersClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/AddSignedUrlKey/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/AddSignedUrlKey/main.go index 6515872f393..437a8540b65 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/AddSignedUrlKey/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/AddSignedUrlKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Delete/main.go index ebb401d3579..f2603a8b263 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/DeleteSignedUrlKey/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/DeleteSignedUrlKey/main.go index 43221194854..3c6a672ca14 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/DeleteSignedUrlKey/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/DeleteSignedUrlKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Get/main.go index c3a344b19ca..a3d794186f0 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Insert/main.go index b3a1d19fcd6..e4c8ad60fb8 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/List/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/List/main.go index 30ee74ddb2e..a8ccef72631 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Patch/main.go index 53e04cc4a10..e4bf3123e46 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/SetEdgeSecurityPolicy/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/SetEdgeSecurityPolicy/main.go index bc8e589a25b..9c68e9f2bb9 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/SetEdgeSecurityPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/SetEdgeSecurityPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Update/main.go index 6a39bd4a33d..a0ffb78f286 100644 --- a/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendBucketsClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendBucketsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/AddSignedUrlKey/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/AddSignedUrlKey/main.go index 66309145be8..56e8ba63424 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/AddSignedUrlKey/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/AddSignedUrlKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/AggregatedList/main.go index 454227d67f1..338c8c23221 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Delete/main.go index 1ec456b0c65..4701e0b7d4f 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/DeleteSignedUrlKey/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/DeleteSignedUrlKey/main.go index ca9bebb449f..32213edffac 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/DeleteSignedUrlKey/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/DeleteSignedUrlKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Get/main.go index 73823ef1886..0c5be889379 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/GetHealth/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/GetHealth/main.go index 75951fa62bf..5260c1330a1 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/GetHealth/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/GetHealth/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Insert/main.go index cd67cc2ad2a..8bd1ee486be 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/List/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/List/main.go index f18d9faa546..9fae55f6d2b 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Patch/main.go index 04e12e2d738..1ec988cb71e 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetEdgeSecurityPolicy/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetEdgeSecurityPolicy/main.go index 0aefe807248..7453419aba0 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetEdgeSecurityPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetEdgeSecurityPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetSecurityPolicy/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetSecurityPolicy/main.go index 833bbcb5956..f9462f3a23c 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetSecurityPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/SetSecurityPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Update/main.go b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Update/main.go index 419aa47c2c9..90e24d7aac4 100644 --- a/internal/generated/snippets/compute/apiv1/BackendServicesClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/BackendServicesClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DiskTypesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/DiskTypesClient/AggregatedList/main.go index 5f581d67bcb..def9301e042 100644 --- a/internal/generated/snippets/compute/apiv1/DiskTypesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/DiskTypesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DiskTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/DiskTypesClient/Get/main.go index efc6ff25b77..85d7e912bc7 100644 --- a/internal/generated/snippets/compute/apiv1/DiskTypesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/DiskTypesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DiskTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/DiskTypesClient/List/main.go index 2bd1f82fa48..5c1490dd7d2 100644 --- a/internal/generated/snippets/compute/apiv1/DiskTypesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/DiskTypesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/AddResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/AddResourcePolicies/main.go index 28b84271a5a..18985bd2970 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/AddResourcePolicies/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/AddResourcePolicies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/AggregatedList/main.go index 8b8dc4bf065..287977bc7e2 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/CreateSnapshot/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/CreateSnapshot/main.go index b84db399fd3..e1ab8cec753 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/CreateSnapshot/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/CreateSnapshot/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/Delete/main.go index b159365c41d..961982bf34e 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/Get/main.go index 28b2cfe0c3c..e7a20f0d77d 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/GetIamPolicy/main.go index 85c262d436d..910bcc0e102 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/Insert/main.go index 99093265c32..fb390fe3e09 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/List/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/List/main.go index 6f60b52434c..a6a019e14d3 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/RemoveResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/RemoveResourcePolicies/main.go index 1ee4ed0aefb..25fd66b4848 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/RemoveResourcePolicies/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/RemoveResourcePolicies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/Resize/main.go index 4a1cebee40b..22ef933ea7b 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/Resize/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/Resize/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/SetIamPolicy/main.go index 2853ea25e77..89f2b36a85d 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/SetLabels/main.go index 32085617dc8..0f83d01ba04 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/DisksClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/DisksClient/TestIamPermissions/main.go index 091cfc72fae..53af296ad87 100644 --- a/internal/generated/snippets/compute/apiv1/DisksClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/DisksClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Delete/main.go index aa6968a781d..201fdd90333 100644 --- a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Get/main.go index 4de04ef2a79..a6a7df3a440 100644 --- a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Insert/main.go index 21b82d5361e..577ae1d5efa 100644 --- a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/List/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/List/main.go index 4c640d7a36d..e38dd906ad8 100644 --- a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/SetLabels/main.go index d09461dbfc9..01871c4f3b2 100644 --- a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/TestIamPermissions/main.go index 11eb79f8327..aef56ca114a 100644 --- a/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/ExternalVpnGatewaysClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewExternalVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddAssociation/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddAssociation/main.go index de427e6f841..b61b1d216bc 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddRule/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddRule/main.go index 7b96948bb44..f00eb532f10 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddRule/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/AddRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/CloneRules/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/CloneRules/main.go index 1cf53a62032..b90992b789b 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/CloneRules/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/CloneRules/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Delete/main.go index c90e46133c6..608962efebb 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Get/main.go index 298b8a8a9fe..608e4fe06d1 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetAssociation/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetAssociation/main.go index cde62ab751a..9a48a0e1f92 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetIamPolicy/main.go index 66f87be67f3..3d9070ff821 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetRule/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetRule/main.go index a3dc7c84805..46ce4a13d27 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetRule/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/GetRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Insert/main.go index 1382f261198..ebc495e2a9c 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/List/main.go index 6ec05ab9a2d..23f622feb9f 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/ListAssociations/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/ListAssociations/main.go index 121d7418815..f9544ee4ce6 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/ListAssociations/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/ListAssociations/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Move/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Move/main.go index af0f2243848..a0f05da6441 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Move/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Move/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Patch/main.go index 0c7330357e9..8e0278848f3 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/PatchRule/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/PatchRule/main.go index fd3a1be8254..e389d3ef0b6 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/PatchRule/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/PatchRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveAssociation/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveAssociation/main.go index 740121003f7..9beaee2fcb7 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveRule/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveRule/main.go index 88287873984..9b3e662a14c 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveRule/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/RemoveRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/SetIamPolicy/main.go index b69d38b516a..048ba747e56 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/TestIamPermissions/main.go index abbb6ddc2cb..00e498a7ece 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallPoliciesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Delete/main.go index d86c84749e4..8c17a79cbfe 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Get/main.go index 072665f1997..fb4861b0276 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Insert/main.go index 93530bd69d3..9bc8ffc3d61 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/List/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/List/main.go index c63f570f86d..06e7269dee9 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Patch/main.go index 9b7fd6599f3..ee29023519e 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/FirewallsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/FirewallsClient/Update/main.go index fd14d5f018c..f77d4687a8b 100644 --- a/internal/generated/snippets/compute/apiv1/FirewallsClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/FirewallsClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewFirewallsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/AggregatedList/main.go index f3a0ea21283..1f29b9d9e73 100644 --- a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Delete/main.go index 02422b5cecd..9e233aede11 100644 --- a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Get/main.go index 3af457be20b..514a8b114a3 100644 --- a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Insert/main.go index a9c2bc4a162..98cb45666e6 100644 --- a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/List/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/List/main.go index d3a935ff6e4..729f21e4209 100644 --- a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Patch/main.go index b4ac1d05d30..0cab1fbcdb7 100644 --- a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetLabels/main.go index 08168e657c6..0a6edd6e0f5 100644 --- a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetTarget/main.go b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetTarget/main.go index 6ad13598d58..c9db76a0a56 100644 --- a/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetTarget/main.go +++ b/internal/generated/snippets/compute/apiv1/ForwardingRulesClient/SetTarget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Delete/main.go index b77e50ef68b..468bb42f664 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Get/main.go index cbab9d98efa..274316dadb4 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Insert/main.go index b57d167f223..08a86f0fe66 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/List/main.go index cca72fd5e64..99dd22aeb85 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalAddressesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalAddressesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Delete/main.go index 44b323fbb72..0cf8bb0150a 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Get/main.go index 633cee50ce5..62df23fd5a0 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Insert/main.go index afcd2c7f21c..76cc71038b7 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/List/main.go index 20c0d353542..69a1af800a4 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Patch/main.go index 347472225a8..ca1b3495073 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetLabels/main.go index 708236a994c..92581aa914f 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetTarget/main.go b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetTarget/main.go index e8c0bbd4697..6ce0e6dda20 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetTarget/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalForwardingRulesClient/SetTarget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalForwardingRulesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go index 8c537b68643..d08d7f6d41d 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Delete/main.go index df496ae5dfa..545ba60a211 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go index 2732c3d91c7..fcf8e0bd4ec 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Get/main.go index 6005f087505..af9d119d113 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Insert/main.go index e1a0f7fe199..ffe67164dfc 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/List/main.go index 2e6252c18c6..bc9ed4d9b86 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go index 4c51c7d5423..686af828532 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalNetworkEndpointGroupsClient/ListNetworkEndpoints/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/AggregatedList/main.go index abd420232b6..5e952dc93bc 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Delete/main.go index 69bdaf86d1e..d8b101e7118 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Get/main.go index 2837fb5e1d7..bc1c0d3eae1 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/List/main.go index 8f88642004e..aa64fb60c11 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Wait/main.go b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Wait/main.go index 71ae0049232..184aa26d7e3 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Wait/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalOperationsClient/Wait/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Delete/main.go index 895260ed8c7..b63ddac735f 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Get/main.go index 7d46dfedca0..924a4e0df8c 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/List/main.go index 468e0337b8a..a95143a71c4 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalOrganizationOperationsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalOrganizationOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Delete/main.go index 8261a18c900..2f55d982331 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Get/main.go index 3ead4c361a2..250b81a7667 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Insert/main.go index 21b68721410..9f61d82b86a 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/List/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/List/main.go index 24b200fe6d7..663796557c1 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Patch/main.go index b8165fa1125..39d631076d2 100644 --- a/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/GlobalPublicDelegatedPrefixesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewGlobalPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/AggregatedList/main.go index 39b47e7ba75..63e3b67b354 100644 --- a/internal/generated/snippets/compute/apiv1/HealthChecksClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Delete/main.go index df22509f8d0..e60fee503e6 100644 --- a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Get/main.go index d5f642e118f..0771d371d73 100644 --- a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Insert/main.go index 378d8c43213..f3f82f0db60 100644 --- a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/List/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/List/main.go index 82f6b4ec962..0ee13941f49 100644 --- a/internal/generated/snippets/compute/apiv1/HealthChecksClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Patch/main.go index 032af947be1..e0495880875 100644 --- a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Update/main.go b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Update/main.go index b526d07b2c8..37096658281 100644 --- a/internal/generated/snippets/compute/apiv1/HealthChecksClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/HealthChecksClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImageFamilyViewsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ImageFamilyViewsClient/Get/main.go index bea85cb213e..4980d5078bf 100644 --- a/internal/generated/snippets/compute/apiv1/ImageFamilyViewsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ImageFamilyViewsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImageFamilyViewsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Delete/main.go index 9c3c9bb01e7..4fb6638d336 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Deprecate/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Deprecate/main.go index fcdd40c42af..1a76a2786ce 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/Deprecate/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Deprecate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Get/main.go index e4c43d368c9..1d777ff6e03 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/GetFromFamily/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/GetFromFamily/main.go index 158afc61816..e062429b33d 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/GetFromFamily/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/GetFromFamily/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/GetIamPolicy/main.go index e3c6ce5c59c..90204f6fad3 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Insert/main.go index 61c2d427ba0..56d82e73bb0 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/List/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/List/main.go index bd4fb8a9ffd..3222c49f7ef 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/Patch/main.go index e338f09feaf..3e3c6a12f0b 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/SetIamPolicy/main.go index 3a26681460d..96ef6878c2f 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/SetLabels/main.go index d8d507910d1..5afb0787a55 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ImagesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ImagesClient/TestIamPermissions/main.go index 9406a0d423c..ffef916883a 100644 --- a/internal/generated/snippets/compute/apiv1/ImagesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/ImagesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AbandonInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AbandonInstances/main.go index 39d0e559731..b143d2cdc9c 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AbandonInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AbandonInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AggregatedList/main.go index 04c3ddbdb10..d5c74fca495 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go index 29435bafbd8..b50c7b38315 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ApplyUpdatesToInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/CreateInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/CreateInstances/main.go index 68e38bb27f9..67d814a7ccb 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/CreateInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/CreateInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Delete/main.go index 5a6283b7047..fd28219478e 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeleteInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeleteInstances/main.go index fc7215b47eb..b662f8fb00f 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeleteInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeleteInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go index 9bbaaa803e6..d053f93716c 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/DeletePerInstanceConfigs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Get/main.go index 54f28724801..f4e518ba794 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Insert/main.go index 98ffc9960a0..2136d54ce7a 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/List/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/List/main.go index 74853db9135..b007b3305c4 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListErrors/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListErrors/main.go index 60af73464d4..79f4b1772d5 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListErrors/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListErrors/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListManagedInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListManagedInstances/main.go index 00ee28d71ed..5edf7f9afdb 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListManagedInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListManagedInstances/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListPerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListPerInstanceConfigs/main.go index 0764275beef..78ae3e1bdbd 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListPerInstanceConfigs/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/ListPerInstanceConfigs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Patch/main.go index 0bc3acbd640..1fc13db4c5c 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go index 7db3b3230e2..11f9db0248f 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/PatchPerInstanceConfigs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/RecreateInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/RecreateInstances/main.go index dbd592e5c77..87b97879314 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/RecreateInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/RecreateInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Resize/main.go index fca2f2aa769..3b61947e1ce 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Resize/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/Resize/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetInstanceTemplate/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetInstanceTemplate/main.go index 6a80438e87d..349a0827335 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetInstanceTemplate/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetInstanceTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetTargetPools/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetTargetPools/main.go index 17cd8197657..f2c5de525fc 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetTargetPools/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/SetTargetPools/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go index 5517c188d05..281f08a1ac6 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AddInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AddInstances/main.go index 1f83377ce2d..bef32207adf 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AddInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AddInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AggregatedList/main.go index d81fda2df0b..086a145fca9 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Delete/main.go index 12b0b9deaf9..4a5e562fcac 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Get/main.go index 8a6743ff28f..a1bf7e5145c 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Insert/main.go index fa87d73cc63..1ee4b7f3f83 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/List/main.go index b48d6d89fc9..e1bce7149ac 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/ListInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/ListInstances/main.go index 46e508ce652..7058530c483 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/ListInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/ListInstances/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/RemoveInstances/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/RemoveInstances/main.go index 86a5b1e8bee..68b45bab9f8 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/RemoveInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/RemoveInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/SetNamedPorts/main.go b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/SetNamedPorts/main.go index 71a9e128fd3..9a3852f4b89 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/SetNamedPorts/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceGroupsClient/SetNamedPorts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Delete/main.go index beede7c885d..03b28199a84 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Get/main.go index 2a640ef1620..0096aa5e94c 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/GetIamPolicy/main.go index f547dc06008..f49859c0b54 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Insert/main.go index b598c4a72fb..60ace8675a4 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/List/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/List/main.go index 5ea4c4920d6..5f594828e73 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/SetIamPolicy/main.go index f0cc83885c2..ee55f8ca256 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/TestIamPermissions/main.go index 912f4f2098e..7305f72bb47 100644 --- a/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/InstanceTemplatesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstanceTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/AddAccessConfig/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/AddAccessConfig/main.go index 207659097b5..85ff941b1cc 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/AddAccessConfig/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/AddAccessConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/AddResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/AddResourcePolicies/main.go index 2a409e412e5..f9c440d059c 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/AddResourcePolicies/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/AddResourcePolicies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/AggregatedList/main.go index 2bcd9815ad8..fa57499812c 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/AttachDisk/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/AttachDisk/main.go index 1e8525df2d1..99791a8aae9 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/AttachDisk/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/AttachDisk/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/BulkInsert/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/BulkInsert/main.go index e8f7608360e..b74ca604ef8 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/BulkInsert/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/BulkInsert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Delete/main.go index 37179b53c76..35f7bbbfbb7 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/DeleteAccessConfig/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/DeleteAccessConfig/main.go index 52be5974e72..c2fed1fda79 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/DeleteAccessConfig/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/DeleteAccessConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/DetachDisk/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/DetachDisk/main.go index 4d9b9814f8c..00d4273eb75 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/DetachDisk/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/DetachDisk/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Get/main.go index a8753a515e1..10d7abbb53b 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetEffectiveFirewalls/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetEffectiveFirewalls/main.go index f99c8f729bd..56462d38839 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/GetEffectiveFirewalls/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetEffectiveFirewalls/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetGuestAttributes/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetGuestAttributes/main.go index db09283bc0f..b9f5ba53c75 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/GetGuestAttributes/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetGuestAttributes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetIamPolicy/main.go index 74e5f49714d..ac139afcc8d 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetScreenshot/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetScreenshot/main.go index 2a880ce1c5a..2189268bc88 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/GetScreenshot/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetScreenshot/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetSerialPortOutput/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetSerialPortOutput/main.go index 71b2539b638..d72adddc87e 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/GetSerialPortOutput/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetSerialPortOutput/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/GetShieldedInstanceIdentity/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/GetShieldedInstanceIdentity/main.go index 9ae19008414..5e5bc929a5b 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/GetShieldedInstanceIdentity/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/GetShieldedInstanceIdentity/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Insert/main.go index a58fcaf5545..b6f1e5b1aab 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/List/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/List/main.go index fcccf3f012c..bdb0f528653 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/ListReferrers/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/ListReferrers/main.go index bea9f02c10a..63bc4e0ed1f 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/ListReferrers/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/ListReferrers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/RemoveResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/RemoveResourcePolicies/main.go index 021dd91cb7a..25cb9dc367e 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/RemoveResourcePolicies/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/RemoveResourcePolicies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Reset/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Reset/main.go index 30669619aac..d87afb30d1d 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Reset/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Reset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Resume/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Resume/main.go index 7bdf682915a..9637b21ecdc 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Resume/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Resume/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SendDiagnosticInterrupt/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SendDiagnosticInterrupt/main.go index 3e8af7ca0a7..e3f07c23d5a 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SendDiagnosticInterrupt/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SendDiagnosticInterrupt/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetDeletionProtection/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetDeletionProtection/main.go index eeba78e6cfb..8fa03e79831 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetDeletionProtection/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetDeletionProtection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetDiskAutoDelete/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetDiskAutoDelete/main.go index 11037f1bdbc..48e3c9018c2 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetDiskAutoDelete/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetDiskAutoDelete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetIamPolicy/main.go index acf7293caaf..26991b6caf4 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetLabels/main.go index 831f03ec7e8..c5135819ca4 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineResources/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineResources/main.go index fd2929d232d..619220f13a5 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineResources/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineResources/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineType/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineType/main.go index 998da4e1b08..845a552aa33 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineType/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMachineType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMetadata/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMetadata/main.go index 09134ddffa5..8b04298fbb1 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMetadata/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMetadata/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMinCpuPlatform/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMinCpuPlatform/main.go index d310ccc65b1..2b26a998a4f 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetMinCpuPlatform/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetMinCpuPlatform/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetScheduling/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetScheduling/main.go index 4be41da700e..ac7d8620123 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetScheduling/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetScheduling/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetServiceAccount/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetServiceAccount/main.go index 86660d2adbe..98a3dc81b78 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetServiceAccount/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetServiceAccount/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go index bd04360cc50..65f0051a595 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetShieldedInstanceIntegrityPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SetTags/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SetTags/main.go index a2ec94f875b..f5464fa6b41 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SetTags/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SetTags/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/SimulateMaintenanceEvent/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/SimulateMaintenanceEvent/main.go index 0d5581f17b8..a1a3d3e1165 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/SimulateMaintenanceEvent/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/SimulateMaintenanceEvent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Start/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Start/main.go index 6e82701d0d3..9ad38f4049d 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Start/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Start/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/StartWithEncryptionKey/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/StartWithEncryptionKey/main.go index a98d374fd00..27cea854190 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/StartWithEncryptionKey/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/StartWithEncryptionKey/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Stop/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Stop/main.go index dac9373c66a..36319804f0f 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Stop/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Stop/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Suspend/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Suspend/main.go index 20b7edffefa..58d2fb5415a 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Suspend/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Suspend/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/TestIamPermissions/main.go index 4eff1f9791e..f3d4d5c2ea2 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/Update/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/Update/main.go index bd8175b67df..886e4aa9f3e 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateAccessConfig/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateAccessConfig/main.go index 7fe115a8bb6..82c89082d4b 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateAccessConfig/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateAccessConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateDisplayDevice/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateDisplayDevice/main.go index 521a893e9fc..c5486fb01af 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateDisplayDevice/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateDisplayDevice/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateNetworkInterface/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateNetworkInterface/main.go index 9dbc87c79d0..06453652ee8 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateNetworkInterface/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateNetworkInterface/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateShieldedInstanceConfig/main.go b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateShieldedInstanceConfig/main.go index 8c4422171bb..3e106c8cddb 100644 --- a/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateShieldedInstanceConfig/main.go +++ b/internal/generated/snippets/compute/apiv1/InstancesClient/UpdateShieldedInstanceConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/AggregatedList/main.go index 03f23b12412..5696b3b1ba3 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Delete/main.go index f0844f2905f..dc8a8fb8abb 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Get/main.go index 98b53e6125c..f5bb872ef7a 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Insert/main.go index 14291266bac..bfd3cf1ad67 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/List/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/List/main.go index 16b10df1dc0..d9a43dcc56d 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Patch/main.go index 2a4548222e0..a9e6bef80d0 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectAttachmentsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/Get/main.go index 7e2295bccfe..7be69d012dd 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectLocationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/List/main.go index cb4df1f51da..57f0ee1d08e 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectLocationsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectLocationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Delete/main.go index 38ee3133689..c1cd4483662 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Get/main.go index 0877fa9b7aa..fc1d9d36632 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/GetDiagnostics/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/GetDiagnostics/main.go index 4bc9836e807..352acd1e8a2 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectsClient/GetDiagnostics/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/GetDiagnostics/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Insert/main.go index b96f74c3bb9..293f234c49c 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/List/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/List/main.go index 5a1c6266a6a..a8d0671f5f3 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Patch/main.go index c5038c68399..8b2e3c3fa2e 100644 --- a/internal/generated/snippets/compute/apiv1/InterconnectsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/InterconnectsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewInterconnectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicenseCodesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/LicenseCodesClient/Get/main.go index 89374493d86..efa9c3bfe51 100644 --- a/internal/generated/snippets/compute/apiv1/LicenseCodesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/LicenseCodesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicenseCodesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicenseCodesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/LicenseCodesClient/TestIamPermissions/main.go index fb147cce5d4..de3697afca7 100644 --- a/internal/generated/snippets/compute/apiv1/LicenseCodesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/LicenseCodesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicenseCodesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/Delete/main.go index 8f06f37bbd6..53ad3f5981f 100644 --- a/internal/generated/snippets/compute/apiv1/LicensesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/Get/main.go index 16db0b6fe07..d62446c9503 100644 --- a/internal/generated/snippets/compute/apiv1/LicensesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/GetIamPolicy/main.go index a7ec7e13068..bee51c9997a 100644 --- a/internal/generated/snippets/compute/apiv1/LicensesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/Insert/main.go index cd06e246be8..9a0a1cc527f 100644 --- a/internal/generated/snippets/compute/apiv1/LicensesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/List/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/List/main.go index 8783804716c..4eef7a5b244 100644 --- a/internal/generated/snippets/compute/apiv1/LicensesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/SetIamPolicy/main.go index d6b177e7a9c..ac5ad73e397 100644 --- a/internal/generated/snippets/compute/apiv1/LicensesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/LicensesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/LicensesClient/TestIamPermissions/main.go index dff454ccd52..25b56e609b7 100644 --- a/internal/generated/snippets/compute/apiv1/LicensesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/LicensesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewLicensesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineImagesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/MachineImagesClient/Delete/main.go index 69928ceeed0..c32024bf3a3 100644 --- a/internal/generated/snippets/compute/apiv1/MachineImagesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineImagesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineImagesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/MachineImagesClient/Get/main.go index 6707bdd5e10..7ca1d7c9f1f 100644 --- a/internal/generated/snippets/compute/apiv1/MachineImagesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineImagesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineImagesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/MachineImagesClient/GetIamPolicy/main.go index c636110f095..88fba6061a7 100644 --- a/internal/generated/snippets/compute/apiv1/MachineImagesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineImagesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineImagesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/MachineImagesClient/Insert/main.go index f4a2aebe147..93adb593cff 100644 --- a/internal/generated/snippets/compute/apiv1/MachineImagesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineImagesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineImagesClient/List/main.go b/internal/generated/snippets/compute/apiv1/MachineImagesClient/List/main.go index b29c23e5465..3a2e26ee9fe 100644 --- a/internal/generated/snippets/compute/apiv1/MachineImagesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineImagesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineImagesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/MachineImagesClient/SetIamPolicy/main.go index f8d36121668..3a704f5ef8b 100644 --- a/internal/generated/snippets/compute/apiv1/MachineImagesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineImagesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineImagesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/MachineImagesClient/TestIamPermissions/main.go index 800cac3436e..5f206fb8578 100644 --- a/internal/generated/snippets/compute/apiv1/MachineImagesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineImagesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineImagesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineTypesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/MachineTypesClient/AggregatedList/main.go index 0f6b42b3290..796b4db48f3 100644 --- a/internal/generated/snippets/compute/apiv1/MachineTypesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineTypesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/MachineTypesClient/Get/main.go index c38505b30b1..788302fb2fb 100644 --- a/internal/generated/snippets/compute/apiv1/MachineTypesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineTypesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/MachineTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/MachineTypesClient/List/main.go index edc69738720..001ac9b21f9 100644 --- a/internal/generated/snippets/compute/apiv1/MachineTypesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/MachineTypesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewMachineTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/AggregatedList/main.go index e82168453a4..a6c3f29a506 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Delete/main.go index de0241b6035..603504fd817 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Get/main.go index 2dd0c71c695..eb38afcad3f 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Insert/main.go index ed740e12ceb..df898afbf1d 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Patch/main.go index ae719c1d518..2e9b1716bb8 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEdgeSecurityServicesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEdgeSecurityServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AggregatedList/main.go index ddb4d64619f..c1a0fde5962 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go index 77d26dc17a0..f96b62ce5a9 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/AttachNetworkEndpoints/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Delete/main.go index eaaa4f6c4d1..c885807a1d5 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go index 5e9e66fc5ce..f85bf21d508 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/DetachNetworkEndpoints/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Get/main.go index dc80a5ce09f..cff837f3c7b 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Insert/main.go index f1bb97aac1e..d207a52ea31 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/List/main.go index 954f175997c..b9a34584578 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go index 0f90270b1a3..9dcc9b9ecc5 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/ListNetworkEndpoints/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/TestIamPermissions/main.go index b4db3074d70..b2aa005d5ca 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkEndpointGroupsClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/AddAssociation/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/AddAssociation/main.go index 70adf9f2d25..94fdaf9fb10 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/AddAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/AddAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/AddRule/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/AddRule/main.go index 40534ae5e3c..fd5f900b6bf 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/AddRule/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/AddRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/CloneRules/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/CloneRules/main.go index a09472f9cd4..93e8a508c12 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/CloneRules/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/CloneRules/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Delete/main.go index b65b6fab0f2..94d060bbe41 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Get/main.go index 5eac50a696a..a9082e563ff 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetAssociation/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetAssociation/main.go index 216ca490243..ee79622f363 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetIamPolicy/main.go index b7bbc9b4159..17a2fefd92b 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetRule/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetRule/main.go index 8acfad3ccb4..0edc9f4da90 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetRule/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/GetRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Insert/main.go index eea60a81b18..04c51a3abbd 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/List/main.go index e0468e57060..76919c580f7 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Patch/main.go index fbfe0d682ee..7e677a5e0fe 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/PatchRule/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/PatchRule/main.go index b7df05eb9c5..1adff3d49c6 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/PatchRule/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/PatchRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/RemoveAssociation/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/RemoveAssociation/main.go index 8a8387fa2e5..3e5f8f586e9 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/RemoveAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/RemoveAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/RemoveRule/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/RemoveRule/main.go index a995bebaf2c..c734eb3965e 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/RemoveRule/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/RemoveRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/SetIamPolicy/main.go index c4fb1cd67a7..ac9c29c1db7 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/TestIamPermissions/main.go index 04a694c5b88..d479af2d394 100644 --- a/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworkFirewallPoliciesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/AddPeering/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/AddPeering/main.go index e76c19d063b..ebdfedd16ac 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/AddPeering/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/AddPeering/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/Delete/main.go index d0f13dfc358..3f64b5711e7 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/Get/main.go index d806aca8ba8..e85d71b5a69 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/GetEffectiveFirewalls/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/GetEffectiveFirewalls/main.go index ea13024116b..8066dc565e5 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/GetEffectiveFirewalls/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/GetEffectiveFirewalls/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/Insert/main.go index cce09b8096f..08955c859d4 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/List/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/List/main.go index cf1618b7ac8..1afa8161eb9 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/ListPeeringRoutes/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/ListPeeringRoutes/main.go index 7f85247e49d..5c295d96ed4 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/ListPeeringRoutes/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/ListPeeringRoutes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/Patch/main.go index 0e403d22622..24c0de0b211 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/RemovePeering/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/RemovePeering/main.go index e5d033bb60f..6b2f9c72469 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/RemovePeering/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/RemovePeering/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/SwitchToCustomMode/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/SwitchToCustomMode/main.go index 371b35be628..a66c30a300f 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/SwitchToCustomMode/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/SwitchToCustomMode/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NetworksClient/UpdatePeering/main.go b/internal/generated/snippets/compute/apiv1/NetworksClient/UpdatePeering/main.go index d93aa8504a5..64cd3234464 100644 --- a/internal/generated/snippets/compute/apiv1/NetworksClient/UpdatePeering/main.go +++ b/internal/generated/snippets/compute/apiv1/NetworksClient/UpdatePeering/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AddNodes/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AddNodes/main.go index 278bd3d0f86..5cbb3a71cc2 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AddNodes/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AddNodes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AggregatedList/main.go index 8f37ec5c5d6..120c59229e8 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Delete/main.go index 9b9945adc8d..c9afcb28fd2 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/DeleteNodes/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/DeleteNodes/main.go index 9a5d7c4e47d..2e1d81d5efd 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/DeleteNodes/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/DeleteNodes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Get/main.go index 04a466b14a2..fd876a94aa6 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/GetIamPolicy/main.go index 1039472e6de..3457d0dd5a6 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Insert/main.go index 282a6e734fd..00ebe49affd 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/List/main.go index 38151bde110..abfe3def1b3 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/ListNodes/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/ListNodes/main.go index 15e6676fee1..09d923a32e0 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/ListNodes/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/ListNodes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Patch/main.go index c9bd4724480..9e31cb5e224 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetIamPolicy/main.go index 18829a3e425..09bda429b08 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetNodeTemplate/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetNodeTemplate/main.go index 214bfb66e6c..9dedd5f6677 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetNodeTemplate/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/SetNodeTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/TestIamPermissions/main.go index e1d9e2cd638..ac9b6595ef7 100644 --- a/internal/generated/snippets/compute/apiv1/NodeGroupsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeGroupsClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/AggregatedList/main.go index efb8bf9f8cc..9226c150c52 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Delete/main.go index 7abe9119c20..29cba5235b4 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Get/main.go index af91133c093..5c4e414e5d8 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/GetIamPolicy/main.go index b89ad94f58b..2a4e3169f2f 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Insert/main.go index 8c934f2ee47..e7c332df327 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/List/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/List/main.go index c7b8efe64db..42c982bed66 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/SetIamPolicy/main.go index 34ddd857983..f2333f4c472 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/TestIamPermissions/main.go index 34da94fa2ef..5d5700a9e59 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTemplatesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTemplatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTypesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/NodeTypesClient/AggregatedList/main.go index 97c3241bee8..a84cfb1a23e 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTypesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTypesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/NodeTypesClient/Get/main.go index 61c77f5cbe9..8619cfb069b 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTypesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTypesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/NodeTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/NodeTypesClient/List/main.go index 7199ea3ba5b..fc425338c5c 100644 --- a/internal/generated/snippets/compute/apiv1/NodeTypesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/NodeTypesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewNodeTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/AggregatedList/main.go index af4d2b7fc70..f5566ee3fd0 100644 --- a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Delete/main.go index 25acad0105e..d53f5aabd9e 100644 --- a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Get/main.go index f80de9f1730..10eb76ef8a8 100644 --- a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Insert/main.go index 774fdad8298..6b86c5ca6ae 100644 --- a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/List/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/List/main.go index f859d89a61a..fd0b489b132 100644 --- a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Patch/main.go index 5a960cd8ba6..d14e83e2eb3 100644 --- a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/TestIamPermissions/main.go index f078f51715d..4b47b8229dd 100644 --- a/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/PacketMirroringsClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPacketMirroringsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnHost/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnHost/main.go index 98304e46c74..4e487840c5f 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnHost/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnHost/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnResource/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnResource/main.go index a8e4e2cff04..12167c15f95 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnResource/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/DisableXpnResource/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnHost/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnHost/main.go index 353c80d975e..b90b187f25c 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnHost/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnHost/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnResource/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnResource/main.go index cd272493bb9..8f413e70dd7 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnResource/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/EnableXpnResource/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/Get/main.go index cde95407a3b..d7401f7dc76 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnHost/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnHost/main.go index 06a3e513acf..49c7ef3a06c 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnHost/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnHost/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnResources/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnResources/main.go index 29b0678f80a..c45db7c3243 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnResources/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/GetXpnResources/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/ListXpnHosts/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/ListXpnHosts/main.go index c96e5c7c7ab..fecf32c4c59 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/ListXpnHosts/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/ListXpnHosts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveDisk/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveDisk/main.go index abedd570019..f9e36624f5e 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveDisk/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveDisk/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveInstance/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveInstance/main.go index 03dc09706b5..bb7efdb95b4 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveInstance/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/MoveInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetCommonInstanceMetadata/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetCommonInstanceMetadata/main.go index 67701cd5280..50491cbb1d5 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetCommonInstanceMetadata/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetCommonInstanceMetadata/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetDefaultNetworkTier/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetDefaultNetworkTier/main.go index 9c169efc4ed..b5659e05bc5 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetDefaultNetworkTier/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetDefaultNetworkTier/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetUsageExportBucket/main.go b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetUsageExportBucket/main.go index 7c6a4c760bb..2cead017ebc 100644 --- a/internal/generated/snippets/compute/apiv1/ProjectsClient/SetUsageExportBucket/main.go +++ b/internal/generated/snippets/compute/apiv1/ProjectsClient/SetUsageExportBucket/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewProjectsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Delete/main.go index 85fa48bff64..e404575d413 100644 --- a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Get/main.go index 8ae5d37c638..247075f1ba5 100644 --- a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Insert/main.go index fed9a0880d6..8d93682134c 100644 --- a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/List/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/List/main.go index 3a468dab44e..ead711d5b9a 100644 --- a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Patch/main.go index 306576707d3..d5079232822 100644 --- a/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicAdvertisedPrefixesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicAdvertisedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/AggregatedList/main.go index 6fba911e54c..918be20d79c 100644 --- a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Delete/main.go index 6ac8d634af1..5c8f985384a 100644 --- a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Get/main.go index 8b3c871ef7f..2e0fa3bd4a6 100644 --- a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Insert/main.go index ceea4ed6831..9e38ecb3da1 100644 --- a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/List/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/List/main.go index d7b7e768221..843f70f84e1 100644 --- a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Patch/main.go index 653a05e4fee..5e8a3a3fca7 100644 --- a/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/PublicDelegatedPrefixesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewPublicDelegatedPrefixesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Delete/main.go index 601c9a05e1f..cc4390868f7 100644 --- a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Get/main.go index 96cf0f15287..faaa527cb66 100644 --- a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Insert/main.go index 3b326eb240d..86fa2235940 100644 --- a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/List/main.go index dbf2813e27c..e3980fcded0 100644 --- a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Patch/main.go index bd821dbc6a9..8cf893fbfe9 100644 --- a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Update/main.go index 9a2deef22b3..8035d5a2155 100644 --- a/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionAutoscalersClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionAutoscalersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Delete/main.go index b776c315a80..8a4fd0e7872 100644 --- a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Get/main.go index e27fe914e5d..cdf4c9db879 100644 --- a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/GetHealth/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/GetHealth/main.go index c4dfab0e838..9cf7288bcd5 100644 --- a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/GetHealth/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/GetHealth/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Insert/main.go index 49e95c18195..9bc01866b8d 100644 --- a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/List/main.go index f7ecbd58483..aca8756873a 100644 --- a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Patch/main.go index 581d8db4459..35c1fbaeaff 100644 --- a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Update/main.go index e0062edb939..a1f1c894fd6 100644 --- a/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionBackendServicesClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionBackendServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/AggregatedList/main.go index b84cc4fd13a..edfce8ee907 100644 --- a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Get/main.go index f789e9f38b3..adcaf9bdfe8 100644 --- a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Insert/main.go index 19b80dcb944..43877508345 100644 --- a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/List/main.go index 5fa9ca4de2b..0079cea97bf 100644 --- a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Update/main.go index a14ea49783b..ddc1a856c1e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionCommitmentsClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionCommitmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/Get/main.go index dd1e863f4ef..fe7ed9051e7 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/List/main.go index 88a732e8a4f..8c33ff51224 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDiskTypesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDiskTypesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/AddResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/AddResourcePolicies/main.go index 516f1602515..de2644cb749 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/AddResourcePolicies/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/AddResourcePolicies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/CreateSnapshot/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/CreateSnapshot/main.go index bbb87ce4056..ab1cf6e7601 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/CreateSnapshot/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/CreateSnapshot/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Delete/main.go index ff6052854f6..baa81b267cb 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Get/main.go index ae06753d62d..5f5a5c771ca 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/GetIamPolicy/main.go index ef430e4af08..7edb83de094 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Insert/main.go index ee16a4b20fd..a96fddf9795 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/List/main.go index a3e0f840be4..ac3a1168e35 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/RemoveResourcePolicies/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/RemoveResourcePolicies/main.go index 8aef2ab1229..323be429621 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/RemoveResourcePolicies/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/RemoveResourcePolicies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Resize/main.go index b3c28bdbd40..7b4416dcebf 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/Resize/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/Resize/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetIamPolicy/main.go index 970eb3bb7df..74c49cc579e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetLabels/main.go index 6802064acfd..cc0744d7f6a 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionDisksClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/RegionDisksClient/TestIamPermissions/main.go index b29f0b4990f..943451e6145 100644 --- a/internal/generated/snippets/compute/apiv1/RegionDisksClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionDisksClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionDisksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Delete/main.go index fe1538c6ee7..2bcc72daaa7 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Get/main.go index a5703ddd5bc..ff6870b979d 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Insert/main.go index d9bad5a4565..72f789f58d9 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/List/main.go index 92f6066025c..2e9e8563837 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Patch/main.go index 2f587566e02..42490d65c5f 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthCheckServicesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthCheckServicesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Delete/main.go index b31cf64fc24..399154f18bd 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Get/main.go index c4dae1a522c..dfe984ff598 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Insert/main.go index dcfcda1df7c..55d68e9008f 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/List/main.go index 0b9012b7e61..86520a83f3e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Patch/main.go index 27bc2d47d46..6bc85b0e440 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Update/main.go index 593cecdb79b..b634f8f21d9 100644 --- a/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionHealthChecksClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionHealthChecksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/AbandonInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/AbandonInstances/main.go index 048c043612c..0c10c9f7b3e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/AbandonInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/AbandonInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go index 59ee9dbeb37..630e91ec87a 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ApplyUpdatesToInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/CreateInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/CreateInstances/main.go index 2755c1c90f8..9cf5cca200a 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/CreateInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/CreateInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Delete/main.go index 797d0d0c583..519c1a39a24 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeleteInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeleteInstances/main.go index 04577a9dab3..5d83a031f49 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeleteInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeleteInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go index 78f77e06368..62ae3527aff 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/DeletePerInstanceConfigs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Get/main.go index b8dca0e44cd..e358008c6c1 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Insert/main.go index 6af0c5ecd3d..9182d7f911c 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/List/main.go index 4edd1b6b934..6d1dc2d2e9b 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListErrors/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListErrors/main.go index a925ccd3bd5..f033982b7f6 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListErrors/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListErrors/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListManagedInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListManagedInstances/main.go index 98921ed10a5..e655bab6d00 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListManagedInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListManagedInstances/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go index 19125c9084b..734226b2494 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/ListPerInstanceConfigs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Patch/main.go index 617c63b88c8..c40f5816ac4 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go index 0f5a910a663..1b1134500be 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/PatchPerInstanceConfigs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/RecreateInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/RecreateInstances/main.go index 1f70347746d..936d8999a29 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/RecreateInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/RecreateInstances/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Resize/main.go index 54a41c39ed9..0368a4a0343 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Resize/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/Resize/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go index 50db52159dd..d6eb23fc1be 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetInstanceTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetTargetPools/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetTargetPools/main.go index a07a6dd49c7..b695c793909 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetTargetPools/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/SetTargetPools/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go index 45f81312f3b..b8f0748f262 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupManagersClient/UpdatePerInstanceConfigs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupManagersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/Get/main.go index f29af090620..00c32f76d15 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/List/main.go index bf25c4f27d2..0d19e2a56fe 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/ListInstances/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/ListInstances/main.go index 4337a333aa0..108a55f2355 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/ListInstances/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/ListInstances/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/SetNamedPorts/main.go b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/SetNamedPorts/main.go index 9a420c288fd..6102452b14a 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/SetNamedPorts/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstanceGroupsClient/SetNamedPorts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstanceGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionInstancesClient/BulkInsert/main.go b/internal/generated/snippets/compute/apiv1/RegionInstancesClient/BulkInsert/main.go index b90d1fdb060..d5387d78a13 100644 --- a/internal/generated/snippets/compute/apiv1/RegionInstancesClient/BulkInsert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionInstancesClient/BulkInsert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Delete/main.go index 272ba335c2f..b90daff3b78 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Get/main.go index 6b51e002812..3f2a28d626d 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Insert/main.go index 8645641cf85..ef17bf57c06 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/List/main.go index 5d5e1bf13ea..0c6d5f20f1e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkEndpointGroupsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkEndpointGroupsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/AddAssociation/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/AddAssociation/main.go index bcf115e27d5..bf3440f8fc5 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/AddAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/AddAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/AddRule/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/AddRule/main.go index eec3c70177a..91aa9504096 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/AddRule/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/AddRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/CloneRules/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/CloneRules/main.go index ac8cb1ec358..88fb2143b7e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/CloneRules/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/CloneRules/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Delete/main.go index 2a0737fcbb1..aafa254528d 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Get/main.go index c081f0aef9c..45114fbf6d7 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetAssociation/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetAssociation/main.go index 6cd61260f3d..a8db2d7ffeb 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetEffectiveFirewalls/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetEffectiveFirewalls/main.go index b000869573d..ac4e7c5780b 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetEffectiveFirewalls/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetEffectiveFirewalls/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetIamPolicy/main.go index 7047f4a5135..43f9670fb67 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetRule/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetRule/main.go index ad667d990ce..aef0df9255f 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetRule/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/GetRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Insert/main.go index 5d920ae65e2..b65447e88d4 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/List/main.go index f7f3dd9344d..ae1bc2f2c71 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Patch/main.go index 54c7d9f3696..545d32aea44 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/PatchRule/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/PatchRule/main.go index 7ac6d0ee827..72be7ab3640 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/PatchRule/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/PatchRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/RemoveAssociation/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/RemoveAssociation/main.go index 7184cfa1f3d..c1340b9fa59 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/RemoveAssociation/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/RemoveAssociation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/RemoveRule/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/RemoveRule/main.go index 16cb19ebf43..1fd30baa39e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/RemoveRule/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/RemoveRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/SetIamPolicy/main.go index bf512177c82..c04c10d8ab0 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/TestIamPermissions/main.go index 1d6df2c9608..c26605847c4 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNetworkFirewallPoliciesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNetworkFirewallPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Delete/main.go index fb2ffd1dcd3..7f79104b431 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Get/main.go index 3e1b09694f1..2731fc38b56 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Insert/main.go index 33589be9d0a..0d9707afb1e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/List/main.go index cc151ef36f4..010078442c7 100644 --- a/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionNotificationEndpointsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionNotificationEndpointsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Delete/main.go index 2f256fec839..712bd82811c 100644 --- a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Get/main.go index 4087c05a0cf..a1696a155f8 100644 --- a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/List/main.go index 6b03f3f92a0..fbc4dc3aa5a 100644 --- a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Wait/main.go b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Wait/main.go index c36ed3db30f..bbde1570723 100644 --- a/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Wait/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionOperationsClient/Wait/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Delete/main.go index 0c68d3d7cd3..ce579af3e55 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Get/main.go index 4b115eed555..c58a4083924 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Insert/main.go index 1e8cc3696b7..977881ddfdd 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/List/main.go index 8e6a7b000bf..9ace9487b08 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Patch/main.go index 0bddce3c9ac..2d1bc5b4ab8 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSecurityPoliciesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Delete/main.go index fead98ed79b..5fd4985b032 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Get/main.go index 36fab62402d..f837dc2f350 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Insert/main.go index e04b16e8ca1..2bc15185a77 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/List/main.go index 36747c4b544..157c2e7db78 100644 --- a/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionSslCertificatesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Delete/main.go index e0d99fcc3b9..8ecd647cab5 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Get/main.go index bfbaf827c59..79871e02102 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Insert/main.go index 41e7e89e60f..e9fcfa1a6c1 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/List/main.go index 9405f36a5fa..8f4c32910a6 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/SetUrlMap/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/SetUrlMap/main.go index 398cef7b999..573caa3349c 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/SetUrlMap/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpProxiesClient/SetUrlMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Delete/main.go index 06a5b19ab75..9622cc67c46 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Get/main.go index 09699633e29..207a07e6b16 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Insert/main.go index a7db9c5d223..359fe381203 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/List/main.go index f7408f55b64..908ba5871c9 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Patch/main.go index b49b06edc14..d5b2af7aa4a 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetSslCertificates/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetSslCertificates/main.go index 2a4f4c098f9..9f79c0d8b90 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetSslCertificates/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetSslCertificates/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetUrlMap/main.go b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetUrlMap/main.go index afea40990fa..357f3b25caf 100644 --- a/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetUrlMap/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionTargetHttpsProxiesClient/SetUrlMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Delete/main.go index c21bef019d6..6da01fede6f 100644 --- a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Get/main.go index d0dfa5632a8..84527cd9726 100644 --- a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Insert/main.go index 2ad7a519e07..57d7597987b 100644 --- a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/List/main.go index 2009f85795e..fb0117ad828 100644 --- a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Patch/main.go index 0a88e8dc93a..530dfe485fb 100644 --- a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Update/main.go index 3771e811e54..f726aeb4375 100644 --- a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Validate/main.go b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Validate/main.go index fd0c58b1e15..83d0b99f5f4 100644 --- a/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Validate/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionUrlMapsClient/Validate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RegionsClient/Get/main.go index c34972ed851..41536b63803 100644 --- a/internal/generated/snippets/compute/apiv1/RegionsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RegionsClient/List/main.go b/internal/generated/snippets/compute/apiv1/RegionsClient/List/main.go index 94fab7986a9..72510fe180e 100644 --- a/internal/generated/snippets/compute/apiv1/RegionsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RegionsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRegionsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/AggregatedList/main.go index 33181c58c8e..a3b05f6968f 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Delete/main.go index eb5e74555b6..19bc4192939 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Get/main.go index 0c8ed73ab13..ce50fec0570 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/GetIamPolicy/main.go index 41f495c4a9e..9e5c3053d8c 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Insert/main.go index b60be3a9e04..3f06489d39d 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/List/main.go index 7252217fd52..98c74838282 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Resize/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Resize/main.go index dd017695c11..4a7c60e95ac 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/Resize/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Resize/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/SetIamPolicy/main.go index ec229c98b12..9e02bfabcf3 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/TestIamPermissions/main.go index 793a7ead098..b3877d9214b 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ReservationsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/ReservationsClient/Update/main.go index 21c36de5ca5..2017e0aee4b 100644 --- a/internal/generated/snippets/compute/apiv1/ReservationsClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/ReservationsClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewReservationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/AggregatedList/main.go index 1238b685271..a1a7044b007 100644 --- a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Delete/main.go index 4164ac15713..6da1394b4f2 100644 --- a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Get/main.go index 7f8cce9f701..82ff8983029 100644 --- a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/GetIamPolicy/main.go index 0dca406ad33..65d4ff57de0 100644 --- a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Insert/main.go index 92f1b7bf76f..9fa384e02d1 100644 --- a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/List/main.go index a2563cbdd7d..a525145f70c 100644 --- a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/SetIamPolicy/main.go index 287af878a28..f412cb73117 100644 --- a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/TestIamPermissions/main.go index bb0f6e4ab76..2810bb62201 100644 --- a/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/ResourcePoliciesClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewResourcePoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/AggregatedList/main.go index 0fbd682d673..ff8f9db23ef 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Delete/main.go index cf89eceb0df..b0465eb4452 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Get/main.go index ab724e9fa5e..397edcf524b 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/GetNatMappingInfo/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/GetNatMappingInfo/main.go index 5018ddb7ca6..666d91c42a5 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/GetNatMappingInfo/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/GetNatMappingInfo/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/GetRouterStatus/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/GetRouterStatus/main.go index bf730a28174..2b4a253f72b 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/GetRouterStatus/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/GetRouterStatus/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Insert/main.go index c37d71ad275..6cd43c7f0e2 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/List/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/List/main.go index 4c21c3d93c7..e109d81407c 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Patch/main.go index 92d73991efa..a71d9e8c211 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Preview/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Preview/main.go index 40b920516f4..34a43a4133a 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/Preview/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Preview/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutersClient/Update/main.go b/internal/generated/snippets/compute/apiv1/RoutersClient/Update/main.go index 64dfc841007..768dee8839a 100644 --- a/internal/generated/snippets/compute/apiv1/RoutersClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutersClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutersRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/RoutesClient/Delete/main.go index 73a38fd1232..14f1789cdfb 100644 --- a/internal/generated/snippets/compute/apiv1/RoutesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/RoutesClient/Get/main.go index eec33c82c13..86e6d26ce8c 100644 --- a/internal/generated/snippets/compute/apiv1/RoutesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/RoutesClient/Insert/main.go index 2c8e48460c7..c37f79a3515 100644 --- a/internal/generated/snippets/compute/apiv1/RoutesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/RoutesClient/List/main.go b/internal/generated/snippets/compute/apiv1/RoutesClient/List/main.go index d307f2de54a..ec977058a0a 100644 --- a/internal/generated/snippets/compute/apiv1/RoutesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/RoutesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewRoutesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AddRule/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AddRule/main.go index f1a69a7f753..8e1af4bdcbd 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AddRule/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AddRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AggregatedList/main.go index 5565164b379..5fcc6d2ed38 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Delete/main.go index fb5d3d3fcb9..54ca36cfd2b 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Get/main.go index e6351deccce..4d86946c748 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/GetRule/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/GetRule/main.go index 5204a72d356..a706de7c68c 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/GetRule/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/GetRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Insert/main.go index 593d2b74136..f846988227d 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/List/main.go index 4714b0911b3..5d5de7c28f6 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go index d19be66052e..eb3f6e74b22 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/ListPreconfiguredExpressionSets/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Patch/main.go index 74c5217cc4f..536ce9143ca 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/PatchRule/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/PatchRule/main.go index c598dcdd0f7..c4c679fe3f7 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/PatchRule/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/PatchRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/RemoveRule/main.go b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/RemoveRule/main.go index 019986e9af1..e3485caba30 100644 --- a/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/RemoveRule/main.go +++ b/internal/generated/snippets/compute/apiv1/SecurityPoliciesClient/RemoveRule/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSecurityPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/AggregatedList/main.go index d70ae5e2209..79fd26b0c52 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Delete/main.go index 581e655abec..ced33e316ea 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Get/main.go index d66ed55b20f..5a5aadc9037 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/GetIamPolicy/main.go index 1e32ee3acf3..773fbd5ce9c 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Insert/main.go index c7883bf5e63..6ac74e2ab56 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/List/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/List/main.go index 5d68439f689..88d5aebcb09 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Patch/main.go index 71dd5338dcf..1144c0a7ba4 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/SetIamPolicy/main.go index e60a99fefc6..677512686e3 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/TestIamPermissions/main.go index fd7275f05fc..0d0c0017bda 100644 --- a/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/ServiceAttachmentsClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewServiceAttachmentsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Delete/main.go index 16a0e3aef44..69d77b5651d 100644 --- a/internal/generated/snippets/compute/apiv1/SnapshotsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Get/main.go index 86f0af93234..96583807a02 100644 --- a/internal/generated/snippets/compute/apiv1/SnapshotsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/GetIamPolicy/main.go index 3470a0fbb75..8a7822caea3 100644 --- a/internal/generated/snippets/compute/apiv1/SnapshotsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Insert/main.go index bdc04a65df6..27d6d2d14f5 100644 --- a/internal/generated/snippets/compute/apiv1/SnapshotsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/List/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/List/main.go index 3432e5dca5b..2bf59b54630 100644 --- a/internal/generated/snippets/compute/apiv1/SnapshotsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetIamPolicy/main.go index ed0e9758a48..519534d3624 100644 --- a/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetLabels/main.go index 627e15b1ab1..ebefdbf2e3e 100644 --- a/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SnapshotsClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/SnapshotsClient/TestIamPermissions/main.go index 619ed57fc42..38855704598 100644 --- a/internal/generated/snippets/compute/apiv1/SnapshotsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/SnapshotsClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSnapshotsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/AggregatedList/main.go index 69de119fd29..a08b169a8d1 100644 --- a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Delete/main.go index 432041eb4f7..5441a1395a3 100644 --- a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Get/main.go index 666279e5f2c..2184854047f 100644 --- a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Insert/main.go index 1aaec80fc65..e6aae997402 100644 --- a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/List/main.go b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/List/main.go index 9b2bdf487b5..3ee53f5780c 100644 --- a/internal/generated/snippets/compute/apiv1/SslCertificatesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/SslCertificatesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslCertificatesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Delete/main.go index defec74926d..3383d93b543 100644 --- a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Get/main.go index 3fc17448a57..553bf087713 100644 --- a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Insert/main.go index f5dcf403493..f1167d58ceb 100644 --- a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/List/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/List/main.go index 775eb287a23..e2071ad2c9e 100644 --- a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/ListAvailableFeatures/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/ListAvailableFeatures/main.go index cafa64dfe60..15716001a58 100644 --- a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/ListAvailableFeatures/main.go +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/ListAvailableFeatures/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Patch/main.go index 27cb01c121b..83cb5481773 100644 --- a/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/SslPoliciesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSslPoliciesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/AggregatedList/main.go index 86bbdbb6b2e..9eec43da0dd 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Delete/main.go index c881c45ffbf..0489595ff32 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/ExpandIpCidrRange/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/ExpandIpCidrRange/main.go index 8632aaf73fa..9a8c652d576 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/ExpandIpCidrRange/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/ExpandIpCidrRange/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Get/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Get/main.go index 5ab8597741f..9c3ca7dc46b 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/GetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/GetIamPolicy/main.go index e2bbd7378c2..156acdd7480 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Insert/main.go index f04e5342774..af7f3263b8c 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/List/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/List/main.go index 32f28dc05cf..c4f86697966 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/ListUsable/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/ListUsable/main.go index 310b8a6153c..5e01eec36f6 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/ListUsable/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/ListUsable/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Patch/main.go index 9dd59bc0f3a..7c4583ba645 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetIamPolicy/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetIamPolicy/main.go index e81d965bc4d..23fef2f327a 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetPrivateIpGoogleAccess/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetPrivateIpGoogleAccess/main.go index ecc4872dae1..4b576867e56 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetPrivateIpGoogleAccess/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/SetPrivateIpGoogleAccess/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/SubnetworksClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/SubnetworksClient/TestIamPermissions/main.go index 537213bea87..d54bb7d4f81 100644 --- a/internal/generated/snippets/compute/apiv1/SubnetworksClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/SubnetworksClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewSubnetworksRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Delete/main.go index 881c38dcf3a..4f68703fcc3 100644 --- a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Get/main.go index 3e56250d1a1..9f2be16a0e3 100644 --- a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Insert/main.go index fed26a8782f..fdd075b22a6 100644 --- a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/List/main.go index 9cf6e5cd9dc..5fc3fd4700d 100644 --- a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Patch/main.go index ebc3e55756e..5ffe7146684 100644 --- a/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetGrpcProxiesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetGrpcProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/AggregatedList/main.go index e32212b9e47..96368cad0b0 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Delete/main.go index 42e0611af0b..57382408201 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Get/main.go index 6e52e21215d..b39bd06380b 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Insert/main.go index c1841b36579..5e973c33c35 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/List/main.go index ee80d643f73..6d30ed9d17f 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Patch/main.go index 297089a78d6..b6eff243d05 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/SetUrlMap/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/SetUrlMap/main.go index 7d6f9c52355..6cc6dd47f80 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/SetUrlMap/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpProxiesClient/SetUrlMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/AggregatedList/main.go index 5899de32801..4a6ef33ac45 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Delete/main.go index 1239a725dae..f6174ff09d5 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Get/main.go index 3a664e379b0..7faf5b7cf12 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Insert/main.go index 57fb890838d..2a2c69db5f0 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/List/main.go index 6da6680dd61..79e81ea457c 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Patch/main.go index 0eb1184e87e..d0661da0a0a 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetCertificateMap/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetCertificateMap/main.go index 376f7872fa4..03b2fbb0494 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetCertificateMap/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetCertificateMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetQuicOverride/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetQuicOverride/main.go index f509ded327a..31c6e1ba17a 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetQuicOverride/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetQuicOverride/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslCertificates/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslCertificates/main.go index 514366f4f76..e14657073e9 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslCertificates/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslCertificates/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslPolicy/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslPolicy/main.go index 14ca4ad2804..da192fd47aa 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetSslPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetUrlMap/main.go b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetUrlMap/main.go index 792f344fd2c..36ebec1efc2 100644 --- a/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetUrlMap/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetHttpsProxiesClient/SetUrlMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetHttpsProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/AggregatedList/main.go index be4aecb54ed..3751dd87593 100644 --- a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Delete/main.go index 5e712aa2905..9f126245486 100644 --- a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Get/main.go index 02d4203f53b..b6224a40838 100644 --- a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Insert/main.go index ccd4c4ac9c9..5f3c5b4f380 100644 --- a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/List/main.go index 17e598a9619..047b940a4b1 100644 --- a/internal/generated/snippets/compute/apiv1/TargetInstancesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetInstancesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetInstancesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddHealthCheck/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddHealthCheck/main.go index a0c6a8f67d0..dbefb831d45 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddHealthCheck/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddHealthCheck/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddInstance/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddInstance/main.go index 912af3166a6..e89f59ccfad 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddInstance/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AddInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AggregatedList/main.go index dd561a8494c..5f81b04b8b8 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Delete/main.go index 8707a1b22b8..aeb677ee97f 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Get/main.go index 74234746fc9..dc7c8bb943c 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/GetHealth/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/GetHealth/main.go index 0d3e0265107..0303ead2503 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/GetHealth/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/GetHealth/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Insert/main.go index 4a35a19a54f..5f9ea1ddc5b 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/List/main.go index 681a7dd79a4..a510bf58076 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveHealthCheck/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveHealthCheck/main.go index b0b373b24cc..d174f59c4e5 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveHealthCheck/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveHealthCheck/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveInstance/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveInstance/main.go index 56958cb38dd..9305d1db2bd 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveInstance/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/RemoveInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/SetBackup/main.go b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/SetBackup/main.go index ccd183fc665..9c3467ef358 100644 --- a/internal/generated/snippets/compute/apiv1/TargetPoolsClient/SetBackup/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetPoolsClient/SetBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetPoolsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Delete/main.go index 9ec81e9c5eb..fde84c4736d 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Get/main.go index 0a0422d1e95..3c98c1400b7 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Insert/main.go index bbf902cba65..14d49c14e33 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/List/main.go index e6afafe8cdb..ab96210f8ba 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetBackendService/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetBackendService/main.go index cbd29ed31f4..ced6f9e24ed 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetBackendService/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetBackendService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetCertificateMap/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetCertificateMap/main.go index d41b47025dc..d8872da988a 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetCertificateMap/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetCertificateMap/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetProxyHeader/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetProxyHeader/main.go index 7c0f7b43fae..17a4c9785f1 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetProxyHeader/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetProxyHeader/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslCertificates/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslCertificates/main.go index 32c340773db..70c15f3193f 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslCertificates/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslCertificates/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslPolicy/main.go b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslPolicy/main.go index b2c0884291b..44783dc050f 100644 --- a/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslPolicy/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetSslProxiesClient/SetSslPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetSslProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Delete/main.go index 345f409c620..25b07e38a74 100644 --- a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Get/main.go index f5647a94ec8..ae5a6bcfcad 100644 --- a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Insert/main.go index 0179bc28e72..fbb5f0f87bb 100644 --- a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/List/main.go index 02257d940a2..c0033e0c489 100644 --- a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetBackendService/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetBackendService/main.go index 34ab78db729..3de4ad15b56 100644 --- a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetBackendService/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetBackendService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetProxyHeader/main.go b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetProxyHeader/main.go index 6b22bd39bf7..87a79808197 100644 --- a/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetProxyHeader/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetTcpProxiesClient/SetProxyHeader/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetTcpProxiesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/AggregatedList/main.go index fbf983b6819..d9cca9e209d 100644 --- a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Delete/main.go index 5f96af329b1..53fc904ae5c 100644 --- a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Get/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Get/main.go index ff977290a74..852b048d65f 100644 --- a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Insert/main.go index b046bb48c9f..4bc43143ea3 100644 --- a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/List/main.go b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/List/main.go index 85dba849d2b..ddc1fe7a288 100644 --- a/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/TargetVpnGatewaysClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewTargetVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/AggregatedList/main.go index 216a4856807..44e643b7bc6 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Delete/main.go index 54def2902ec..093e959f45c 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Get/main.go index ccc57a7c967..98fc93eb0d7 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Insert/main.go index 9df32671f4b..57149f07719 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/InvalidateCache/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/InvalidateCache/main.go index 226f93f74da..6fca7f3e0a3 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/InvalidateCache/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/InvalidateCache/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/List/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/List/main.go index d2666e0279e..17deaecc191 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Patch/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Patch/main.go index 84b94dccbf3..d3306cfec3a 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Patch/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Patch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Update/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Update/main.go index 2fe7d9b4518..4fcd9500f62 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Update/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Update/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Validate/main.go b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Validate/main.go index c71cf910270..26033c947c6 100644 --- a/internal/generated/snippets/compute/apiv1/UrlMapsClient/Validate/main.go +++ b/internal/generated/snippets/compute/apiv1/UrlMapsClient/Validate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewUrlMapsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/AggregatedList/main.go index 22847526a74..eb068c78828 100644 --- a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Delete/main.go index 2f66b86f2aa..ab3b3d62078 100644 --- a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Get/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Get/main.go index e0464aa65f8..a7a1eab2698 100644 --- a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/GetStatus/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/GetStatus/main.go index 5e5db1189e7..b01a5121efa 100644 --- a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/GetStatus/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/GetStatus/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Insert/main.go index 01e78c81fd3..5e35a47ae9d 100644 --- a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/List/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/List/main.go index 561280cd0b7..d87dbdd7148 100644 --- a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/SetLabels/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/SetLabels/main.go index 1228318ffcb..17062063aa3 100644 --- a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/SetLabels/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/TestIamPermissions/main.go b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/TestIamPermissions/main.go index 7a2f649a4bb..5295b02dbd0 100644 --- a/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnGatewaysClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnGatewaysRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/AggregatedList/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/AggregatedList/main.go index 225cee13d8f..ffc487712ea 100644 --- a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/AggregatedList/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/AggregatedList/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Delete/main.go index e8c20c662bd..b911bb2342e 100644 --- a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Get/main.go index bd7c1a589e1..fdcea168205 100644 --- a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Insert/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Insert/main.go index 48bb6257528..35f78ea01a1 100644 --- a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Insert/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/Insert/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/List/main.go b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/List/main.go index 73ea0698aa7..7c9a01e2b39 100644 --- a/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/VpnTunnelsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewVpnTunnelsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Delete/main.go b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Delete/main.go index d10af9c34bd..a244c46e3de 100644 --- a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Delete/main.go +++ b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Delete/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Get/main.go index e647f73ef10..db99206474a 100644 --- a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/List/main.go b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/List/main.go index 1558922eb1e..6a9662a040b 100644 --- a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Wait/main.go b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Wait/main.go index e0863a295b5..c596b4c8db9 100644 --- a/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Wait/main.go +++ b/internal/generated/snippets/compute/apiv1/ZoneOperationsClient/Wait/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZoneOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ZonesClient/Get/main.go b/internal/generated/snippets/compute/apiv1/ZonesClient/Get/main.go index b2b048d52ce..47c9482dbe5 100644 --- a/internal/generated/snippets/compute/apiv1/ZonesClient/Get/main.go +++ b/internal/generated/snippets/compute/apiv1/ZonesClient/Get/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZonesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/ZonesClient/List/main.go b/internal/generated/snippets/compute/apiv1/ZonesClient/List/main.go index aee32da899d..b187de12579 100644 --- a/internal/generated/snippets/compute/apiv1/ZonesClient/List/main.go +++ b/internal/generated/snippets/compute/apiv1/ZonesClient/List/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := compute.NewZonesRESTClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json b/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json index 5f1774c4b82..06a70e28cbc 100644 --- a/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json +++ b/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1018,7 +1018,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1064,7 +1064,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1110,7 +1110,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1156,7 +1156,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1202,7 +1202,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1248,7 +1248,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1294,7 +1294,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1340,7 +1340,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1386,7 +1386,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1432,7 +1432,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1478,7 +1478,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1524,7 +1524,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1570,7 +1570,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1616,7 +1616,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1662,7 +1662,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1708,7 +1708,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1754,7 +1754,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1800,7 +1800,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1846,7 +1846,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1892,7 +1892,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1938,7 +1938,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1984,7 +1984,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2030,7 +2030,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2076,7 +2076,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2122,7 +2122,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2168,7 +2168,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2214,7 +2214,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2260,7 +2260,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2306,7 +2306,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2352,7 +2352,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2398,7 +2398,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2444,7 +2444,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2490,7 +2490,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2536,7 +2536,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2582,7 +2582,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2628,7 +2628,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2674,7 +2674,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2720,7 +2720,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2766,7 +2766,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2812,7 +2812,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2858,7 +2858,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2904,7 +2904,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2950,7 +2950,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2996,7 +2996,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3042,7 +3042,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3088,7 +3088,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3134,7 +3134,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3180,7 +3180,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3226,7 +3226,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3272,7 +3272,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3318,7 +3318,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3364,7 +3364,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3410,7 +3410,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3456,7 +3456,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3502,7 +3502,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3548,7 +3548,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3594,7 +3594,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3640,7 +3640,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3686,7 +3686,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3732,7 +3732,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3778,7 +3778,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3824,7 +3824,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3870,7 +3870,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3916,7 +3916,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3962,7 +3962,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4008,7 +4008,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4054,7 +4054,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4100,7 +4100,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4146,7 +4146,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4192,7 +4192,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4238,7 +4238,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4284,7 +4284,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4330,7 +4330,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4376,7 +4376,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4422,7 +4422,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4468,7 +4468,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4514,7 +4514,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4560,7 +4560,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4606,7 +4606,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4652,7 +4652,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4698,7 +4698,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4744,7 +4744,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4790,7 +4790,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4836,7 +4836,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4882,7 +4882,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4928,7 +4928,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4974,7 +4974,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5020,7 +5020,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5066,7 +5066,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5112,7 +5112,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5158,7 +5158,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5204,7 +5204,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5250,7 +5250,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5296,7 +5296,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5342,7 +5342,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5388,7 +5388,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5434,7 +5434,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5480,7 +5480,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5526,7 +5526,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5572,7 +5572,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5618,7 +5618,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5664,7 +5664,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5710,7 +5710,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5756,7 +5756,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5802,7 +5802,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5848,7 +5848,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5894,7 +5894,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5940,7 +5940,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5986,7 +5986,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6032,7 +6032,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6078,7 +6078,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6124,7 +6124,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6170,7 +6170,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6216,7 +6216,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6262,7 +6262,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6308,7 +6308,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6354,7 +6354,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6400,7 +6400,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6446,7 +6446,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6492,7 +6492,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6538,7 +6538,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6584,7 +6584,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6630,7 +6630,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6676,7 +6676,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6722,7 +6722,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6768,7 +6768,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6814,7 +6814,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6860,7 +6860,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -6906,7 +6906,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6952,7 +6952,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6998,7 +6998,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7044,7 +7044,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7090,7 +7090,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7136,7 +7136,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7182,7 +7182,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7228,7 +7228,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7274,7 +7274,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7320,7 +7320,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7366,7 +7366,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7412,7 +7412,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7458,7 +7458,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7504,7 +7504,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7550,7 +7550,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7596,7 +7596,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7642,7 +7642,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7688,7 +7688,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7734,7 +7734,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7780,7 +7780,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7826,7 +7826,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7872,7 +7872,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7918,7 +7918,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7964,7 +7964,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8010,7 +8010,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8056,7 +8056,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8102,7 +8102,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8148,7 +8148,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8194,7 +8194,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8240,7 +8240,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8286,7 +8286,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8332,7 +8332,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8378,7 +8378,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8424,7 +8424,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8470,7 +8470,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8516,7 +8516,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8562,7 +8562,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8608,7 +8608,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8654,7 +8654,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8700,7 +8700,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8746,7 +8746,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8792,7 +8792,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8838,7 +8838,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -8884,7 +8884,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8930,7 +8930,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8976,7 +8976,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9022,7 +9022,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9068,7 +9068,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9114,7 +9114,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9160,7 +9160,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9206,7 +9206,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9252,7 +9252,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9298,7 +9298,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9344,7 +9344,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9390,7 +9390,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9436,7 +9436,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9482,7 +9482,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9528,7 +9528,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9574,7 +9574,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9620,7 +9620,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9666,7 +9666,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9712,7 +9712,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9758,7 +9758,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9804,7 +9804,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9850,7 +9850,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9896,7 +9896,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -9942,7 +9942,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -9988,7 +9988,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10034,7 +10034,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10080,7 +10080,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10126,7 +10126,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10172,7 +10172,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10218,7 +10218,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10264,7 +10264,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10310,7 +10310,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10356,7 +10356,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10402,7 +10402,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10448,7 +10448,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10494,7 +10494,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10540,7 +10540,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10586,7 +10586,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10632,7 +10632,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10678,7 +10678,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10724,7 +10724,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10770,7 +10770,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -10816,7 +10816,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -10862,7 +10862,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10908,7 +10908,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -10954,7 +10954,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11000,7 +11000,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11046,7 +11046,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11092,7 +11092,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11138,7 +11138,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11184,7 +11184,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11230,7 +11230,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11276,7 +11276,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11322,7 +11322,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11368,7 +11368,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11414,7 +11414,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11460,7 +11460,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11506,7 +11506,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11552,7 +11552,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11598,7 +11598,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11644,7 +11644,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11690,7 +11690,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11736,7 +11736,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -11782,7 +11782,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11828,7 +11828,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -11874,7 +11874,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11920,7 +11920,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -11966,7 +11966,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12012,7 +12012,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12058,7 +12058,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12104,7 +12104,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12150,7 +12150,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12196,7 +12196,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12242,7 +12242,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12288,7 +12288,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12334,7 +12334,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12380,7 +12380,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12426,7 +12426,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12472,7 +12472,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12518,7 +12518,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12564,7 +12564,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12610,7 +12610,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12656,7 +12656,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12702,7 +12702,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -12748,7 +12748,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12794,7 +12794,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -12840,7 +12840,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12886,7 +12886,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12932,7 +12932,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -12978,7 +12978,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13024,7 +13024,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13070,7 +13070,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13116,7 +13116,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13162,7 +13162,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13208,7 +13208,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13254,7 +13254,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13300,7 +13300,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13346,7 +13346,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13392,7 +13392,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13438,7 +13438,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13484,7 +13484,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13530,7 +13530,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13576,7 +13576,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13622,7 +13622,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13668,7 +13668,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13714,7 +13714,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13760,7 +13760,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13806,7 +13806,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13852,7 +13852,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -13898,7 +13898,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -13944,7 +13944,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -13990,7 +13990,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14036,7 +14036,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14082,7 +14082,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14128,7 +14128,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14174,7 +14174,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14220,7 +14220,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14266,7 +14266,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14312,7 +14312,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14358,7 +14358,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14404,7 +14404,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14450,7 +14450,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14496,7 +14496,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14542,7 +14542,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14588,7 +14588,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14634,7 +14634,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14680,7 +14680,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14726,7 +14726,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14772,7 +14772,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14818,7 +14818,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -14864,7 +14864,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -14910,7 +14910,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -14956,7 +14956,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15002,7 +15002,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15048,7 +15048,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15094,7 +15094,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15140,7 +15140,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15186,7 +15186,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15232,7 +15232,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15278,7 +15278,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15324,7 +15324,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -15370,7 +15370,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -15416,7 +15416,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15462,7 +15462,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15508,7 +15508,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15554,7 +15554,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15600,7 +15600,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15646,7 +15646,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15692,7 +15692,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -15738,7 +15738,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15784,7 +15784,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -15830,7 +15830,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15876,7 +15876,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -15922,7 +15922,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -15968,7 +15968,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16014,7 +16014,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16060,7 +16060,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16106,7 +16106,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16152,7 +16152,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16198,7 +16198,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16244,7 +16244,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16290,7 +16290,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16336,7 +16336,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16382,7 +16382,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16428,7 +16428,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16474,7 +16474,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16520,7 +16520,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16566,7 +16566,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16612,7 +16612,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16658,7 +16658,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16704,7 +16704,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16750,7 +16750,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16796,7 +16796,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -16842,7 +16842,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16888,7 +16888,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -16934,7 +16934,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -16980,7 +16980,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -17026,7 +17026,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -17072,7 +17072,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17118,7 +17118,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17164,7 +17164,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17210,7 +17210,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -17256,7 +17256,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -17302,7 +17302,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17348,7 +17348,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -17394,7 +17394,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17440,7 +17440,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17486,7 +17486,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -17532,7 +17532,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17578,7 +17578,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -17624,7 +17624,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17670,7 +17670,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -17716,7 +17716,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17762,7 +17762,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -17808,7 +17808,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17854,7 +17854,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17900,7 +17900,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -17946,7 +17946,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -17992,7 +17992,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -18038,7 +18038,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18084,7 +18084,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18130,7 +18130,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18176,7 +18176,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18222,7 +18222,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18268,7 +18268,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18314,7 +18314,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18360,7 +18360,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18406,7 +18406,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -18452,7 +18452,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18498,7 +18498,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -18544,7 +18544,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -18590,7 +18590,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -18636,7 +18636,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -18682,7 +18682,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18728,7 +18728,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18774,7 +18774,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18820,7 +18820,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18866,7 +18866,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18912,7 +18912,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -18958,7 +18958,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19004,7 +19004,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -19050,7 +19050,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -19096,7 +19096,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -19142,7 +19142,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19188,7 +19188,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19234,7 +19234,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19280,7 +19280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -19326,7 +19326,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19372,7 +19372,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -19418,7 +19418,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19464,7 +19464,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19510,7 +19510,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19556,7 +19556,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19602,7 +19602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -19648,7 +19648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -19694,7 +19694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -19740,7 +19740,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -19786,7 +19786,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -19832,7 +19832,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19878,7 +19878,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -19924,7 +19924,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -19970,7 +19970,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20016,7 +20016,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20062,7 +20062,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20108,7 +20108,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -20154,7 +20154,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -20200,7 +20200,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20246,7 +20246,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -20292,7 +20292,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20338,7 +20338,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -20384,7 +20384,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -20430,7 +20430,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -20476,7 +20476,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -20522,7 +20522,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -20568,7 +20568,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20614,7 +20614,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -20660,7 +20660,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20706,7 +20706,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -20752,7 +20752,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20798,7 +20798,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20844,7 +20844,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -20890,7 +20890,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -20936,7 +20936,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -20982,7 +20982,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21028,7 +21028,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -21074,7 +21074,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21120,7 +21120,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -21166,7 +21166,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21212,7 +21212,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21258,7 +21258,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -21304,7 +21304,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21350,7 +21350,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -21396,7 +21396,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21442,7 +21442,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21488,7 +21488,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21534,7 +21534,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21580,7 +21580,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -21626,7 +21626,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21672,7 +21672,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -21718,7 +21718,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21764,7 +21764,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -21810,7 +21810,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -21856,7 +21856,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -21902,7 +21902,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -21948,7 +21948,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -21994,7 +21994,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -22040,7 +22040,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22086,7 +22086,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22132,7 +22132,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -22178,7 +22178,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -22224,7 +22224,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -22270,7 +22270,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22316,7 +22316,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22362,7 +22362,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -22408,7 +22408,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -22454,7 +22454,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -22500,7 +22500,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22546,7 +22546,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22592,7 +22592,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -22638,7 +22638,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -22684,7 +22684,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22730,7 +22730,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22776,7 +22776,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -22822,7 +22822,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -22868,7 +22868,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -22914,7 +22914,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -22960,7 +22960,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -23006,7 +23006,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23052,7 +23052,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -23098,7 +23098,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23144,7 +23144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -23190,7 +23190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23236,7 +23236,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23282,7 +23282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -23328,7 +23328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23374,7 +23374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -23420,7 +23420,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23466,7 +23466,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -23512,7 +23512,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23558,7 +23558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -23604,7 +23604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -23650,7 +23650,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23696,7 +23696,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -23742,7 +23742,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -23788,7 +23788,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23834,7 +23834,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23880,7 +23880,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -23926,7 +23926,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -23972,7 +23972,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24018,7 +24018,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24064,7 +24064,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24110,7 +24110,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24156,7 +24156,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -24202,7 +24202,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24248,7 +24248,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24294,7 +24294,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24340,7 +24340,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24386,7 +24386,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24432,7 +24432,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24478,7 +24478,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24524,7 +24524,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -24570,7 +24570,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24616,7 +24616,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24662,7 +24662,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24708,7 +24708,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -24754,7 +24754,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24800,7 +24800,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -24846,7 +24846,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24892,7 +24892,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -24938,7 +24938,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -24984,7 +24984,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -25030,7 +25030,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25076,7 +25076,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -25122,7 +25122,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -25168,7 +25168,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25214,7 +25214,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -25260,7 +25260,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25306,7 +25306,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25352,7 +25352,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -25398,7 +25398,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -25444,7 +25444,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25490,7 +25490,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -25536,7 +25536,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -25582,7 +25582,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25628,7 +25628,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -25674,7 +25674,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25720,7 +25720,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -25766,7 +25766,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25812,7 +25812,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -25858,7 +25858,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25904,7 +25904,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -25950,7 +25950,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -25996,7 +25996,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -26042,7 +26042,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26088,7 +26088,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -26134,7 +26134,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26180,7 +26180,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -26226,7 +26226,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26272,7 +26272,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26318,7 +26318,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -26364,7 +26364,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26410,7 +26410,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -26456,7 +26456,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26502,7 +26502,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -26548,7 +26548,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26594,7 +26594,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26640,7 +26640,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26686,7 +26686,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26732,7 +26732,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26778,7 +26778,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26824,7 +26824,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -26870,7 +26870,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -26916,7 +26916,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -26962,7 +26962,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27008,7 +27008,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -27054,7 +27054,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27100,7 +27100,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27146,7 +27146,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -27192,7 +27192,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27238,7 +27238,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -27284,7 +27284,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -27330,7 +27330,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27376,7 +27376,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -27422,7 +27422,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27468,7 +27468,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27514,7 +27514,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27560,7 +27560,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27606,7 +27606,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -27652,7 +27652,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27698,7 +27698,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -27744,7 +27744,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27790,7 +27790,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27836,7 +27836,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27882,7 +27882,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27928,7 +27928,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -27974,7 +27974,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28020,7 +28020,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -28066,7 +28066,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28112,7 +28112,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -28158,7 +28158,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28204,7 +28204,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28250,7 +28250,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -28296,7 +28296,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28342,7 +28342,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -28388,7 +28388,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28434,7 +28434,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -28480,7 +28480,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -28526,7 +28526,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28572,7 +28572,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -28618,7 +28618,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28664,7 +28664,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28710,7 +28710,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -28756,7 +28756,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28802,7 +28802,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28848,7 +28848,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -28894,7 +28894,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -28940,7 +28940,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -28986,7 +28986,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -29032,7 +29032,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -29078,7 +29078,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -29124,7 +29124,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -29170,7 +29170,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -29216,7 +29216,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -29262,7 +29262,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -29308,7 +29308,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -29354,7 +29354,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -29400,7 +29400,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -29446,7 +29446,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -29492,7 +29492,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -29538,7 +29538,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -29584,7 +29584,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -29630,7 +29630,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -29676,7 +29676,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -29722,7 +29722,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CalculateIssueModelStats/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CalculateIssueModelStats/main.go index 3e66eae841f..d5a613dbc8a 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CalculateIssueModelStats/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CalculateIssueModelStats/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CalculateStats/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CalculateStats/main.go index 63e89983d6b..83f87cd9f4b 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CalculateStats/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CalculateStats/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CancelOperation/main.go index 98a7cd8d888..b77f45ac4f9 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateAnalysis/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateAnalysis/main.go index 2e2888f4c0b..5a6bd77a6aa 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateAnalysis/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateAnalysis/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateConversation/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateConversation/main.go index 2891f5b420a..8fc199f6880 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateConversation/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateIssueModel/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateIssueModel/main.go index 18e51d70cd9..12233fe1b27 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateIssueModel/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateIssueModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreatePhraseMatcher/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreatePhraseMatcher/main.go index 413cb1c65a0..d29317dbe0c 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreatePhraseMatcher/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreatePhraseMatcher/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateView/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateView/main.go index 3105911e900..7dd1996ddcf 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateView/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/CreateView/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteAnalysis/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteAnalysis/main.go index 9ad75f9a2b8..5a8e7f630e0 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteAnalysis/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteAnalysis/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteConversation/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteConversation/main.go index 6125ad159e6..d4256bd8770 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteConversation/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteIssueModel/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteIssueModel/main.go index ac23f191542..7082cc11b66 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteIssueModel/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteIssueModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeletePhraseMatcher/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeletePhraseMatcher/main.go index 8ce0e9b8802..dc2db03366a 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeletePhraseMatcher/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeletePhraseMatcher/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteView/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteView/main.go index 43b3c98210a..ca99d6ca80b 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteView/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeleteView/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeployIssueModel/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeployIssueModel/main.go index e950fbae23a..5b49d266919 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeployIssueModel/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/DeployIssueModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ExportInsightsData/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ExportInsightsData/main.go index 15ecbaf5024..149adf741bf 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ExportInsightsData/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ExportInsightsData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetAnalysis/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetAnalysis/main.go index d9a55bce041..119fb3bd979 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetAnalysis/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetAnalysis/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetConversation/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetConversation/main.go index 7c3edb1dbef..52d1f268ca8 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetConversation/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetIssue/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetIssue/main.go index 33233954a95..a58d69de74e 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetIssue/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetIssue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetIssueModel/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetIssueModel/main.go index 20475a1032b..e46712ce6a6 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetIssueModel/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetIssueModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetOperation/main.go index a57755e3c7c..7f3e2e496ec 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetPhraseMatcher/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetPhraseMatcher/main.go index 6433f582250..451bbf66e9b 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetPhraseMatcher/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetPhraseMatcher/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetSettings/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetSettings/main.go index dbfc05fed90..d237d9631a0 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetSettings/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetView/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetView/main.go index c20ba20333e..7c49321842a 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetView/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/GetView/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListAnalyses/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListAnalyses/main.go index 110eeb2c825..d2551fe695f 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListAnalyses/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListAnalyses/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListConversations/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListConversations/main.go index ebb76bb561e..64f6227d24d 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListConversations/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListConversations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListIssueModels/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListIssueModels/main.go index 6ee66ad3361..ee82b6fe9af 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListIssueModels/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListIssueModels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListIssues/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListIssues/main.go index 19eb5135bcb..143adb5d4d4 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListIssues/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListIssues/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListOperations/main.go index a40900f064e..0fc03efeee0 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListPhraseMatchers/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListPhraseMatchers/main.go index 7450c953376..09374aed22a 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListPhraseMatchers/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListPhraseMatchers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListViews/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListViews/main.go index 1295c3c0dc5..8051af0d721 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListViews/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/ListViews/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UndeployIssueModel/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UndeployIssueModel/main.go index ccb3b93de58..3079f92d39f 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UndeployIssueModel/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UndeployIssueModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateConversation/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateConversation/main.go index 1dafee7c3e8..5ee09478944 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateConversation/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateIssue/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateIssue/main.go index 89028b6fcaf..5600bc21e0d 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateIssue/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateIssue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateIssueModel/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateIssueModel/main.go index b0b78c67c1b..66f560b68f8 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateIssueModel/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateIssueModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdatePhraseMatcher/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdatePhraseMatcher/main.go index 34ed69ec30b..c7a5bf98859 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdatePhraseMatcher/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdatePhraseMatcher/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateSettings/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateSettings/main.go index eb5bec48912..8d629987d6f 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateSettings/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateView/main.go b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateView/main.go index ad8a85cae2a..ab237e72d67 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateView/main.go +++ b/internal/generated/snippets/contactcenterinsights/apiv1/Client/UpdateView/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/contactcenterinsights/apiv1/snippet_metadata.google.cloud.contactcenterinsights.v1.json b/internal/generated/snippets/contactcenterinsights/apiv1/snippet_metadata.google.cloud.contactcenterinsights.v1.json index 163bf9118e6..6dd93c07fc0 100644 --- a/internal/generated/snippets/contactcenterinsights/apiv1/snippet_metadata.google.cloud.contactcenterinsights.v1.json +++ b/internal/generated/snippets/contactcenterinsights/apiv1/snippet_metadata.google.cloud.contactcenterinsights.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -463,7 +463,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -509,7 +509,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -554,7 +554,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -599,7 +599,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -645,7 +645,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -691,7 +691,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -737,7 +737,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -783,7 +783,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -829,7 +829,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -875,7 +875,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -921,7 +921,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -967,7 +967,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1013,7 +1013,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1059,7 +1059,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1105,7 +1105,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1151,7 +1151,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1197,7 +1197,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1243,7 +1243,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1289,7 +1289,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1335,7 +1335,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1381,7 +1381,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1427,7 +1427,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1473,7 +1473,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1519,7 +1519,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1565,7 +1565,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1611,7 +1611,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1657,7 +1657,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1703,7 +1703,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CancelOperation/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CancelOperation/main.go index 8d3d1b8e425..4e8562582b9 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CancelOperation/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteIPRotation/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteIPRotation/main.go index ae1224c4c91..0488c0ab082 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteIPRotation/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteIPRotation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteNodePoolUpgrade/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteNodePoolUpgrade/main.go index af39b6939ea..f1a019f0a2d 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteNodePoolUpgrade/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CompleteNodePoolUpgrade/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateCluster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateCluster/main.go index 684028a8d1e..8675c56677a 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateCluster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateNodePool/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateNodePool/main.go index 34f0977fc2a..d3803f69f9c 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateNodePool/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/CreateNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteCluster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteCluster/main.go index a1a1027cd35..d5255cf8aec 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteCluster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteNodePool/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteNodePool/main.go index 1b9424ed633..eb9c8d4cb41 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteNodePool/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/DeleteNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetCluster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetCluster/main.go index b7d98735d99..0168da71fc5 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetCluster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetJSONWebKeys/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetJSONWebKeys/main.go index beb667da805..13d8c8a2fce 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetJSONWebKeys/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetJSONWebKeys/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetNodePool/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetNodePool/main.go index d100d75e622..f55fe79d21d 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetNodePool/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetOperation/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetOperation/main.go index 3815df67ac6..a88a999b857 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetOperation/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetServerConfig/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetServerConfig/main.go index 558ae0bb94c..d7b11cb8ed7 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetServerConfig/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/GetServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListClusters/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListClusters/main.go index 1ec755b3b46..a76b90b25b4 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListClusters/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListClusters/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListNodePools/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListNodePools/main.go index 173dbf62372..bf25e19d0b0 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListNodePools/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListNodePools/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListOperations/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListOperations/main.go index 4a8f97dfa77..e979921f87c 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListOperations/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListOperations/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListUsableSubnetworks/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListUsableSubnetworks/main.go index 9c5cd708495..734c01cdf75 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListUsableSubnetworks/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/ListUsableSubnetworks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/RollbackNodePoolUpgrade/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/RollbackNodePoolUpgrade/main.go index cd4ff9e9190..3865df24692 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/RollbackNodePoolUpgrade/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/RollbackNodePoolUpgrade/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetAddonsConfig/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetAddonsConfig/main.go index e468b4850a2..afcbf20f942 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetAddonsConfig/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetAddonsConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLabels/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLabels/main.go index fd0e5a0cd20..bdcba99de37 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLabels/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLabels/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLegacyAbac/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLegacyAbac/main.go index 8542481d8ea..35a82e3ecb0 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLegacyAbac/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLegacyAbac/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLocations/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLocations/main.go index f6002c3fb79..b1542fab8d1 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLocations/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLocations/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLoggingService/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLoggingService/main.go index 13218a53918..e865e35f3ec 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLoggingService/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetLoggingService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMaintenancePolicy/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMaintenancePolicy/main.go index 11c740621d7..5c37ed8d611 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMaintenancePolicy/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMaintenancePolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMasterAuth/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMasterAuth/main.go index f10eb30c836..98cb6de9603 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMasterAuth/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMasterAuth/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMonitoringService/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMonitoringService/main.go index 1922d263d70..aa816f5a2b3 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMonitoringService/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetMonitoringService/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNetworkPolicy/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNetworkPolicy/main.go index 2084791206a..ff0f5d61096 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNetworkPolicy/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNetworkPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolAutoscaling/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolAutoscaling/main.go index c1e969f2de3..48dfc9b8270 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolAutoscaling/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolAutoscaling/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolManagement/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolManagement/main.go index 598b4062744..a317a1f96c0 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolManagement/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolManagement/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolSize/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolSize/main.go index 011fd995ab9..66e02cfe4fd 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolSize/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/SetNodePoolSize/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/StartIPRotation/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/StartIPRotation/main.go index 9abddf04aae..566415d9b29 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/StartIPRotation/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/StartIPRotation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateCluster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateCluster/main.go index 27a3d4a8bef..4dfef2a2222 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateCluster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateMaster/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateMaster/main.go index 2ee1450e306..c2565be8575 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateMaster/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateMaster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateNodePool/main.go b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateNodePool/main.go index 326cde3e94f..4b7a1b17e54 100644 --- a/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateNodePool/main.go +++ b/internal/generated/snippets/container/apiv1/ClusterManagerClient/UpdateNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := container.NewClusterManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/container/apiv1/snippet_metadata.google.container.v1.json b/internal/generated/snippets/container/apiv1/snippet_metadata.google.container.v1.json index 5372db8883a..9bf5c9c1665 100644 --- a/internal/generated/snippets/container/apiv1/snippet_metadata.google.container.v1.json +++ b/internal/generated/snippets/container/apiv1/snippet_metadata.google.container.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -142,7 +142,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -832,7 +832,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -878,7 +878,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -924,7 +924,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -970,7 +970,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1016,7 +1016,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1062,7 +1062,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1108,7 +1108,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1154,7 +1154,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1200,7 +1200,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1246,7 +1246,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1292,7 +1292,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1338,7 +1338,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1384,7 +1384,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1430,7 +1430,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1476,7 +1476,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1522,7 +1522,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateNotes/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateNotes/main.go index 1507dd12e18..963c53d5dc3 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateNotes/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateNotes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateOccurrences/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateOccurrences/main.go index cb352bfe98a..872c0e05ded 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateOccurrences/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/BatchCreateOccurrences/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateNote/main.go index 7d738c5b4d9..4d084f966e4 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateNote/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateOccurrence/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateOccurrence/main.go index b2f0eecd7a3..40072597a0f 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateOccurrence/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/CreateOccurrence/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteNote/main.go index 29d6ddd38ab..196f5960a2f 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteNote/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteOccurrence/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteOccurrence/main.go index 0bb066e4314..b7429b98063 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteOccurrence/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/DeleteOccurrence/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetNote/main.go index 8e11b7a1cc3..714b0eab5c0 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetNote/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrence/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrence/main.go index d94873aa050..007a073dd1f 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrence/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrence/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrenceNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrenceNote/main.go index 5432215f669..f61a2ccdb7e 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrenceNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetOccurrenceNote/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go index 5abc4f9a4a9..1f52a63900e 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/GetVulnerabilityOccurrencesSummary/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNoteOccurrences/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNoteOccurrences/main.go index eddca2bb4ff..0e55a65e656 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNoteOccurrences/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNoteOccurrences/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNotes/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNotes/main.go index eb261debd9e..eabe6860d2f 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNotes/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListNotes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListOccurrences/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListOccurrences/main.go index 84d8fe7e044..c778d6b7564 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListOccurrences/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/ListOccurrences/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateNote/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateNote/main.go index d24012c7822..e933ff17359 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateNote/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateNote/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateOccurrence/main.go b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateOccurrence/main.go index c4ec5a49b3e..174adf7b7bc 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateOccurrence/main.go +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/GrafeasV1Beta1Client/UpdateOccurrence/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := containeranalysis.NewGrafeasV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/containeranalysis/apiv1beta1/snippet_metadata.grafeas.v1beta1.json b/internal/generated/snippets/containeranalysis/apiv1beta1/snippet_metadata.grafeas.v1beta1.json index be9e3ef9a87..cd450330da1 100644 --- a/internal/generated/snippets/containeranalysis/apiv1beta1/snippet_metadata.grafeas.v1beta1.json +++ b/internal/generated/snippets/containeranalysis/apiv1beta1/snippet_metadata.grafeas.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntry/main.go index 03d3f623d6c..13934330747 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntryGroup/main.go index 083605f0e07..2fc3cdae81d 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateEntryGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTag/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTag/main.go index fe7316740b6..767d8e6467a 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplate/main.go index 4606d4ea653..18b0af1e61a 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplateField/main.go index 71f872280b7..ecf2d830a00 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/CreateTagTemplateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntry/main.go index 5a3357a82d6..1fcad11fc28 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntryGroup/main.go index 446bba241ad..007d4fd1fb7 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteEntryGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTag/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTag/main.go index 669e7cbd874..4b7263f3425 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplate/main.go index bb386044920..ca9330425e0 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplateField/main.go index 1fd489b7a37..303a5ac1004 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/DeleteTagTemplateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/GetEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/GetEntry/main.go index b9063438597..46a755a6b00 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/GetEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/GetEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/GetEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/GetEntryGroup/main.go index ac767c9e523..f0cb5fc888a 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/GetEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/GetEntryGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/GetIamPolicy/main.go index b4374a388bd..8a118c8efd1 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/GetTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/GetTagTemplate/main.go index a05b01f4412..77a8214742d 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/GetTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/GetTagTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/ListEntries/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/ListEntries/main.go index 3ed1ac0b923..a865cd41c2b 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/ListEntries/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/ListEntries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/ListEntryGroups/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/ListEntryGroups/main.go index 0a666a626cb..dd56b03b612 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/ListEntryGroups/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/ListEntryGroups/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/ListTags/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/ListTags/main.go index 55be0cc6149..588d2f86640 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/ListTags/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/ListTags/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/LookupEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/LookupEntry/main.go index 2f3cea71471..afa1f74e14b 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/LookupEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/LookupEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/ModifyEntryContacts/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/ModifyEntryContacts/main.go index ed00deea2cb..893a68966e9 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/ModifyEntryContacts/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/ModifyEntryContacts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/ModifyEntryOverview/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/ModifyEntryOverview/main.go index b874de8bc9f..248500f0138 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/ModifyEntryOverview/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/ModifyEntryOverview/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateField/main.go index d6a70324f3b..7166ba9e55e 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateFieldEnumValue/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateFieldEnumValue/main.go index 7fdb8f750b7..59ca0ddd800 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateFieldEnumValue/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/RenameTagTemplateFieldEnumValue/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/SearchCatalog/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/SearchCatalog/main.go index a461c55859c..18d6ef75ce0 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/SearchCatalog/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/SearchCatalog/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/SetIamPolicy/main.go index 1776d1d5afd..407ba4c3cc5 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/StarEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/StarEntry/main.go index 508f53075d1..47d55427087 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/StarEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/StarEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/TestIamPermissions/main.go index 62cedceff55..b7a04cd9677 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UnstarEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UnstarEntry/main.go index d6f74ef5fb7..0a7a5265241 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UnstarEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UnstarEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntry/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntry/main.go index 61d7e3ac76f..198daa42b9a 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntryGroup/main.go index a0ccc05ca7f..2e809a23569 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateEntryGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTag/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTag/main.go index 1dd9555dfbf..35bb2c8cc8e 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplate/main.go index 910eea011f3..d146d298521 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplateField/main.go index fb18ab23257..e4a305d333c 100644 --- a/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/Client/UpdateTagTemplateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreatePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreatePolicyTag/main.go index 31e4687ab44..c8280b5762e 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreatePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreatePolicyTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreateTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreateTaxonomy/main.go index e0496ceac48..455c00b8f29 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreateTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/CreateTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeletePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeletePolicyTag/main.go index e9a272d6b4c..b735cd2cb27 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeletePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeletePolicyTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeleteTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeleteTaxonomy/main.go index 1bf214f362a..5678324e2fe 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeleteTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/DeleteTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetIamPolicy/main.go index e14711e061d..b22a675469b 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetPolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetPolicyTag/main.go index ca786729c05..6fef51402b5 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetPolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetPolicyTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetTaxonomy/main.go index b6a24bd4539..a5fb7cbe83b 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/GetTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListPolicyTags/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListPolicyTags/main.go index 1869c502894..5a8efc98181 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListPolicyTags/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListPolicyTags/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListTaxonomies/main.go index 65513dfd3b9..fb9f46e71fd 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/ListTaxonomies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/SetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/SetIamPolicy/main.go index 510cd795fc6..79c50114a45 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/TestIamPermissions/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/TestIamPermissions/main.go index ef5f207889f..2f713da075e 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdatePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdatePolicyTag/main.go index bb604bfca85..38485c1ffe5 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdatePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdatePolicyTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdateTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdateTaxonomy/main.go index 4f9837adea8..a01a896719b 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdateTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerClient/UpdateTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go index c8c1f8fc8e1..bd7f848c3e9 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go index bf4a140c72c..930d0fbd488 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ReplaceTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ReplaceTaxonomy/main.go index 5489d472f26..d8c5cb9d558 100644 --- a/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ReplaceTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1/PolicyTagManagerSerializationClient/ReplaceTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1/snippet_metadata.google.cloud.datacatalog.v1.json b/internal/generated/snippets/datacatalog/apiv1/snippet_metadata.google.cloud.datacatalog.v1.json index 365adbd9212..eeb203a9eac 100644 --- a/internal/generated/snippets/datacatalog/apiv1/snippet_metadata.google.cloud.datacatalog.v1.json +++ b/internal/generated/snippets/datacatalog/apiv1/snippet_metadata.google.cloud.datacatalog.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -371,7 +371,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -416,7 +416,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -461,7 +461,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -507,7 +507,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -553,7 +553,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -599,7 +599,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -645,7 +645,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -691,7 +691,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -737,7 +737,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -783,7 +783,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -829,7 +829,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -875,7 +875,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -921,7 +921,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -967,7 +967,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1013,7 +1013,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1059,7 +1059,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1105,7 +1105,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1151,7 +1151,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1197,7 +1197,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1243,7 +1243,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1289,7 +1289,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1335,7 +1335,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1381,7 +1381,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1427,7 +1427,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1473,7 +1473,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1519,7 +1519,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1565,7 +1565,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1610,7 +1610,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1655,7 +1655,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1701,7 +1701,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1747,7 +1747,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1793,7 +1793,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1839,7 +1839,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1885,7 +1885,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1931,7 +1931,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1977,7 +1977,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2023,7 +2023,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2069,7 +2069,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2115,7 +2115,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2161,7 +2161,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2207,7 +2207,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntry/main.go index 0867c8c2c77..46fa0d3412b 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntryGroup/main.go index 347866c3c3a..b6b033c40fc 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateEntryGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTag/main.go index 12562415048..edfba3375f9 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplate/main.go index c05345c4637..1ef8bc14e2e 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplateField/main.go index be0ed3cac9b..5c550b243a8 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/CreateTagTemplateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntry/main.go index 2926767f15d..21d40d7bcf9 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntryGroup/main.go index 0a1206cfe5b..5c0c51bfaab 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteEntryGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTag/main.go index e2ef782520c..4ee0a7e6de7 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplate/main.go index f2c6744edd4..8e5b4b95262 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplateField/main.go index ab843ddb740..1b3398ab025 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/DeleteTagTemplateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntry/main.go index 8621af771cf..df42b3511b3 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntryGroup/main.go index b4d527c4da6..d1288673336 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetEntryGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetIamPolicy/main.go index 7d9bf310ef4..1332313b739 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetTagTemplate/main.go index 7bed140ea01..94be8d374ba 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/GetTagTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntries/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntries/main.go index be608dda47b..4ef7338cc34 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntries/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntries/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntryGroups/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntryGroups/main.go index 00a1d4d80f2..535bb2335cb 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntryGroups/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListEntryGroups/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListTags/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListTags/main.go index a749889ccfc..b2e29840fcd 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListTags/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/ListTags/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/LookupEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/LookupEntry/main.go index 2690b634708..13a71b4dfc6 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/LookupEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/LookupEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/RenameTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/RenameTagTemplateField/main.go index 462c0119df7..094102af0c1 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/RenameTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/RenameTagTemplateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/SearchCatalog/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/SearchCatalog/main.go index 43d13121399..4a9091937b2 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/SearchCatalog/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/SearchCatalog/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/SetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/SetIamPolicy/main.go index b5bde2e0196..034883ea738 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/TestIamPermissions/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/TestIamPermissions/main.go index bc87608865c..23a856d66ca 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntry/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntry/main.go index e3ff2f2b447..2ec51e662ba 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntry/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntry/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntryGroup/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntryGroup/main.go index 7605d7850ae..f0a25656296 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntryGroup/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateEntryGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTag/main.go index acad90fbd33..b463c6a095f 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplate/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplate/main.go index efada3bff6b..43d6c7360ff 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplate/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplateField/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplateField/main.go index f20b8c0a226..e0b4fdc79b5 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplateField/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/Client/UpdateTagTemplateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreatePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreatePolicyTag/main.go index abdaf1490f6..ce45b392c44 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreatePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreatePolicyTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreateTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreateTaxonomy/main.go index 35eb4ab1da1..0557a6b707a 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreateTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/CreateTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeletePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeletePolicyTag/main.go index ccc0df1c2b7..a6d1082532d 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeletePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeletePolicyTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeleteTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeleteTaxonomy/main.go index 385a48eabf3..dddcec3b87d 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeleteTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/DeleteTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetIamPolicy/main.go index 3197d0903f6..bc038c1b607 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetPolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetPolicyTag/main.go index 0a9e4cd76a9..0d992d2098b 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetPolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetPolicyTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetTaxonomy/main.go index 42c0c7339a2..face6e6b604 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/GetTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListPolicyTags/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListPolicyTags/main.go index 08b8a0aa02e..1d56e4ce800 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListPolicyTags/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListPolicyTags/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListTaxonomies/main.go index 93f835a02a7..923f15f00d5 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/ListTaxonomies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/SetIamPolicy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/SetIamPolicy/main.go index f66671027da..43e56b8551a 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/TestIamPermissions/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/TestIamPermissions/main.go index de29017fa2d..130fc17e0bc 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdatePolicyTag/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdatePolicyTag/main.go index 6fa3dc7a454..b44cf480fff 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdatePolicyTag/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdatePolicyTag/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdateTaxonomy/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdateTaxonomy/main.go index 751a96b9d3b..36ffe18f4c4 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdateTaxonomy/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerClient/UpdateTaxonomy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go index 0a7c06de1c3..fdc5a149047 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ExportTaxonomies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go index 2cb16e931e9..5d0a1eae38a 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go +++ b/internal/generated/snippets/datacatalog/apiv1beta1/PolicyTagManagerSerializationClient/ImportTaxonomies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datacatalog.NewPolicyTagManagerSerializationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datacatalog/apiv1beta1/snippet_metadata.google.cloud.datacatalog.v1beta1.json b/internal/generated/snippets/datacatalog/apiv1beta1/snippet_metadata.google.cloud.datacatalog.v1beta1.json index 5bf935c9a4f..58d0c177a9f 100644 --- a/internal/generated/snippets/datacatalog/apiv1beta1/snippet_metadata.google.cloud.datacatalog.v1beta1.json +++ b/internal/generated/snippets/datacatalog/apiv1beta1/snippet_metadata.google.cloud.datacatalog.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -371,7 +371,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -416,7 +416,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -461,7 +461,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -507,7 +507,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -553,7 +553,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -599,7 +599,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -645,7 +645,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -691,7 +691,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -737,7 +737,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -783,7 +783,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -829,7 +829,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -875,7 +875,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -921,7 +921,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -967,7 +967,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1013,7 +1013,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1059,7 +1059,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1105,7 +1105,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1151,7 +1151,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1197,7 +1197,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1243,7 +1243,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1289,7 +1289,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1335,7 +1335,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1380,7 +1380,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1425,7 +1425,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1471,7 +1471,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1517,7 +1517,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1563,7 +1563,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1609,7 +1609,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1655,7 +1655,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1701,7 +1701,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1747,7 +1747,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1793,7 +1793,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1839,7 +1839,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1885,7 +1885,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1931,7 +1931,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dataflow/apiv1beta3/FlexTemplatesClient/LaunchFlexTemplate/main.go b/internal/generated/snippets/dataflow/apiv1beta3/FlexTemplatesClient/LaunchFlexTemplate/main.go index 8cec2b2b50a..feb95ce3c01 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/FlexTemplatesClient/LaunchFlexTemplate/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/FlexTemplatesClient/LaunchFlexTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewFlexTemplatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/AggregatedListJobs/main.go b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/AggregatedListJobs/main.go index f72a5d9f58e..76ee8a86b26 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/AggregatedListJobs/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/AggregatedListJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/CheckActiveJobs/main.go b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/CheckActiveJobs/main.go index 159be2f2927..cd29bf36408 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/CheckActiveJobs/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/CheckActiveJobs/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/CreateJob/main.go b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/CreateJob/main.go index 90d99ad93af..63f1fc3e61e 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/CreateJob/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/CreateJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/GetJob/main.go b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/GetJob/main.go index 04ec8e95903..cf58e24609f 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/GetJob/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/GetJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/ListJobs/main.go b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/ListJobs/main.go index 28d00e1ed62..e33b5d1a96e 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/ListJobs/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/ListJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/SnapshotJob/main.go b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/SnapshotJob/main.go index 2e8c9e22a24..9f62e68cabf 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/SnapshotJob/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/SnapshotJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/UpdateJob/main.go b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/UpdateJob/main.go index afa2e7ca2e1..7323fc18901 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/UpdateJob/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/JobsV1Beta3Client/UpdateJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewJobsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/MessagesV1Beta3Client/ListJobMessages/main.go b/internal/generated/snippets/dataflow/apiv1beta3/MessagesV1Beta3Client/ListJobMessages/main.go index f6ce3bf09be..fcd083ac322 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/MessagesV1Beta3Client/ListJobMessages/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/MessagesV1Beta3Client/ListJobMessages/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMessagesV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetJobExecutionDetails/main.go b/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetJobExecutionDetails/main.go index 4651558f471..0162707ef81 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetJobExecutionDetails/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetJobExecutionDetails/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMetricsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetJobMetrics/main.go b/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetJobMetrics/main.go index 05e7c07f24a..727119ae37e 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetJobMetrics/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetJobMetrics/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMetricsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetStageExecutionDetails/main.go b/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetStageExecutionDetails/main.go index 042df9a6f8d..a2c929a6ab3 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetStageExecutionDetails/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/MetricsV1Beta3Client/GetStageExecutionDetails/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewMetricsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/DeleteSnapshot/main.go b/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/DeleteSnapshot/main.go index 8af16caa248..a41dcd340db 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/DeleteSnapshot/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/DeleteSnapshot/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/GetSnapshot/main.go b/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/GetSnapshot/main.go index 9df69140b0f..663bc42bbe6 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/GetSnapshot/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/GetSnapshot/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/ListSnapshots/main.go b/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/ListSnapshots/main.go index d3812dcdfd0..1624e6a28bb 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/ListSnapshots/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/SnapshotsV1Beta3Client/ListSnapshots/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewSnapshotsV1Beta3Client(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/CreateJobFromTemplate/main.go b/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/CreateJobFromTemplate/main.go index 21647c8273a..a2ab80697e0 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/CreateJobFromTemplate/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/CreateJobFromTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewTemplatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/GetTemplate/main.go b/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/GetTemplate/main.go index 73f0e556333..f6b0f922925 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/GetTemplate/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/GetTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewTemplatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/LaunchTemplate/main.go b/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/LaunchTemplate/main.go index 168aaf67a58..05e22cd1194 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/LaunchTemplate/main.go +++ b/internal/generated/snippets/dataflow/apiv1beta3/TemplatesClient/LaunchTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataflow.NewTemplatesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataflow/apiv1beta3/snippet_metadata.google.dataflow.v1beta3.json b/internal/generated/snippets/dataflow/apiv1beta3/snippet_metadata.google.dataflow.v1beta3.json index d7a3cdd2218..9e83b002287 100644 --- a/internal/generated/snippets/dataflow/apiv1beta3/snippet_metadata.google.dataflow.v1beta3.json +++ b/internal/generated/snippets/dataflow/apiv1beta3/snippet_metadata.google.dataflow.v1beta3.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/CancelWorkflowInvocation/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/CancelWorkflowInvocation/main.go index c7180fcb8a0..07b51f5be02 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/CancelWorkflowInvocation/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/CancelWorkflowInvocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/CommitWorkspaceChanges/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/CommitWorkspaceChanges/main.go index f302b59789b..3428564f7c4 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/CommitWorkspaceChanges/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/CommitWorkspaceChanges/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateCompilationResult/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateCompilationResult/main.go index ed2892a2551..e54f9062d68 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateCompilationResult/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateCompilationResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateRepository/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateRepository/main.go index 3dbe14be7f1..54fb0df7392 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateRepository/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateWorkflowInvocation/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateWorkflowInvocation/main.go index f693e2600b1..e6fdfdfb6d7 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateWorkflowInvocation/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateWorkflowInvocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateWorkspace/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateWorkspace/main.go index 70b970f8577..6de0f0f9f76 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateWorkspace/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/CreateWorkspace/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteRepository/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteRepository/main.go index 3e3776da147..e1a45996a7d 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteRepository/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteWorkflowInvocation/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteWorkflowInvocation/main.go index 01334e9c47c..f656ac098ad 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteWorkflowInvocation/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteWorkflowInvocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteWorkspace/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteWorkspace/main.go index 0014ad42630..b352a17dccc 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteWorkspace/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/DeleteWorkspace/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchFileDiff/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchFileDiff/main.go index f9ae8746255..294ab630737 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchFileDiff/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchFileDiff/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchFileGitStatuses/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchFileGitStatuses/main.go index ad9a4101a64..778f852d373 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchFileGitStatuses/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchFileGitStatuses/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchGitAheadBehind/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchGitAheadBehind/main.go index 8329cadc337..9c7bee57428 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchGitAheadBehind/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchGitAheadBehind/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchRemoteBranches/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchRemoteBranches/main.go index 50bfef52ebb..e06cb30643c 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchRemoteBranches/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/FetchRemoteBranches/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetCompilationResult/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetCompilationResult/main.go index 8627426eb28..076e258d64d 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetCompilationResult/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetCompilationResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetIamPolicy/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetIamPolicy/main.go index be8c66d4163..f360ee1d641 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetLocation/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetLocation/main.go index da08a7a0277..afaa53f09d0 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetLocation/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetRepository/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetRepository/main.go index 46bd2bbe37f..1161955d714 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetRepository/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetWorkflowInvocation/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetWorkflowInvocation/main.go index 373a12e49cc..6a3d4254918 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetWorkflowInvocation/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetWorkflowInvocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetWorkspace/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetWorkspace/main.go index 22bd3a2e1f7..f663303b388 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/GetWorkspace/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/GetWorkspace/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/InstallNpmPackages/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/InstallNpmPackages/main.go index c1bd7db71ac..788dd20263b 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/InstallNpmPackages/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/InstallNpmPackages/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListCompilationResults/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListCompilationResults/main.go index 7500daa3a84..49c12be6383 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListCompilationResults/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListCompilationResults/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListLocations/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListLocations/main.go index 81199557135..fd3f3352246 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListLocations/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListRepositories/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListRepositories/main.go index 86e1e26f160..9fa7abc0fa4 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListRepositories/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListRepositories/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListWorkflowInvocations/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListWorkflowInvocations/main.go index 38b62bcf6e4..5c3f4f4292d 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListWorkflowInvocations/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListWorkflowInvocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListWorkspaces/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListWorkspaces/main.go index 47df31d6a92..7d9af37c876 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/ListWorkspaces/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/ListWorkspaces/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/MakeDirectory/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/MakeDirectory/main.go index 0b1b5f3f647..e98e45b08f3 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/MakeDirectory/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/MakeDirectory/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/MoveDirectory/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/MoveDirectory/main.go index 23aac9282e0..be10caed2e6 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/MoveDirectory/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/MoveDirectory/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/MoveFile/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/MoveFile/main.go index 78dc0de1830..9dd05d8a1df 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/MoveFile/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/MoveFile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/PullGitCommits/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/PullGitCommits/main.go index 62748da8a21..5c554423234 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/PullGitCommits/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/PullGitCommits/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/PushGitCommits/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/PushGitCommits/main.go index 052cd567906..987dac69757 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/PushGitCommits/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/PushGitCommits/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryCompilationResultActions/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryCompilationResultActions/main.go index 0f0aea716a6..5105714cc7c 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryCompilationResultActions/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryCompilationResultActions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryDirectoryContents/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryDirectoryContents/main.go index 7797f804f44..4ca5873ea3c 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryDirectoryContents/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryDirectoryContents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryWorkflowInvocationActions/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryWorkflowInvocationActions/main.go index 47303228ae9..72761e74424 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryWorkflowInvocationActions/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/QueryWorkflowInvocationActions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/ReadFile/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/ReadFile/main.go index 864ac64ed9b..01e5d91f32e 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/ReadFile/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/ReadFile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/RemoveDirectory/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/RemoveDirectory/main.go index 507582d2da8..913d412aab2 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/RemoveDirectory/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/RemoveDirectory/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/RemoveFile/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/RemoveFile/main.go index e89708600fd..0a236815af6 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/RemoveFile/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/RemoveFile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/ResetWorkspaceChanges/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/ResetWorkspaceChanges/main.go index 2ac4f0b92b0..9fe46b14dec 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/ResetWorkspaceChanges/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/ResetWorkspaceChanges/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/SetIamPolicy/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/SetIamPolicy/main.go index 7049f1b3925..a2c10c3d854 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/TestIamPermissions/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/TestIamPermissions/main.go index 972fe7596eb..eb5751808f2 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/UpdateRepository/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/UpdateRepository/main.go index df293d783fa..da1b891752c 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/UpdateRepository/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/UpdateRepository/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/Client/WriteFile/main.go b/internal/generated/snippets/dataform/apiv1alpha2/Client/WriteFile/main.go index 293ea551e71..43b833993e3 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/Client/WriteFile/main.go +++ b/internal/generated/snippets/dataform/apiv1alpha2/Client/WriteFile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataform.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataform/apiv1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json b/internal/generated/snippets/dataform/apiv1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json index ef99258f3d6..dfaca5b0ba3 100644 --- a/internal/generated/snippets/dataform/apiv1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json +++ b/internal/generated/snippets/dataform/apiv1alpha2/snippet_metadata.google.cloud.dataform.v1alpha2.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -96,7 +96,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -142,7 +142,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -370,7 +370,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -415,7 +415,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -461,7 +461,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -507,7 +507,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -553,7 +553,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -599,7 +599,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -645,7 +645,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -691,7 +691,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -737,7 +737,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -783,7 +783,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -829,7 +829,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -875,7 +875,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -921,7 +921,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -967,7 +967,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1013,7 +1013,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1059,7 +1059,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1105,7 +1105,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1151,7 +1151,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1197,7 +1197,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1243,7 +1243,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1289,7 +1289,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1334,7 +1334,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1379,7 +1379,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1425,7 +1425,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1471,7 +1471,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1517,7 +1517,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1563,7 +1563,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1608,7 +1608,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1653,7 +1653,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1698,7 +1698,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1744,7 +1744,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1790,7 +1790,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1836,7 +1836,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1882,7 +1882,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/datafusion/apiv1/Client/CreateInstance/main.go b/internal/generated/snippets/datafusion/apiv1/Client/CreateInstance/main.go index 3c27bcee9b2..9afd4ec1be0 100644 --- a/internal/generated/snippets/datafusion/apiv1/Client/CreateInstance/main.go +++ b/internal/generated/snippets/datafusion/apiv1/Client/CreateInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datafusion/apiv1/Client/DeleteInstance/main.go b/internal/generated/snippets/datafusion/apiv1/Client/DeleteInstance/main.go index ba8ccc284ac..e8de8a59064 100644 --- a/internal/generated/snippets/datafusion/apiv1/Client/DeleteInstance/main.go +++ b/internal/generated/snippets/datafusion/apiv1/Client/DeleteInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datafusion/apiv1/Client/GetInstance/main.go b/internal/generated/snippets/datafusion/apiv1/Client/GetInstance/main.go index a860eb02b6c..83630a332e6 100644 --- a/internal/generated/snippets/datafusion/apiv1/Client/GetInstance/main.go +++ b/internal/generated/snippets/datafusion/apiv1/Client/GetInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datafusion/apiv1/Client/ListAvailableVersions/main.go b/internal/generated/snippets/datafusion/apiv1/Client/ListAvailableVersions/main.go index 7f1e4ba8396..1ae3ecf1894 100644 --- a/internal/generated/snippets/datafusion/apiv1/Client/ListAvailableVersions/main.go +++ b/internal/generated/snippets/datafusion/apiv1/Client/ListAvailableVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datafusion/apiv1/Client/ListInstances/main.go b/internal/generated/snippets/datafusion/apiv1/Client/ListInstances/main.go index 3c4b2365e65..08ea1fbc5e4 100644 --- a/internal/generated/snippets/datafusion/apiv1/Client/ListInstances/main.go +++ b/internal/generated/snippets/datafusion/apiv1/Client/ListInstances/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datafusion/apiv1/Client/RestartInstance/main.go b/internal/generated/snippets/datafusion/apiv1/Client/RestartInstance/main.go index 69794f5cd7a..d74a6f1ad6f 100644 --- a/internal/generated/snippets/datafusion/apiv1/Client/RestartInstance/main.go +++ b/internal/generated/snippets/datafusion/apiv1/Client/RestartInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datafusion/apiv1/Client/UpdateInstance/main.go b/internal/generated/snippets/datafusion/apiv1/Client/UpdateInstance/main.go index 4c6b21499e3..1636d506656 100644 --- a/internal/generated/snippets/datafusion/apiv1/Client/UpdateInstance/main.go +++ b/internal/generated/snippets/datafusion/apiv1/Client/UpdateInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datafusion.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datafusion/apiv1/snippet_metadata.google.cloud.datafusion.v1.json b/internal/generated/snippets/datafusion/apiv1/snippet_metadata.google.cloud.datafusion.v1.json index 8ee300fec58..d53c06bee86 100644 --- a/internal/generated/snippets/datafusion/apiv1/snippet_metadata.google.cloud.datafusion.v1.json +++ b/internal/generated/snippets/datafusion/apiv1/snippet_metadata.google.cloud.datafusion.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateAnnotationSpecSet/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateAnnotationSpecSet/main.go index 70e77394f6d..344c8af9434 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateAnnotationSpecSet/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateAnnotationSpecSet/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateDataset/main.go index 1862a1b6453..26b1f9bb35b 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateEvaluationJob/main.go index f00f9134cc6..5ab0e86ff12 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateEvaluationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateInstruction/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateInstruction/main.go index 8a51370cc75..704b78a38d2 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateInstruction/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/CreateInstruction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotatedDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotatedDataset/main.go index 5d1486b1c7f..43e621662f7 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotatedDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotatedDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotationSpecSet/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotationSpecSet/main.go index c04326d0210..e91716532e0 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotationSpecSet/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteAnnotationSpecSet/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteDataset/main.go index e994531fa32..9d7adb85eca 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteEvaluationJob/main.go index 30921b24fb1..1512a416c75 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteEvaluationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteInstruction/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteInstruction/main.go index 2635cab8640..5dfa4a5a5bc 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteInstruction/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/DeleteInstruction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ExportData/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ExportData/main.go index b49e8d8e818..840274dea89 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ExportData/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ExportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotatedDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotatedDataset/main.go index 1fba73a5757..5388b78316f 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotatedDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotatedDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotationSpecSet/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotationSpecSet/main.go index 992fa8ea725..ec763acfdcc 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotationSpecSet/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetAnnotationSpecSet/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataItem/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataItem/main.go index 68edc6269d3..fedf2f64f88 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataItem/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataItem/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataset/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataset/main.go index b7c8889af2e..4c91cdaa016 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataset/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluation/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluation/main.go index 9a4dd28a2d7..43a2dbdfa22 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluation/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluationJob/main.go index da45618fd7a..1bd3fa3c0dc 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetEvaluationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetExample/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetExample/main.go index e76fc17d30b..db4720ddd74 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetExample/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetExample/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetInstruction/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetInstruction/main.go index d4fb1951c69..7bb6328f555 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetInstruction/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/GetInstruction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ImportData/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ImportData/main.go index c20da7c1924..3ba634b7438 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ImportData/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ImportData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelImage/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelImage/main.go index b927526f4e5..8e5e4b946ab 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelImage/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelImage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelText/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelText/main.go index 3d681273c00..bd8418d240d 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelText/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelText/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelVideo/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelVideo/main.go index ad2dc53b884..0b87a95f4f7 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelVideo/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/LabelVideo/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotatedDatasets/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotatedDatasets/main.go index 6914f69edb9..4773befdd5d 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotatedDatasets/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotatedDatasets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotationSpecSets/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotationSpecSets/main.go index 1f5a35c3954..107b321d0d4 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotationSpecSets/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListAnnotationSpecSets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDataItems/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDataItems/main.go index 28b84b7fc57..18e160c6eab 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDataItems/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDataItems/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDatasets/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDatasets/main.go index 321825264ab..51e32f3371d 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDatasets/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListDatasets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListEvaluationJobs/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListEvaluationJobs/main.go index 5db3e0c3867..1d956b42fc5 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListEvaluationJobs/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListEvaluationJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListExamples/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListExamples/main.go index e2b13c58006..abf9c4478cb 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListExamples/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListExamples/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListInstructions/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListInstructions/main.go index ba1bd0f7483..3d0ec383caf 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListInstructions/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ListInstructions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/PauseEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/PauseEvaluationJob/main.go index 9f2fbcc8e0e..f8aeffc33d0 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/PauseEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/PauseEvaluationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ResumeEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ResumeEvaluationJob/main.go index 3b4ce5bcff1..2b8b90f515b 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/ResumeEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/ResumeEvaluationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchEvaluations/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchEvaluations/main.go index dc2b6c7c28d..858c2b4f9fc 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchEvaluations/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchEvaluations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchExampleComparisons/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchExampleComparisons/main.go index 3ea6f2cb246..cf8683096b5 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchExampleComparisons/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/SearchExampleComparisons/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/Client/UpdateEvaluationJob/main.go b/internal/generated/snippets/datalabeling/apiv1beta1/Client/UpdateEvaluationJob/main.go index 556783c95e7..b855a31928e 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/Client/UpdateEvaluationJob/main.go +++ b/internal/generated/snippets/datalabeling/apiv1beta1/Client/UpdateEvaluationJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datalabeling.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datalabeling/apiv1beta1/snippet_metadata.google.cloud.datalabeling.v1beta1.json b/internal/generated/snippets/datalabeling/apiv1beta1/snippet_metadata.google.cloud.datalabeling.v1beta1.json index c1f1894805b..d09d6ae9d53 100644 --- a/internal/generated/snippets/datalabeling/apiv1beta1/snippet_metadata.google.cloud.datalabeling.v1beta1.json +++ b/internal/generated/snippets/datalabeling/apiv1beta1/snippet_metadata.google.cloud.datalabeling.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -370,7 +370,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -415,7 +415,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -461,7 +461,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -507,7 +507,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -553,7 +553,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -599,7 +599,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -645,7 +645,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -691,7 +691,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -737,7 +737,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -783,7 +783,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -829,7 +829,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -875,7 +875,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -921,7 +921,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -967,7 +967,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1013,7 +1013,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1059,7 +1059,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1105,7 +1105,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1151,7 +1151,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1197,7 +1197,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1243,7 +1243,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1289,7 +1289,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1335,7 +1335,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1380,7 +1380,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1425,7 +1425,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1471,7 +1471,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1517,7 +1517,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1563,7 +1563,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dataplex/apiv1/Client/CancelJob/main.go b/internal/generated/snippets/dataplex/apiv1/Client/CancelJob/main.go index fabbbf1efa2..3a5d683b323 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/CancelJob/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/CancelJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/dataplex/apiv1/Client/CancelOperation/main.go index bcec233d486..c2af3c919f1 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/CreateAsset/main.go b/internal/generated/snippets/dataplex/apiv1/Client/CreateAsset/main.go index f560f083097..6451e9d2d8a 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/CreateAsset/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/CreateAsset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/CreateEnvironment/main.go b/internal/generated/snippets/dataplex/apiv1/Client/CreateEnvironment/main.go index 930022d8196..59e0ed581c8 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/CreateEnvironment/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/CreateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/CreateLake/main.go b/internal/generated/snippets/dataplex/apiv1/Client/CreateLake/main.go index 9bea158d637..ac890448f82 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/CreateLake/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/CreateLake/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/CreateTask/main.go b/internal/generated/snippets/dataplex/apiv1/Client/CreateTask/main.go index 8bad520d939..509532b09e6 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/CreateTask/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/CreateTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/CreateZone/main.go b/internal/generated/snippets/dataplex/apiv1/Client/CreateZone/main.go index f9c5a290cb5..5a7bd05c9a5 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/CreateZone/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/CreateZone/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/DeleteAsset/main.go b/internal/generated/snippets/dataplex/apiv1/Client/DeleteAsset/main.go index b62be1ceefc..6d2947080d5 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/DeleteAsset/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/DeleteAsset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/DeleteEnvironment/main.go b/internal/generated/snippets/dataplex/apiv1/Client/DeleteEnvironment/main.go index 453ecf40d76..d3cc44039af 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/DeleteEnvironment/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/DeleteEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/DeleteLake/main.go b/internal/generated/snippets/dataplex/apiv1/Client/DeleteLake/main.go index a27bf1f83dc..4460f44f2ed 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/DeleteLake/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/DeleteLake/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/dataplex/apiv1/Client/DeleteOperation/main.go index a5cdc76baca..1d59e76318c 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/DeleteTask/main.go b/internal/generated/snippets/dataplex/apiv1/Client/DeleteTask/main.go index b0a8e1848d8..413f9560e27 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/DeleteTask/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/DeleteTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/DeleteZone/main.go b/internal/generated/snippets/dataplex/apiv1/Client/DeleteZone/main.go index 7831038cec3..a73ed3baef7 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/DeleteZone/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/DeleteZone/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/GetAsset/main.go b/internal/generated/snippets/dataplex/apiv1/Client/GetAsset/main.go index 651c9b8c55a..c7b3c389095 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/GetAsset/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/GetAsset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/GetEnvironment/main.go b/internal/generated/snippets/dataplex/apiv1/Client/GetEnvironment/main.go index 778f160ed2a..e1401e9c09e 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/GetEnvironment/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/GetEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/GetJob/main.go b/internal/generated/snippets/dataplex/apiv1/Client/GetJob/main.go index c9c82d7cc1e..edfa4b56895 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/GetJob/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/GetJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/GetLake/main.go b/internal/generated/snippets/dataplex/apiv1/Client/GetLake/main.go index 32b8916086d..56a7ace731c 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/GetLake/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/GetLake/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/dataplex/apiv1/Client/GetLocation/main.go index 145a2dac5a1..7143e04ce9f 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/dataplex/apiv1/Client/GetOperation/main.go index 24dcb9bee6f..728561e9055 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/GetTask/main.go b/internal/generated/snippets/dataplex/apiv1/Client/GetTask/main.go index fb4f224a31b..9ad0b97678a 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/GetTask/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/GetTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/GetZone/main.go b/internal/generated/snippets/dataplex/apiv1/Client/GetZone/main.go index ae928e566ea..672424fef98 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/GetZone/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/GetZone/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListAssetActions/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListAssetActions/main.go index b5950e563aa..16305988662 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListAssetActions/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListAssetActions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListAssets/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListAssets/main.go index eeb33506a63..77459400c0e 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListAssets/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListAssets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListEnvironments/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListEnvironments/main.go index 202f746347b..dedcc5bc04a 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListEnvironments/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListEnvironments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListJobs/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListJobs/main.go index 54345e5deba..ba833c27f5e 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListJobs/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListLakeActions/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListLakeActions/main.go index 65097a9b27b..9ccfa5350c6 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListLakeActions/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListLakeActions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListLakes/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListLakes/main.go index c9762be0c52..417f881714a 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListLakes/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListLakes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListLocations/main.go index 2f8e31a52a6..c2eb3568896 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListOperations/main.go index 3249909bbf7..55e4f5b4f22 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListSessions/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListSessions/main.go index c5bc20d51b0..f7d172ce428 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListSessions/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListSessions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListTasks/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListTasks/main.go index eccd3113d8a..7b23973a1c5 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListTasks/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListTasks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListZoneActions/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListZoneActions/main.go index d6883936c8d..950e771b9eb 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListZoneActions/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListZoneActions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/ListZones/main.go b/internal/generated/snippets/dataplex/apiv1/Client/ListZones/main.go index ad94b3871f2..177f3fd62b5 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/ListZones/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/ListZones/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/UpdateAsset/main.go b/internal/generated/snippets/dataplex/apiv1/Client/UpdateAsset/main.go index 303f1f72b0f..9e7a900b986 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/UpdateAsset/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/UpdateAsset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/UpdateEnvironment/main.go b/internal/generated/snippets/dataplex/apiv1/Client/UpdateEnvironment/main.go index fb3a2fc2594..0a83dc27489 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/UpdateEnvironment/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/UpdateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/UpdateLake/main.go b/internal/generated/snippets/dataplex/apiv1/Client/UpdateLake/main.go index 12d75e8044e..f4fcd23e093 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/UpdateLake/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/UpdateLake/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/UpdateTask/main.go b/internal/generated/snippets/dataplex/apiv1/Client/UpdateTask/main.go index 4bae4821775..1b89c84b4a0 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/UpdateTask/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/UpdateTask/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/Client/UpdateZone/main.go b/internal/generated/snippets/dataplex/apiv1/Client/UpdateZone/main.go index f3c4a508ef8..ef0507d699e 100644 --- a/internal/generated/snippets/dataplex/apiv1/Client/UpdateZone/main.go +++ b/internal/generated/snippets/dataplex/apiv1/Client/UpdateZone/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/CancelOperation/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/CancelOperation/main.go index 133fa345fc2..a112060caf4 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/CancelOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/CreateContent/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/CreateContent/main.go index f2866c9dfae..e325c8362ea 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/CreateContent/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/CreateContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/DeleteContent/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/DeleteContent/main.go index fb703f15d6e..da45c605a08 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/DeleteContent/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/DeleteContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/DeleteOperation/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/DeleteOperation/main.go index 7d91a9e108f..a5f9388f9d6 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/DeleteOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/GetContent/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/GetContent/main.go index f9c41b74e9c..62643ed1c92 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/GetContent/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/GetContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/GetIamPolicy/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/GetIamPolicy/main.go index 18225cb0ca5..e83d0a7153b 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/GetLocation/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/GetLocation/main.go index d8c47cf7091..8b3dda67d1f 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/GetLocation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/GetOperation/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/GetOperation/main.go index 1ac3a7c81ed..e31d6159c3d 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/GetOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/ListContent/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/ListContent/main.go index e5c1a0073d4..35199de787b 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/ListContent/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/ListContent/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/ListLocations/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/ListLocations/main.go index 8630f32c386..c60ae6f8dc3 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/ListLocations/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/ListOperations/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/ListOperations/main.go index f736db465fa..df80b691803 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/ListOperations/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/SetIamPolicy/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/SetIamPolicy/main.go index 1e7b59e9775..38464a09c6b 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/TestIamPermissions/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/TestIamPermissions/main.go index 0c8e27997d6..a5c587acf8c 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/ContentClient/UpdateContent/main.go b/internal/generated/snippets/dataplex/apiv1/ContentClient/UpdateContent/main.go index 24d37895534..8ecdab45f02 100644 --- a/internal/generated/snippets/dataplex/apiv1/ContentClient/UpdateContent/main.go +++ b/internal/generated/snippets/dataplex/apiv1/ContentClient/UpdateContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewContentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/CancelOperation/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/CancelOperation/main.go index 8924570fe6c..9fe5fea642f 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/CancelOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/CreateEntity/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/CreateEntity/main.go index 263b1ce2bdf..261ec9e39b4 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/CreateEntity/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/CreateEntity/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/CreatePartition/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/CreatePartition/main.go index 921e1c68040..a9b28ed9df6 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/CreatePartition/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/CreatePartition/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeleteEntity/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeleteEntity/main.go index 814356924f6..a405368fc41 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeleteEntity/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeleteEntity/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeleteOperation/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeleteOperation/main.go index 05a4b8ce176..cf8b76c5c68 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeleteOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeletePartition/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeletePartition/main.go index e78e172954b..b346296cc11 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeletePartition/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/DeletePartition/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetEntity/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetEntity/main.go index 503537407ba..2af4a07a908 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetEntity/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetEntity/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetLocation/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetLocation/main.go index 3c0c66504cc..e1d80bb92f7 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetLocation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetOperation/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetOperation/main.go index 015b381127d..d69de1ccb3b 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetOperation/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetPartition/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetPartition/main.go index 6142ad197cd..476390097b0 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetPartition/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/GetPartition/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListEntities/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListEntities/main.go index b47da6be32b..d6dd1fb7e6a 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListEntities/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListEntities/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListLocations/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListLocations/main.go index a21420b7d4a..383b8fdcd42 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListLocations/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListOperations/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListOperations/main.go index 6ac1f235402..7d995b6f22a 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListOperations/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListPartitions/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListPartitions/main.go index ed79df4afb3..464576948f5 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListPartitions/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/ListPartitions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/MetadataClient/UpdateEntity/main.go b/internal/generated/snippets/dataplex/apiv1/MetadataClient/UpdateEntity/main.go index 16f72d66105..80199e0c783 100644 --- a/internal/generated/snippets/dataplex/apiv1/MetadataClient/UpdateEntity/main.go +++ b/internal/generated/snippets/dataplex/apiv1/MetadataClient/UpdateEntity/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataplex.NewMetadataClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataplex/apiv1/snippet_metadata.google.cloud.dataplex.v1.json b/internal/generated/snippets/dataplex/apiv1/snippet_metadata.google.cloud.dataplex.v1.json index c91f4ff23ae..41d40282e03 100644 --- a/internal/generated/snippets/dataplex/apiv1/snippet_metadata.google.cloud.dataplex.v1.json +++ b/internal/generated/snippets/dataplex/apiv1/snippet_metadata.google.cloud.dataplex.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -96,7 +96,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -142,7 +142,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -509,7 +509,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -555,7 +555,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -601,7 +601,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -647,7 +647,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -923,7 +923,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -969,7 +969,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1015,7 +1015,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1061,7 +1061,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1107,7 +1107,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1153,7 +1153,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1199,7 +1199,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1245,7 +1245,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1291,7 +1291,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1337,7 +1337,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1383,7 +1383,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1429,7 +1429,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1475,7 +1475,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1521,7 +1521,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1567,7 +1567,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1613,7 +1613,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1659,7 +1659,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1705,7 +1705,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1751,7 +1751,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1796,7 +1796,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1842,7 +1842,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1887,7 +1887,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1932,7 +1932,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1978,7 +1978,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2024,7 +2024,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2070,7 +2070,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2116,7 +2116,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2162,7 +2162,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2208,7 +2208,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2254,7 +2254,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2300,7 +2300,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2346,7 +2346,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2392,7 +2392,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2437,7 +2437,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2483,7 +2483,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2529,7 +2529,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2574,7 +2574,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2619,7 +2619,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2664,7 +2664,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2710,7 +2710,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2756,7 +2756,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2802,7 +2802,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2848,7 +2848,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2894,7 +2894,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2940,7 +2940,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2986,7 +2986,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3032,7 +3032,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3078,7 +3078,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go index c8ab4e88ab7..f6e128e2701 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/CreateAutoscalingPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go index 1492714797b..d64cbb170d6 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/DeleteAutoscalingPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go index 8d6dbf4c6ec..ff90aa5b56b 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/GetAutoscalingPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go index 05360e16ea3..e18c700814a 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/ListAutoscalingPolicies/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go index d8c8e04c296..44ab3cb7ef4 100644 --- a/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go +++ b/internal/generated/snippets/dataproc/apiv1/AutoscalingPolicyClient/UpdateAutoscalingPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewAutoscalingPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/CreateBatch/main.go b/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/CreateBatch/main.go index 8bbdd87e64f..c5db6cc6730 100644 --- a/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/CreateBatch/main.go +++ b/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/CreateBatch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/DeleteBatch/main.go b/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/DeleteBatch/main.go index e14e153e0d6..f47e280c067 100644 --- a/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/DeleteBatch/main.go +++ b/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/DeleteBatch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/GetBatch/main.go b/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/GetBatch/main.go index 65bbbac71a3..0ff814c8dea 100644 --- a/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/GetBatch/main.go +++ b/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/GetBatch/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/ListBatches/main.go b/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/ListBatches/main.go index 03d43f8c365..c38d45fd681 100644 --- a/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/ListBatches/main.go +++ b/internal/generated/snippets/dataproc/apiv1/BatchControllerClient/ListBatches/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewBatchControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/CreateCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/CreateCluster/main.go index 5d391649d6a..03a361a6bfd 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/CreateCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/CreateCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DeleteCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DeleteCluster/main.go index dc8009c5595..633ab7ae65e 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DeleteCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DeleteCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DiagnoseCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DiagnoseCluster/main.go index d813987835c..9d93e57315b 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DiagnoseCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/DiagnoseCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/GetCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/GetCluster/main.go index 3d50b8924bb..e4acaecd360 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/GetCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/GetCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/ListClusters/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/ListClusters/main.go index cfac9421ab5..b3e7ace5eeb 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/ListClusters/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/ListClusters/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StartCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StartCluster/main.go index b33e730e89e..5c2031addb5 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StartCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StartCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StopCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StopCluster/main.go index 70b6a0c4a0e..eb3ceca0d2f 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StopCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/StopCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/UpdateCluster/main.go b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/UpdateCluster/main.go index cbc78ff4cf7..0e05da89dc4 100644 --- a/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/UpdateCluster/main.go +++ b/internal/generated/snippets/dataproc/apiv1/ClusterControllerClient/UpdateCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewClusterControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/CancelJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/CancelJob/main.go index 6a6849b08b3..629bad38a05 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/CancelJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/CancelJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/DeleteJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/DeleteJob/main.go index 1671f2c04f2..5435e56449f 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/DeleteJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/DeleteJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/GetJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/GetJob/main.go index 0435186445e..0253a53ebe7 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/GetJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/GetJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/ListJobs/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/ListJobs/main.go index bf0e93eece9..4a57c07ca4e 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/ListJobs/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/ListJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJob/main.go index 70c0aeb7e4b..2d3201b781a 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJobAsOperation/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJobAsOperation/main.go index 973857e38eb..41e430f885f 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJobAsOperation/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/SubmitJobAsOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/UpdateJob/main.go b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/UpdateJob/main.go index 24db053bc6f..75f70e702c3 100644 --- a/internal/generated/snippets/dataproc/apiv1/JobControllerClient/UpdateJob/main.go +++ b/internal/generated/snippets/dataproc/apiv1/JobControllerClient/UpdateJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewJobControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/CreateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/CreateWorkflowTemplate/main.go index c1fac7572c6..f877c6d4a99 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/CreateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/CreateWorkflowTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go index 1137ed02802..869179816bc 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/DeleteWorkflowTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/GetWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/GetWorkflowTemplate/main.go index c54db1863ee..df7424a34f2 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/GetWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/GetWorkflowTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go index 8076806e054..25a9a00cf91 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateInlineWorkflowTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go index d97814ebd4b..247dcf7b245 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/InstantiateWorkflowTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/ListWorkflowTemplates/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/ListWorkflowTemplates/main.go index 15b81b8bb50..f0b3d94474d 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/ListWorkflowTemplates/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/ListWorkflowTemplates/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go index a8ff8ae443f..0ead2fcbf15 100644 --- a/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go +++ b/internal/generated/snippets/dataproc/apiv1/WorkflowTemplateClient/UpdateWorkflowTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataproc.NewWorkflowTemplateClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataproc/apiv1/snippet_metadata.google.cloud.dataproc.v1.json b/internal/generated/snippets/dataproc/apiv1/snippet_metadata.google.cloud.dataproc.v1.json index 1cb89d6c327..0b80e99d4c1 100644 --- a/internal/generated/snippets/dataproc/apiv1/snippet_metadata.google.cloud.dataproc.v1.json +++ b/internal/generated/snippets/dataproc/apiv1/snippet_metadata.google.cloud.dataproc.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -832,7 +832,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -923,7 +923,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -969,7 +969,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1015,7 +1015,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1061,7 +1061,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1107,7 +1107,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1153,7 +1153,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1198,7 +1198,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1244,7 +1244,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1290,7 +1290,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1336,7 +1336,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1382,7 +1382,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1428,7 +1428,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/SuggestQueries/main.go b/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/SuggestQueries/main.go index 0becf3bf12c..e7f13195097 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/SuggestQueries/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/AutoSuggestionClient/SuggestQueries/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewAutoSuggestionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/CreateQuestion/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/CreateQuestion/main.go index 8f77add8507..587e0c8bb14 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/CreateQuestion/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/CreateQuestion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/ExecuteQuestion/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/ExecuteQuestion/main.go index f305917832e..c347a9694cc 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/ExecuteQuestion/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/ExecuteQuestion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetQuestion/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetQuestion/main.go index 0e3df086958..fda6aa122e6 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetQuestion/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetQuestion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetUserFeedback/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetUserFeedback/main.go index 1941d01d769..70db9d45088 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetUserFeedback/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/GetUserFeedback/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/UpdateUserFeedback/main.go b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/UpdateUserFeedback/main.go index 37165d1823b..2fe8d8cfb73 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/UpdateUserFeedback/main.go +++ b/internal/generated/snippets/dataqna/apiv1alpha/QuestionClient/UpdateUserFeedback/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dataqna.NewQuestionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dataqna/apiv1alpha/snippet_metadata.google.cloud.dataqna.v1alpha.json b/internal/generated/snippets/dataqna/apiv1alpha/snippet_metadata.google.cloud.dataqna.v1alpha.json index 939f5d42c5b..c1f06dd94a3 100644 --- a/internal/generated/snippets/dataqna/apiv1alpha/snippet_metadata.google.cloud.dataqna.v1alpha.json +++ b/internal/generated/snippets/dataqna/apiv1alpha/snippet_metadata.google.cloud.dataqna.v1alpha.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CancelOperation/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CancelOperation/main.go index 59aec67de67..46edb4e4b6f 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CancelOperation/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 fe605aa0472..f4799ac5267 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CreateIndex/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/CreateIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 4b3347d1262..b0abc0000a9 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteIndex/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteOperation/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteOperation/main.go index edff7012cba..b95291f3ad4 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteOperation/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 0385569bae0..cc292a4123a 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ExportEntities/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ExportEntities/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 b4ea4a5179c..62e957750f9 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetIndex/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetOperation/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetOperation/main.go index 2014e702569..e7a42110018 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetOperation/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 139ecedd2c9..e322693355b 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ImportEntities/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ImportEntities/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 727e739b477..79606e14116 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListIndexes/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListIndexes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListOperations/main.go b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListOperations/main.go index 4f7caebbeef..f1b4d214ebf 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListOperations/main.go +++ b/internal/generated/snippets/datastore/admin/apiv1/DatastoreAdminClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewDatastoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastore/admin/apiv1/snippet_metadata.google.datastore.admin.v1.json b/internal/generated/snippets/datastore/admin/apiv1/snippet_metadata.google.datastore.admin.v1.json index 1fdd27787d7..892f6093189 100644 --- a/internal/generated/snippets/datastore/admin/apiv1/snippet_metadata.google.datastore.admin.v1.json +++ b/internal/generated/snippets/datastore/admin/apiv1/snippet_metadata.google.datastore.admin.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] diff --git a/internal/generated/snippets/datastream/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/datastream/apiv1/Client/CancelOperation/main.go index 4de81f4db38..5d97ea3606d 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/CreateConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1/Client/CreateConnectionProfile/main.go index 0e753f56d5f..e8ffebe16f2 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/CreateConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/CreateConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/CreatePrivateConnection/main.go b/internal/generated/snippets/datastream/apiv1/Client/CreatePrivateConnection/main.go index 07e1e3d4dde..a5ccee92f54 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/CreatePrivateConnection/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/CreatePrivateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/CreateRoute/main.go b/internal/generated/snippets/datastream/apiv1/Client/CreateRoute/main.go index d2f4d033e38..9608ffbaf9a 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/CreateRoute/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/CreateRoute/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/CreateStream/main.go b/internal/generated/snippets/datastream/apiv1/Client/CreateStream/main.go index a393de9e380..9a0b66208ea 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/CreateStream/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/CreateStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/DeleteConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1/Client/DeleteConnectionProfile/main.go index 211f5f9b003..bef6c2e7845 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/DeleteConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/DeleteConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/datastream/apiv1/Client/DeleteOperation/main.go index b1bef4feb7d..45c20f4a45e 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/DeletePrivateConnection/main.go b/internal/generated/snippets/datastream/apiv1/Client/DeletePrivateConnection/main.go index 355b1e0ea58..5424d7b6423 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/DeletePrivateConnection/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/DeletePrivateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/DeleteRoute/main.go b/internal/generated/snippets/datastream/apiv1/Client/DeleteRoute/main.go index 3063a3f65bb..f980b854ed2 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/DeleteRoute/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/DeleteRoute/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/DeleteStream/main.go b/internal/generated/snippets/datastream/apiv1/Client/DeleteStream/main.go index 76ac882f6d8..eda6a8b2b3c 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/DeleteStream/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/DeleteStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/DiscoverConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1/Client/DiscoverConnectionProfile/main.go index e4d248b8df7..2bc419f8efa 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/DiscoverConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/DiscoverConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/FetchStaticIps/main.go b/internal/generated/snippets/datastream/apiv1/Client/FetchStaticIps/main.go index 6e2943a0e93..8885bc86bca 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/FetchStaticIps/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/FetchStaticIps/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/GetConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1/Client/GetConnectionProfile/main.go index 89151272634..05dc7fda807 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/GetConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/GetConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/datastream/apiv1/Client/GetLocation/main.go index 5b69417b40d..1aeace0525f 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/GetLocation/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/datastream/apiv1/Client/GetOperation/main.go index 43bbacd651a..74404e6a9dc 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/GetPrivateConnection/main.go b/internal/generated/snippets/datastream/apiv1/Client/GetPrivateConnection/main.go index 25c812c2b83..2c1c85b62d8 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/GetPrivateConnection/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/GetPrivateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/GetRoute/main.go b/internal/generated/snippets/datastream/apiv1/Client/GetRoute/main.go index 667885f5fb1..4cd845ac7ba 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/GetRoute/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/GetRoute/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/GetStream/main.go b/internal/generated/snippets/datastream/apiv1/Client/GetStream/main.go index e58e7b4d6c6..602e5518884 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/GetStream/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/GetStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/GetStreamObject/main.go b/internal/generated/snippets/datastream/apiv1/Client/GetStreamObject/main.go index 4f994be13b7..c54dd01f968 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/GetStreamObject/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/GetStreamObject/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/ListConnectionProfiles/main.go b/internal/generated/snippets/datastream/apiv1/Client/ListConnectionProfiles/main.go index 34d4facaee0..441c1f92efe 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/ListConnectionProfiles/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/ListConnectionProfiles/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/datastream/apiv1/Client/ListLocations/main.go index 8f1148d2e58..c504189ee3c 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/ListLocations/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/datastream/apiv1/Client/ListOperations/main.go index 892ce86afb8..9d198a908cd 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/ListPrivateConnections/main.go b/internal/generated/snippets/datastream/apiv1/Client/ListPrivateConnections/main.go index a1d6c5fa1bc..541d7294c93 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/ListPrivateConnections/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/ListPrivateConnections/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/ListRoutes/main.go b/internal/generated/snippets/datastream/apiv1/Client/ListRoutes/main.go index 8c6e37a5fcc..3b642caefec 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/ListRoutes/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/ListRoutes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/ListStreamObjects/main.go b/internal/generated/snippets/datastream/apiv1/Client/ListStreamObjects/main.go index 588ef5132fb..9440a08b025 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/ListStreamObjects/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/ListStreamObjects/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/ListStreams/main.go b/internal/generated/snippets/datastream/apiv1/Client/ListStreams/main.go index 5bab1fd2ddd..c76330e8bce 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/ListStreams/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/ListStreams/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/LookupStreamObject/main.go b/internal/generated/snippets/datastream/apiv1/Client/LookupStreamObject/main.go index bfa394df0fc..170d07b78b0 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/LookupStreamObject/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/LookupStreamObject/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/StartBackfillJob/main.go b/internal/generated/snippets/datastream/apiv1/Client/StartBackfillJob/main.go index bd8f5b96757..d246b193e6f 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/StartBackfillJob/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/StartBackfillJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/StopBackfillJob/main.go b/internal/generated/snippets/datastream/apiv1/Client/StopBackfillJob/main.go index dc1b9c4a214..1364cbb8f4b 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/StopBackfillJob/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/StopBackfillJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/UpdateConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1/Client/UpdateConnectionProfile/main.go index 9367142faaf..77252f250d4 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/UpdateConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/UpdateConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/Client/UpdateStream/main.go b/internal/generated/snippets/datastream/apiv1/Client/UpdateStream/main.go index 7756ca89de9..c96c5e26f39 100644 --- a/internal/generated/snippets/datastream/apiv1/Client/UpdateStream/main.go +++ b/internal/generated/snippets/datastream/apiv1/Client/UpdateStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1/snippet_metadata.google.cloud.datastream.v1.json b/internal/generated/snippets/datastream/apiv1/snippet_metadata.google.cloud.datastream.v1.json index de1e4730b13..1e1aefa06e5 100644 --- a/internal/generated/snippets/datastream/apiv1/snippet_metadata.google.cloud.datastream.v1.json +++ b/internal/generated/snippets/datastream/apiv1/snippet_metadata.google.cloud.datastream.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/datastream/apiv1", - "version": "1.0.0", + "version": "1.1.0", "language": "GO", "apis": [ { @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -832,7 +832,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -878,7 +878,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -924,7 +924,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -970,7 +970,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1016,7 +1016,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1062,7 +1062,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1108,7 +1108,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1154,7 +1154,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1200,7 +1200,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1246,7 +1246,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1292,7 +1292,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1338,7 +1338,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1384,7 +1384,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1430,7 +1430,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateConnectionProfile/main.go index 9c70229cf49..f0c10772149 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/CreatePrivateConnection/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/CreatePrivateConnection/main.go index 9458ef8547b..96741a9badd 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/CreatePrivateConnection/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/CreatePrivateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateRoute/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateRoute/main.go index a46cfef4c62..b38d9b41668 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateRoute/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateRoute/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateStream/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateStream/main.go index e5d99eebbab..0455bfd66fd 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateStream/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/CreateStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteConnectionProfile/main.go index 01e2acce5af..08717a952f8 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/DeletePrivateConnection/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/DeletePrivateConnection/main.go index 34d146b0e2e..4dd8d6517ab 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/DeletePrivateConnection/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/DeletePrivateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteRoute/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteRoute/main.go index efeb731c886..022c6b90c48 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteRoute/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteRoute/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteStream/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteStream/main.go index 1e8802d457a..c4fc5b553b0 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteStream/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/DeleteStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/DiscoverConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/DiscoverConnectionProfile/main.go index 33770a54bdc..8960d4fac82 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/DiscoverConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/DiscoverConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/FetchErrors/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/FetchErrors/main.go index 1481e3099a9..1db07d67b75 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/FetchErrors/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/FetchErrors/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/FetchStaticIps/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/FetchStaticIps/main.go index 6ec019bd0b1..322b37fe7c4 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/FetchStaticIps/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/FetchStaticIps/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/GetConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/GetConnectionProfile/main.go index 77c5860d9f0..ee8fda403bd 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/GetConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/GetConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/GetPrivateConnection/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/GetPrivateConnection/main.go index 54ff903cdc8..fdc40a09467 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/GetPrivateConnection/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/GetPrivateConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/GetRoute/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/GetRoute/main.go index 53ba10c19ba..5ee29ce36a4 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/GetRoute/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/GetRoute/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/GetStream/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/GetStream/main.go index 5862248c274..e9ae04ae5a4 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/GetStream/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/GetStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/ListConnectionProfiles/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/ListConnectionProfiles/main.go index 1f418747a72..e522bfeafae 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/ListConnectionProfiles/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/ListConnectionProfiles/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/ListPrivateConnections/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/ListPrivateConnections/main.go index 90014d064e5..90c310b3b7f 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/ListPrivateConnections/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/ListPrivateConnections/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/ListRoutes/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/ListRoutes/main.go index fc2181e83e4..5f45b6de770 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/ListRoutes/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/ListRoutes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/ListStreams/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/ListStreams/main.go index 57bc9dff443..a513e93cd4b 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/ListStreams/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/ListStreams/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/UpdateConnectionProfile/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/UpdateConnectionProfile/main.go index d9023f94b0f..a1a95245c84 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/UpdateConnectionProfile/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/UpdateConnectionProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/Client/UpdateStream/main.go b/internal/generated/snippets/datastream/apiv1alpha1/Client/UpdateStream/main.go index fa0481cb338..e0b44855cd3 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/Client/UpdateStream/main.go +++ b/internal/generated/snippets/datastream/apiv1alpha1/Client/UpdateStream/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := datastream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/datastream/apiv1alpha1/snippet_metadata.google.cloud.datastream.v1alpha1.json b/internal/generated/snippets/datastream/apiv1alpha1/snippet_metadata.google.cloud.datastream.v1alpha1.json index a4bc289d157..ee82300b7f6 100644 --- a/internal/generated/snippets/datastream/apiv1alpha1/snippet_metadata.google.cloud.datastream.v1alpha1.json +++ b/internal/generated/snippets/datastream/apiv1alpha1/snippet_metadata.google.cloud.datastream.v1alpha1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/datastream/apiv1alpha1", - "version": "1.0.0", + "version": "1.1.0", "language": "GO", "apis": [ { @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ApproveRollout/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ApproveRollout/main.go index ef996c71efb..33079a00680 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ApproveRollout/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ApproveRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateDeliveryPipeline/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateDeliveryPipeline/main.go index fb8cc3d4f29..2c6b4f4b958 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateDeliveryPipeline/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateDeliveryPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRelease/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRelease/main.go index cfea1448dda..9f0e3150d68 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRelease/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRelease/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRollout/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRollout/main.go index 92661e38de5..96005c8497f 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRollout/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateTarget/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateTarget/main.go index 57a1d5360d9..dcd33ab00b4 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateTarget/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/CreateTarget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteDeliveryPipeline/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteDeliveryPipeline/main.go index 21941a6f33c..c5516a0c192 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteDeliveryPipeline/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteDeliveryPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteTarget/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteTarget/main.go index 215b7573616..8d80d02a5d9 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteTarget/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/DeleteTarget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetConfig/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetConfig/main.go index 88c986e4d28..c1be4296af1 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetConfig/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetDeliveryPipeline/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetDeliveryPipeline/main.go index 43cce3fb4a3..8a8654ff2fa 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetDeliveryPipeline/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetDeliveryPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRelease/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRelease/main.go index 92cf52762dd..35706030efc 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRelease/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRelease/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRollout/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRollout/main.go index 4620d05ba73..b04a54a2b52 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRollout/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetTarget/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetTarget/main.go index a8b7ae1200b..7414f82398e 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetTarget/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/GetTarget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListDeliveryPipelines/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListDeliveryPipelines/main.go index fe4fdde35f1..8fcd8272832 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListDeliveryPipelines/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListDeliveryPipelines/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListReleases/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListReleases/main.go index 172408ecaa2..9ab19eed8cb 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListReleases/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListReleases/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListRollouts/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListRollouts/main.go index b0ff2e1d6ca..aed6c3c47e4 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListRollouts/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListRollouts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListTargets/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListTargets/main.go index 1d43b1f0797..17a0e3d0043 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListTargets/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/ListTargets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateDeliveryPipeline/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateDeliveryPipeline/main.go index fb4c3c0f778..79d6e3f0418 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateDeliveryPipeline/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateDeliveryPipeline/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateTarget/main.go b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateTarget/main.go index bbb3274211f..ceb04a45a72 100644 --- a/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateTarget/main.go +++ b/internal/generated/snippets/deploy/apiv1/CloudDeployClient/UpdateTarget/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := deploy.NewCloudDeployClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/deploy/apiv1/snippet_metadata.google.cloud.deploy.v1.json b/internal/generated/snippets/deploy/apiv1/snippet_metadata.google.cloud.deploy.v1.json index 1fdcfd4cf49..0d9bc60e5fa 100644 --- a/internal/generated/snippets/deploy/apiv1/snippet_metadata.google.cloud.deploy.v1.json +++ b/internal/generated/snippets/deploy/apiv1/snippet_metadata.google.cloud.deploy.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/CancelOperation/main.go index bc24ffc2818..2c6ab970c5a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/DeleteAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/DeleteAgent/main.go index 66ef2ef3fa1..5ed7662df7e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/DeleteAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/DeleteAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ExportAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ExportAgent/main.go index c83f86e7971..08448b2f242 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ExportAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ExportAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetAgent/main.go index 1070497cae0..6a27c4ba369 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetLocation/main.go index 39c4dcfc236..f84b462c285 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetOperation/main.go index 95aa2ce5428..add7a0ef989 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetValidationResult/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetValidationResult/main.go index da95d116b78..11842253858 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/GetValidationResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ImportAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ImportAgent/main.go index 6a7406250a1..c1aad3c11ef 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ImportAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ImportAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ListLocations/main.go index 5ddb295642f..d48e2a4445c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ListOperations/main.go index 795a5a3a26e..34697adc1d1 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/RestoreAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/RestoreAgent/main.go index b8365a20517..7489809e12d 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/RestoreAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/RestoreAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SearchAgents/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SearchAgents/main.go index 703ba821c1d..a0472514780 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SearchAgents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SearchAgents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SetAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SetAgent/main.go index 1a20a30359d..d681f0e259e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SetAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/SetAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/TrainAgent/main.go b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/TrainAgent/main.go index f60aeac8803..d6310087934 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AgentsClient/TrainAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AgentsClient/TrainAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/CancelOperation/main.go index e2a563e8eb5..dcc06892870 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/GetLocation/main.go index f09a9905d15..799772bdc80 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/GetOperation/main.go index 89208ad46d6..1121f141347 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListAnswerRecords/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListAnswerRecords/main.go index 67fafa3d09e..7b272fc889b 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListAnswerRecords/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListAnswerRecords/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListLocations/main.go index 86a0da844c5..bd43c9dfd16 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListOperations/main.go index ad423b2158a..552441f644a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/UpdateAnswerRecord/main.go b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/UpdateAnswerRecord/main.go index 6f274cbb42d..2684512702c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/UpdateAnswerRecord/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/AnswerRecordsClient/UpdateAnswerRecord/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CancelOperation/main.go index a39d91d4e49..de40df0be8f 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CreateContext/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CreateContext/main.go index 75aa1272cd0..662de7864b8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CreateContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/CreateContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteAllContexts/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteAllContexts/main.go index dae43699ad8..e42a4eb2296 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteAllContexts/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteAllContexts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteContext/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteContext/main.go index 20479bc4e7e..e0ba1b58a58 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/DeleteContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetContext/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetContext/main.go index 334d3c6d5e6..53a42e95e7d 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetLocation/main.go index a2375140fad..e2a62048e04 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetOperation/main.go index b68e8cadc7c..d93b951aef0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListContexts/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListContexts/main.go index 8a659a8a047..7b21ff856d2 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListContexts/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListContexts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListLocations/main.go index 6e0b6803e38..fa436ef2087 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListOperations/main.go index 1687e95ebd9..841fc3aa858 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/UpdateContext/main.go b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/UpdateContext/main.go index 5d9111b7e8c..e26874b28b7 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ContextsClient/UpdateContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ContextsClient/UpdateContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/CancelOperation/main.go index 6cf9042cca7..6d1459c5496 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/CreateConversationDataset/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/CreateConversationDataset/main.go index 821dd410ca2..161d97149dd 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/CreateConversationDataset/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/CreateConversationDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/DeleteConversationDataset/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/DeleteConversationDataset/main.go index 920f1a75441..6f0eac8a553 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/DeleteConversationDataset/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/DeleteConversationDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetConversationDataset/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetConversationDataset/main.go index cd1307ae3e2..1d405433900 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetConversationDataset/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetConversationDataset/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetLocation/main.go index e4bb617c0f8..449c5ae8fd5 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetOperation/main.go index 6dc60d25b78..04d456159b9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ImportConversationData/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ImportConversationData/main.go index 70719c55ba2..c54b7b49330 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ImportConversationData/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ImportConversationData/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListConversationDatasets/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListConversationDatasets/main.go index d3824d5375d..384e1bef885 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListConversationDatasets/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListConversationDatasets/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListLocations/main.go index fb201c45cfe..b030e798ab9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListOperations/main.go index 0e7600ee362..a61444a1640 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationDatasetsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationDatasetsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CancelOperation/main.go index 8ae9a326e2c..159f1593a3a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CreateConversationModel/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CreateConversationModel/main.go index 7227059be0f..f79272b6039 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CreateConversationModel/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CreateConversationModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CreateConversationModelEvaluation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CreateConversationModelEvaluation/main.go index 761ed30e211..2be52cb474e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CreateConversationModelEvaluation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/CreateConversationModelEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/DeleteConversationModel/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/DeleteConversationModel/main.go index 46ed928439f..50f702ff1e2 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/DeleteConversationModel/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/DeleteConversationModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/DeployConversationModel/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/DeployConversationModel/main.go index e23759bb8e4..25e305eb6c8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/DeployConversationModel/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/DeployConversationModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetConversationModel/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetConversationModel/main.go index 00ea94f43c2..7353ed9ce8e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetConversationModel/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetConversationModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetConversationModelEvaluation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetConversationModelEvaluation/main.go index b5956e0cf3e..16da2bc588f 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetConversationModelEvaluation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetConversationModelEvaluation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetLocation/main.go index 832bafda71d..1bc238e27c2 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetOperation/main.go index e9d0f826475..51c64d00c2e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListConversationModelEvaluations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListConversationModelEvaluations/main.go index 4f027b4098f..e9f0378cf92 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListConversationModelEvaluations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListConversationModelEvaluations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListConversationModels/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListConversationModels/main.go index fad76b6f105..93f12ff5a02 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListConversationModels/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListConversationModels/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListLocations/main.go index 6d82c5ce235..c69a3736477 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListOperations/main.go index 44337a86993..f8313b9cd7e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/UndeployConversationModel/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/UndeployConversationModel/main.go index 37e76d7c929..841681a13e3 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/UndeployConversationModel/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationModelsClient/UndeployConversationModel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationModelsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CancelOperation/main.go index 649bf7afbb3..8faacaf1515 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go index 28d8eb124a6..95e7667f5ee 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CreateConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CreateConversationProfile/main.go index 5ce834b87bc..5dd7332235c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CreateConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/CreateConversationProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/DeleteConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/DeleteConversationProfile/main.go index 87b58d7f365..4d454ec61b1 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/DeleteConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/DeleteConversationProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetConversationProfile/main.go index ece5600ac1f..4a0ccadb2db 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetConversationProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetLocation/main.go index b88a3fc6933..505137c40e9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetOperation/main.go index d0e2ecd0e5f..9dd05e4cd94 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListConversationProfiles/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListConversationProfiles/main.go index 46f1afbb49d..83b494aba52 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListConversationProfiles/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListConversationProfiles/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListLocations/main.go index 68fd8ff8a72..6f088b7b8e5 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListOperations/main.go index 44877533c1b..97ec2941c4f 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/SetSuggestionFeatureConfig/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/SetSuggestionFeatureConfig/main.go index ee38ef79a56..6d10864d6a8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/SetSuggestionFeatureConfig/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/SetSuggestionFeatureConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/UpdateConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/UpdateConversationProfile/main.go index c62b9212ee9..e56f160b0d3 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/UpdateConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationProfilesClient/UpdateConversationProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CancelOperation/main.go index c39f6fdb6da..9d16361b8ef 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CompleteConversation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CompleteConversation/main.go index 5c691e46c0c..1534768cd06 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CompleteConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CompleteConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CreateConversation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CreateConversation/main.go index a92c9793351..059eefe8990 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CreateConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/CreateConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetConversation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetConversation/main.go index 6af7e8548f3..204d3b1592e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetLocation/main.go index 5524c749a71..d30851c5f5e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetOperation/main.go index ae41a07923e..2b2c36633b4 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListConversations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListConversations/main.go index 029e5ece862..211fff56245 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListConversations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListConversations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListLocations/main.go index 1eb86a425c2..0c84a8782b8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListMessages/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListMessages/main.go index fb0e5d894b6..8e14ffd95eb 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListMessages/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListMessages/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListOperations/main.go index ee71907f45d..8c4cbfa8006 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ConversationsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CancelOperation/main.go index 03c43621c6f..6d75b9ad5e7 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CreateDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CreateDocument/main.go index 9e8e335600b..914f592c7dc 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CreateDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/CreateDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/DeleteDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/DeleteDocument/main.go index 4ad410c6187..4eb76f54964 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/DeleteDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/DeleteDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ExportDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ExportDocument/main.go index 003c8b215f9..325a9c12503 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ExportDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ExportDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetDocument/main.go index c80ff47bf89..7e2a525c599 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetLocation/main.go index b55c94b9e27..fddeb79ce9e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetOperation/main.go index 6701f589195..1b2ee36589e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ImportDocuments/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ImportDocuments/main.go index addf98704fc..1068f96fdbf 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ImportDocuments/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ImportDocuments/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListDocuments/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListDocuments/main.go index 94ce0448368..83a1b844b6f 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListDocuments/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListDocuments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListLocations/main.go index 6b1515df3de..430c80bf134 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListOperations/main.go index 7dd9206cd73..c6878bb674c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ReloadDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ReloadDocument/main.go index aeaa7b1f3c4..7b103413282 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ReloadDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/ReloadDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/UpdateDocument/main.go b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/UpdateDocument/main.go index 406da01ecd4..b2897f182e0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/UpdateDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/DocumentsClient/UpdateDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchCreateEntities/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchCreateEntities/main.go index b4a00a67a17..681c483cbe0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchCreateEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchCreateEntities/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntities/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntities/main.go index 8e09ead2cfe..91c5db883a7 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntities/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntityTypes/main.go index 1e388f400b5..55ebf203e7c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchDeleteEntityTypes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntities/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntities/main.go index 7a8a013ce8b..a50d3985d8d 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntities/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntityTypes/main.go index 738ade72b3f..8d46636b58f 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/BatchUpdateEntityTypes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CancelOperation/main.go index a1d2eb5c284..b735aa9f3b1 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CreateEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CreateEntityType/main.go index b4bab9e18dd..2aea4313431 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CreateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/CreateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/DeleteEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/DeleteEntityType/main.go index b09b96848e3..b03223f84e9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/DeleteEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetEntityType/main.go index 8f85fe127f1..ea5597a488e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetLocation/main.go index 33267e5b614..467e72af907 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetOperation/main.go index 49d9bbb592f..ba587fa3afb 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListEntityTypes/main.go index 8670fe5f734..5306238c353 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListLocations/main.go index 4401c4de2f9..fc56640e59e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListOperations/main.go index 2f81d7c781a..58788d3d52b 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/UpdateEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/UpdateEntityType/main.go index ed034c19805..35672363ba2 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EntityTypesClient/UpdateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/CancelOperation/main.go index db03f830994..6b1f1dbd037 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/CreateEnvironment/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/CreateEnvironment/main.go index c8bd33d0017..5b8d518d6f0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/CreateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/CreateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/DeleteEnvironment/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/DeleteEnvironment/main.go index 42dfab69f17..211ab5b406e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/DeleteEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/DeleteEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetEnvironment/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetEnvironment/main.go index 66ab607b4b7..1cba068e8aa 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetEnvironmentHistory/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetEnvironmentHistory/main.go index 9a69279ef01..b77cac35c93 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetEnvironmentHistory/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetEnvironmentHistory/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetLocation/main.go index df9bd27545f..14c0df896d9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetOperation/main.go index 99027736539..426ddad5cba 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListEnvironments/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListEnvironments/main.go index 20e00b5f414..e0be1b0daf4 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListEnvironments/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListEnvironments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListLocations/main.go index dd62a9c596d..724ed739e14 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListOperations/main.go index db798d6e561..0c8c1f1c4b8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/UpdateEnvironment/main.go b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/UpdateEnvironment/main.go index 07a63d2cc97..6264ea1d562 100644 --- a/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/UpdateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/EnvironmentsClient/UpdateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/CancelOperation/main.go index 6db7b265cb0..3c6ea490877 100644 --- a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetFulfillment/main.go b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetFulfillment/main.go index 39822de98b0..ed52029893a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetFulfillment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetFulfillment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetLocation/main.go index 8734f6a693e..044df88d4c4 100644 --- a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetOperation/main.go index 0dde9163d64..f176b41ef6b 100644 --- a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/ListLocations/main.go index d0b7599e025..b47cf477090 100644 --- a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/ListOperations/main.go index 4b3d07c46e3..15607ec257e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/UpdateFulfillment/main.go b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/UpdateFulfillment/main.go index 2f2c215cc8d..eb2252b8fd9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/UpdateFulfillment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/FulfillmentsClient/UpdateFulfillment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchDeleteIntents/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchDeleteIntents/main.go index 15bc4b375ed..0fceac9de3c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchDeleteIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchDeleteIntents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchUpdateIntents/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchUpdateIntents/main.go index a5e25943660..a39f28a9db8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchUpdateIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/BatchUpdateIntents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CancelOperation/main.go index 24e7fef3771..ea056802502 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CreateIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CreateIntent/main.go index fd1ae9174db..e7a92627841 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CreateIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/CreateIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/DeleteIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/DeleteIntent/main.go index 25b3ce43691..be1cb91cbe6 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/DeleteIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/DeleteIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetIntent/main.go index d26fcd2998b..68454007b60 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetLocation/main.go index 981dfbcb146..99cd978e7e3 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetOperation/main.go index 9140f16b0cc..8ae07c3880d 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListIntents/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListIntents/main.go index 38e8e929133..fcd763fb7f5 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListIntents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListLocations/main.go index b8a000cc4f7..88bca3c8aea 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListOperations/main.go index 2762f1bd0da..8a341b02dc3 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/UpdateIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/UpdateIntent/main.go index 4509c32c109..df4ddefb046 100644 --- a/internal/generated/snippets/dialogflow/apiv2/IntentsClient/UpdateIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/IntentsClient/UpdateIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CancelOperation/main.go index c1a600afcfc..e9fe7385396 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CreateKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CreateKnowledgeBase/main.go index 20c3df4aed2..15c112e000f 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CreateKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/CreateKnowledgeBase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/DeleteKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/DeleteKnowledgeBase/main.go index 283c9247799..ba065e5fdb7 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/DeleteKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/DeleteKnowledgeBase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetKnowledgeBase/main.go index 1a00fd85e39..e6690b4dd53 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetKnowledgeBase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetLocation/main.go index 20a4870c80b..cfc946753d8 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetOperation/main.go index c129c5808ff..0eab7581415 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListKnowledgeBases/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListKnowledgeBases/main.go index 9804bd714fb..c309d1cce3b 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListKnowledgeBases/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListKnowledgeBases/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListLocations/main.go index 73c9a93b948..5da22cc1f70 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListOperations/main.go index 49d8fa62527..ca9429f2b83 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/UpdateKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/UpdateKnowledgeBase/main.go index a284c1dd9d1..d9ed7ba2554 100644 --- a/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/UpdateKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/KnowledgeBasesClient/UpdateKnowledgeBase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/AnalyzeContent/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/AnalyzeContent/main.go index b2a02d81aed..14cf3edee34 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/AnalyzeContent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/AnalyzeContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CancelOperation/main.go index 7ba82a13e59..40a75c2b6d0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CreateParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CreateParticipant/main.go index bb2d032fd7b..3f2f629b2ec 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CreateParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/CreateParticipant/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetLocation/main.go index ca6ca395c66..d9e46b4f2dc 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetOperation/main.go index 49d0131853b..67ae4ce3441 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetParticipant/main.go index 4969a2ce7cb..c29890b76f1 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/GetParticipant/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListLocations/main.go index 72758a56223..711dd14b6f0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListOperations/main.go index 62bf9b59183..b1df521a885 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListParticipants/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListParticipants/main.go index e4a9dfc0da5..ba602ecbe01 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListParticipants/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/ListParticipants/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestArticles/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestArticles/main.go index 77e67fd923a..af00899812a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestArticles/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestArticles/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestFaqAnswers/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestFaqAnswers/main.go index f0404461746..12eb263578c 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestFaqAnswers/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestFaqAnswers/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestSmartReplies/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestSmartReplies/main.go index d190612d158..37db78e3ec4 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestSmartReplies/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/SuggestSmartReplies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/UpdateParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/UpdateParticipant/main.go index a1c815b3a0b..6ec57d039b9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/UpdateParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/ParticipantsClient/UpdateParticipant/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CancelOperation/main.go index e31085cbb18..d3435aef34e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CreateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CreateSessionEntityType/main.go index 85ec811f73a..c3323e760ec 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CreateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/CreateSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/DeleteSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/DeleteSessionEntityType/main.go index 9724c51e91b..155c895b130 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/DeleteSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/DeleteSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetLocation/main.go index a6e252d14cd..32fe0e49c4d 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetOperation/main.go index 41df51df87d..0e79e4225e9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetSessionEntityType/main.go index 5dd165c6017..ccf4c95bb6a 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/GetSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListLocations/main.go index abb3d627ed1..fc4041a72c0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListOperations/main.go index 483180adce0..87d36ecb5d9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListSessionEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListSessionEntityTypes/main.go index c7a22caef55..ae878bec1be 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListSessionEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/ListSessionEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/UpdateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/UpdateSessionEntityType/main.go index 85e75ddfd0f..2cfadcab274 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/UpdateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionEntityTypesClient/UpdateSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/CancelOperation/main.go index 3b0891a781a..73718bf5d12 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/DetectIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/DetectIntent/main.go index 3d0aa25133c..8cc7a7a7c6f 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/DetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/DetectIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/GetLocation/main.go index d64d210038a..5c204fe2dcc 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/GetOperation/main.go index 199211af086..c935f2ad1ac 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/ListLocations/main.go index 931a3bdd92b..c85aacfcb40 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/ListOperations/main.go index 21496c57488..03b8d27b8f3 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/StreamingDetectIntent/main.go b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/StreamingDetectIntent/main.go index 98eb8f304a8..ffb33d56cf9 100644 --- a/internal/generated/snippets/dialogflow/apiv2/SessionsClient/StreamingDetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/SessionsClient/StreamingDetectIntent/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/CancelOperation/main.go index 782e9da83b6..98a2cedae48 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/CreateVersion/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/CreateVersion/main.go index 54e07ec4a46..209ed94a13e 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/CreateVersion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/CreateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/DeleteVersion/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/DeleteVersion/main.go index 03d6bec24d2..16a42366452 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/DeleteVersion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/DeleteVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetLocation/main.go index e8901b096f2..ed66902eb82 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetOperation/main.go index e5bb23e6ee7..824f1815f29 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetVersion/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetVersion/main.go index 5005c353766..563bd13d5cf 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetVersion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/GetVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListLocations/main.go index 100b44b2f34..82034d120b6 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListOperations/main.go index d1ed6246394..456155edb24 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListVersions/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListVersions/main.go index d806150c53c..abdd6dccdea 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListVersions/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/ListVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/UpdateVersion/main.go b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/UpdateVersion/main.go index 2417da58738..d89b67f5ef0 100644 --- a/internal/generated/snippets/dialogflow/apiv2/VersionsClient/UpdateVersion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2/VersionsClient/UpdateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2/snippet_metadata.google.cloud.dialogflow.v2.json b/internal/generated/snippets/dialogflow/apiv2/snippet_metadata.google.cloud.dialogflow.v2.json index ba2eaf2a1e8..cac9142ea24 100644 --- a/internal/generated/snippets/dialogflow/apiv2/snippet_metadata.google.cloud.dialogflow.v2.json +++ b/internal/generated/snippets/dialogflow/apiv2/snippet_metadata.google.cloud.dialogflow.v2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dialogflow/apiv2", - "version": "1.12.1", + "version": "1.13.0", "language": "GO", "apis": [ { @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -96,7 +96,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -142,7 +142,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -923,7 +923,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -969,7 +969,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1014,7 +1014,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1060,7 +1060,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1105,7 +1105,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1150,7 +1150,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1196,7 +1196,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1242,7 +1242,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1288,7 +1288,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1334,7 +1334,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1380,7 +1380,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1426,7 +1426,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1472,7 +1472,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1517,7 +1517,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1563,7 +1563,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1609,7 +1609,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1655,7 +1655,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1701,7 +1701,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1747,7 +1747,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1793,7 +1793,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1839,7 +1839,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1885,7 +1885,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1931,7 +1931,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1976,7 +1976,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2022,7 +2022,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2068,7 +2068,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2114,7 +2114,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2160,7 +2160,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2206,7 +2206,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2252,7 +2252,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2298,7 +2298,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2344,7 +2344,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2390,7 +2390,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2436,7 +2436,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2482,7 +2482,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2528,7 +2528,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2574,7 +2574,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2619,7 +2619,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2665,7 +2665,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2711,7 +2711,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2756,7 +2756,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2802,7 +2802,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2848,7 +2848,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2894,7 +2894,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2940,7 +2940,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2986,7 +2986,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3032,7 +3032,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3078,7 +3078,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3124,7 +3124,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3169,7 +3169,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3215,7 +3215,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3261,7 +3261,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3307,7 +3307,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3353,7 +3353,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3399,7 +3399,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3445,7 +3445,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3491,7 +3491,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3537,7 +3537,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3583,7 +3583,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3628,7 +3628,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3674,7 +3674,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3720,7 +3720,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3766,7 +3766,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3812,7 +3812,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3858,7 +3858,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3904,7 +3904,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3950,7 +3950,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3996,7 +3996,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4042,7 +4042,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4088,7 +4088,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4134,7 +4134,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -4180,7 +4180,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -4226,7 +4226,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4272,7 +4272,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4318,7 +4318,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4364,7 +4364,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4410,7 +4410,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -4455,7 +4455,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4501,7 +4501,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4546,7 +4546,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4592,7 +4592,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4638,7 +4638,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4684,7 +4684,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4730,7 +4730,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4776,7 +4776,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4822,7 +4822,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4868,7 +4868,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4913,7 +4913,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4959,7 +4959,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5004,7 +5004,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5050,7 +5050,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5096,7 +5096,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5142,7 +5142,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5188,7 +5188,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5234,7 +5234,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5280,7 +5280,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5326,7 +5326,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5372,7 +5372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5417,7 +5417,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5463,7 +5463,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5509,7 +5509,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5555,7 +5555,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5601,7 +5601,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5647,7 +5647,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5693,7 +5693,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5739,7 +5739,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -5785,7 +5785,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -5830,7 +5830,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5876,7 +5876,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5921,7 +5921,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5967,7 +5967,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6013,7 +6013,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6059,7 +6059,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6105,7 +6105,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6151,7 +6151,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6197,7 +6197,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6243,7 +6243,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6288,7 +6288,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6334,7 +6334,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6379,7 +6379,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6425,7 +6425,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6471,7 +6471,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6517,7 +6517,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6563,7 +6563,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6609,7 +6609,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6655,7 +6655,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6701,7 +6701,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6747,7 +6747,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6792,7 +6792,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6838,7 +6838,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6884,7 +6884,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6930,7 +6930,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6976,7 +6976,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7022,7 +7022,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7068,7 +7068,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7114,7 +7114,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7160,7 +7160,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7206,7 +7206,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7252,7 +7252,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7298,7 +7298,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7343,7 +7343,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7389,7 +7389,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7434,7 +7434,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7480,7 +7480,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7526,7 +7526,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7572,7 +7572,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7618,7 +7618,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7664,7 +7664,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7710,7 +7710,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7756,7 +7756,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7801,7 +7801,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7847,7 +7847,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7893,7 +7893,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7939,7 +7939,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7985,7 +7985,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8031,7 +8031,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8072,7 +8072,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] @@ -8117,7 +8117,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -8163,7 +8163,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8208,7 +8208,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -8254,7 +8254,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8300,7 +8300,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8346,7 +8346,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -8392,7 +8392,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8438,7 +8438,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8484,7 +8484,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8530,7 +8530,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/CancelOperation/main.go index 79fb0a80a14..ce493cc5055 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/DeleteAgent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/DeleteAgent/main.go index 789ef15fe06..e22065188a1 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/DeleteAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/DeleteAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ExportAgent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ExportAgent/main.go index b02667c9d6c..e1ea2772533 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ExportAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ExportAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetAgent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetAgent/main.go index 812059eb0b0..428b87ddab7 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetLocation/main.go index a0d3386de8a..fe3f2abd186 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetOperation/main.go index ad7f9fcb69e..58ae7b6e4ce 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetValidationResult/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetValidationResult/main.go index c2f759997f7..fb19d1fbc5f 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/GetValidationResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ImportAgent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ImportAgent/main.go index 79eac9e2b03..32572d2cfc3 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ImportAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ImportAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ListLocations/main.go index 2791f9b83ad..cd4da189767 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ListOperations/main.go index 8911c279e8c..7db334051e3 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/RestoreAgent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/RestoreAgent/main.go index ea4c3df2e9b..09dd2ab5b78 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/RestoreAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/RestoreAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/SearchAgents/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/SearchAgents/main.go index f5402d45087..62cea94a0a1 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/SearchAgents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/SearchAgents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/SetAgent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/SetAgent/main.go index 1194e1cf061..329f97f9a54 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/SetAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/SetAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/TrainAgent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/TrainAgent/main.go index 800fcfe5b8c..628e2baf09c 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/TrainAgent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AgentsClient/TrainAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/CancelOperation/main.go index f99ef27ce10..6918d06a3ed 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetAnswerRecord/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetAnswerRecord/main.go index 635c5f9b479..a49911bda0e 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetAnswerRecord/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetAnswerRecord/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetLocation/main.go index 7fe2d101116..b793353ec97 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetOperation/main.go index c037c78ebb8..b219f3353d9 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListAnswerRecords/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListAnswerRecords/main.go index c22cac1ceb5..266f8c72b2e 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListAnswerRecords/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListAnswerRecords/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListLocations/main.go index d587d0214d2..4bbc36b1f11 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListOperations/main.go index dd7817a2897..b8425cc0d88 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/UpdateAnswerRecord/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/UpdateAnswerRecord/main.go index c7fba5d6041..8ca2ad81011 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/UpdateAnswerRecord/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/AnswerRecordsClient/UpdateAnswerRecord/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewAnswerRecordsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/CancelOperation/main.go index ac8879741a4..97ff06542bb 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/CreateContext/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/CreateContext/main.go index df1df8e3603..ee312a54b20 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/CreateContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/CreateContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/DeleteAllContexts/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/DeleteAllContexts/main.go index 2c976118b07..3f846fbdca3 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/DeleteAllContexts/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/DeleteAllContexts/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/DeleteContext/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/DeleteContext/main.go index e748fbe97d2..504d5ab2274 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/DeleteContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/DeleteContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetContext/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetContext/main.go index 28359a1d848..60d32987cbf 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetLocation/main.go index 7a0e1b54ddc..7d8574615f3 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetOperation/main.go index 60dce14b964..a5124b0048b 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListContexts/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListContexts/main.go index 4159437e2f8..3cd3088aa6f 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListContexts/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListContexts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListLocations/main.go index 3f91dab5fc0..75dcb4cbbfc 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListOperations/main.go index 217f5426ef0..b603d06325a 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/UpdateContext/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/UpdateContext/main.go index 67ecf903c7a..21d800e9627 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/UpdateContext/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ContextsClient/UpdateContext/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewContextsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/CancelOperation/main.go index 1afb295545b..3ee815a64de 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go index 9408706275a..1f8a3dbf272 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ClearSuggestionFeatureConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/CreateConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/CreateConversationProfile/main.go index 3ef3973827c..64266d334c3 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/CreateConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/CreateConversationProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/DeleteConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/DeleteConversationProfile/main.go index 1cf80d9496e..db83cc63d53 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/DeleteConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/DeleteConversationProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetConversationProfile/main.go index ecd741116ae..79995b8f2cf 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetConversationProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetLocation/main.go index 22e1e7bcf30..97f89460e56 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetOperation/main.go index bf6a2a48eeb..abb6507fd6b 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListConversationProfiles/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListConversationProfiles/main.go index ae37f0d2630..fa4d999cc61 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListConversationProfiles/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListConversationProfiles/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListLocations/main.go index bb33a5e75f8..52a70fd1e43 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListOperations/main.go index bcc2ad52298..e81c1bfc51b 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/SetSuggestionFeatureConfig/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/SetSuggestionFeatureConfig/main.go index cd646c18836..970754d8f01 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/SetSuggestionFeatureConfig/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/SetSuggestionFeatureConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/UpdateConversationProfile/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/UpdateConversationProfile/main.go index 716609fca8d..2a4d32d641b 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/UpdateConversationProfile/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationProfilesClient/UpdateConversationProfile/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationProfilesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/BatchCreateMessages/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/BatchCreateMessages/main.go index 072b3e83114..b2bd7bfb505 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/BatchCreateMessages/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/BatchCreateMessages/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CancelOperation/main.go index 19e8fa26634..8253d0c7081 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CompleteConversation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CompleteConversation/main.go index 661ad7aa275..3da52c98cef 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CompleteConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CompleteConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CreateConversation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CreateConversation/main.go index 02274cb7fcf..ddcada2a4df 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CreateConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/CreateConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetConversation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetConversation/main.go index a85fa3f1a36..109cce865c5 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetConversation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetConversation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetLocation/main.go index 3c7db9037cf..601ab0891fa 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetOperation/main.go index b1dbb22416e..c99692d1955 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListConversations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListConversations/main.go index 14e91017b1e..1fc93257e4d 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListConversations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListConversations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListLocations/main.go index 07bced5dcd1..6fb073c0f56 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListMessages/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListMessages/main.go index 275ac2c46e9..9925552ed92 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListMessages/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListMessages/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListOperations/main.go index 118c1607cdd..939bc73023f 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ConversationsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewConversationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/CancelOperation/main.go index 9f928821c6e..9738f923a24 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/CreateDocument/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/CreateDocument/main.go index 80399a06136..baa8d6c4854 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/CreateDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/CreateDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/DeleteDocument/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/DeleteDocument/main.go index e27c630081b..2ebc0245f70 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/DeleteDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/DeleteDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetDocument/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetDocument/main.go index daf4f8263af..1e3dc222e17 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetLocation/main.go index bebdaf10a02..ac74dee70db 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetOperation/main.go index f2c176c1b85..83fa5483eb0 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ImportDocuments/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ImportDocuments/main.go index 3f46946d0ed..773dc97cd0e 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ImportDocuments/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ImportDocuments/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListDocuments/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListDocuments/main.go index f4baabf248c..e4ec5958432 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListDocuments/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListDocuments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListLocations/main.go index 40f43e89aeb..c1806f69ec6 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListOperations/main.go index cbcee029ffd..511a6286d51 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ReloadDocument/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ReloadDocument/main.go index a83ccb9c07e..f8999cf1429 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ReloadDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/ReloadDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/UpdateDocument/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/UpdateDocument/main.go index 7eb7ee394eb..8c8b6659c2d 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/UpdateDocument/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/DocumentsClient/UpdateDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewDocumentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchCreateEntities/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchCreateEntities/main.go index 251310619fc..4185e7dc43c 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchCreateEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchCreateEntities/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchDeleteEntities/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchDeleteEntities/main.go index fa928bebba7..1ebeb295622 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchDeleteEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchDeleteEntities/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchDeleteEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchDeleteEntityTypes/main.go index 42c9d08b910..86f3fc1910f 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchDeleteEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchDeleteEntityTypes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchUpdateEntities/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchUpdateEntities/main.go index ccdd8998d94..375fd0a075c 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchUpdateEntities/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchUpdateEntities/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchUpdateEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchUpdateEntityTypes/main.go index bed4a91d2a5..d2a640c386d 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchUpdateEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/BatchUpdateEntityTypes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/CancelOperation/main.go index 5cbfeb768e1..9a5692b010d 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/CreateEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/CreateEntityType/main.go index 26e8be8c0e9..c48f1ea8e15 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/CreateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/CreateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/DeleteEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/DeleteEntityType/main.go index bdc59c47383..828681ee471 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/DeleteEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetEntityType/main.go index 647b43c3104..6539fa048e9 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetLocation/main.go index 100eb2dbd5a..41f22307301 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetOperation/main.go index 1f85d01777a..d0f024e8817 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListEntityTypes/main.go index b2498609fd7..e9441fc4eab 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListLocations/main.go index 331f04c21e8..d9116244bf0 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListOperations/main.go index 5dc3e4f4fba..6c23c92d30e 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/UpdateEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/UpdateEntityType/main.go index dcb4d6f035e..3e404ab0da9 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EntityTypesClient/UpdateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/CancelOperation/main.go index 1d64d3f7427..41f1cc1cf3f 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/CreateEnvironment/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/CreateEnvironment/main.go index dfb304d4390..d1cb7634ef7 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/CreateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/CreateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/DeleteEnvironment/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/DeleteEnvironment/main.go index ab05bf68369..703e6b3cc49 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/DeleteEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/DeleteEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetEnvironment/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetEnvironment/main.go index cf08baea10c..f0b41880f71 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetEnvironmentHistory/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetEnvironmentHistory/main.go index c9c6a792e34..f983965e837 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetEnvironmentHistory/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetEnvironmentHistory/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetLocation/main.go index 2573f4e067a..b55901dd5c3 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetOperation/main.go index f07ed721229..404623fea72 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListEnvironments/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListEnvironments/main.go index 7029935d4a3..4b6667b8831 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListEnvironments/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListEnvironments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListLocations/main.go index bd652421987..7acd6964c5b 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListOperations/main.go index 2a6ee988cf1..194d483bd31 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/UpdateEnvironment/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/UpdateEnvironment/main.go index 0d6f12f0650..04485b7e9f2 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/UpdateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/EnvironmentsClient/UpdateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/CancelOperation/main.go index 06b417cef66..3a840eaf7b7 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetFulfillment/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetFulfillment/main.go index 3fdd317408d..45eb5b1c51b 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetFulfillment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetFulfillment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetLocation/main.go index ac5ab092fbd..6dcbcc53dca 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetOperation/main.go index aef8f0e6a6c..20bbc48fa49 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/ListLocations/main.go index 02e6682df9d..2bd7a223790 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/ListOperations/main.go index 9040197301e..f45d1c00f1e 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/UpdateFulfillment/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/UpdateFulfillment/main.go index da75f8d2653..ed9052a2fe5 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/UpdateFulfillment/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/FulfillmentsClient/UpdateFulfillment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewFulfillmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/BatchDeleteIntents/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/BatchDeleteIntents/main.go index 34d12a79b0e..bccb9d1ad62 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/BatchDeleteIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/BatchDeleteIntents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/BatchUpdateIntents/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/BatchUpdateIntents/main.go index 82f43d0f51d..62b0455653b 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/BatchUpdateIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/BatchUpdateIntents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/CancelOperation/main.go index 8577d53305c..8a605e9eef7 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/CreateIntent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/CreateIntent/main.go index c7e37bafbda..85a3aec9eb9 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/CreateIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/CreateIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/DeleteIntent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/DeleteIntent/main.go index 041793d7e5b..3039497cb66 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/DeleteIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/DeleteIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetIntent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetIntent/main.go index 62d851c1b1a..69cb11ff236 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetLocation/main.go index 3e128cfe1a0..e215c068fc0 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetOperation/main.go index b94a710d370..6d7bf526458 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListIntents/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListIntents/main.go index 2949ffec82f..43df098d9f2 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListIntents/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListIntents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListLocations/main.go index b6706440ff9..b6dbf502ff9 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListOperations/main.go index ad6a3ce1eda..f575a7723f3 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/UpdateIntent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/UpdateIntent/main.go index 85fc5c8930a..85620e6b452 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/UpdateIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/IntentsClient/UpdateIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/CancelOperation/main.go index 0bb21a69e53..ebe07350796 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/CreateKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/CreateKnowledgeBase/main.go index 5155c3d78fe..ca86db78c31 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/CreateKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/CreateKnowledgeBase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/DeleteKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/DeleteKnowledgeBase/main.go index f8c42b8faec..79358229c1f 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/DeleteKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/DeleteKnowledgeBase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetKnowledgeBase/main.go index 88c5bea8be7..2f6ed7a0f55 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetKnowledgeBase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetLocation/main.go index 5b17a877c79..7ca3ca7d3fa 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetOperation/main.go index 50fe53744f9..871eae094b9 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListKnowledgeBases/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListKnowledgeBases/main.go index a10a7e5cdeb..506d148985e 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListKnowledgeBases/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListKnowledgeBases/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListLocations/main.go index 9cb6175bbfe..7254dae5e9e 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListOperations/main.go index 568ffd35769..4d5b4dfe1e9 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/UpdateKnowledgeBase/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/UpdateKnowledgeBase/main.go index bd5374bf02b..36856192ef6 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/UpdateKnowledgeBase/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/KnowledgeBasesClient/UpdateKnowledgeBase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewKnowledgeBasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/AnalyzeContent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/AnalyzeContent/main.go index 0b91642a38a..ab85162f560 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/AnalyzeContent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/AnalyzeContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CancelOperation/main.go index aff11dc6f84..48a5c929833 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CompileSuggestion/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CompileSuggestion/main.go index a565ad12cfa..ae397450b27 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CompileSuggestion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CompileSuggestion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CreateParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CreateParticipant/main.go index d75ecc80030..c4315aa0a77 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CreateParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/CreateParticipant/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetLocation/main.go index c06543d2eb4..b9b192df6a7 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetOperation/main.go index 539f58d4848..bdce46a7bec 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetParticipant/main.go index 49f60f5e6e3..43b6a816a81 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/GetParticipant/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListLocations/main.go index fd653e197a1..b81f5353d88 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListOperations/main.go index eac54732d3b..dc660257282 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListParticipants/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListParticipants/main.go index 8f77c3f7077..591c4722f8f 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListParticipants/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListParticipants/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListSuggestions/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListSuggestions/main.go index ccea2b850db..56a1390d731 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListSuggestions/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/ListSuggestions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/StreamingAnalyzeContent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/StreamingAnalyzeContent/main.go index fbbc65363c0..54b3c3d6f83 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/StreamingAnalyzeContent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/StreamingAnalyzeContent/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestArticles/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestArticles/main.go index 242d752d461..7a87fb7bd5c 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestArticles/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestArticles/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestFaqAnswers/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestFaqAnswers/main.go index 2d1e9e90f7b..c0c24a5eb27 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestFaqAnswers/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestFaqAnswers/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestSmartReplies/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestSmartReplies/main.go index 2072d10476e..f3231e44d78 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestSmartReplies/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/SuggestSmartReplies/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/UpdateParticipant/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/UpdateParticipant/main.go index 46203bd63e9..a3f2fb89416 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/UpdateParticipant/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/ParticipantsClient/UpdateParticipant/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewParticipantsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/CancelOperation/main.go index e4833a06a4f..1df144863f3 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go index 5d960d97031..15d5af65994 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go index 1e8ba5ded26..733e6fa0d67 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetLocation/main.go index 1b343169ef4..46e8322d186 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetOperation/main.go index b275edac118..2b612a0012d 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetSessionEntityType/main.go index 985bfed32e5..8b656af3bd6 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/GetSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListLocations/main.go index 986708bdfdc..ace123811e1 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListOperations/main.go index bfb12eadae2..cda181034a2 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go index 8db2d867bd1..ac6d143e151 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go index fc8b56db2b8..4002c9dfed1 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/CancelOperation/main.go index 95dfb80e548..179be16e001 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/DetectIntent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/DetectIntent/main.go index ecd4464db02..ac4bbdafed6 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/DetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/DetectIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/GetLocation/main.go index 375ee31f4fd..98ffbad7ef2 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/GetOperation/main.go index df995ed2165..4eebb2d3e82 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/ListLocations/main.go index 0bc7c24e157..bafac6f75c4 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/ListOperations/main.go index adb41677c8c..6e405544651 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/StreamingDetectIntent/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/StreamingDetectIntent/main.go index 015e3d827f8..59449241bba 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/StreamingDetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/SessionsClient/StreamingDetectIntent/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/CancelOperation/main.go index f5f949902d2..725a3f947e7 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/CreateVersion/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/CreateVersion/main.go index b00369a8eb2..1f336e8f6b2 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/CreateVersion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/CreateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/DeleteVersion/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/DeleteVersion/main.go index 06968e79223..be4def223a1 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/DeleteVersion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/DeleteVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetLocation/main.go index b7aab5d5b46..08667bda08b 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetOperation/main.go index 258f8e5032c..81a28cebca7 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetVersion/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetVersion/main.go index 70d9c6f27f4..80b4a45b600 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetVersion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/GetVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListLocations/main.go index 9eef0eb43ed..900041c82eb 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListOperations/main.go index 968dfde2de5..36ef3104678 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListVersions/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListVersions/main.go index 80776a9380e..36b305acaa6 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListVersions/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/ListVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/UpdateVersion/main.go b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/UpdateVersion/main.go index 5a6ebb8da9c..16ac4e1c808 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/UpdateVersion/main.go +++ b/internal/generated/snippets/dialogflow/apiv2beta1/VersionsClient/UpdateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dialogflow.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/apiv2beta1/snippet_metadata.google.cloud.dialogflow.v2beta1.json b/internal/generated/snippets/dialogflow/apiv2beta1/snippet_metadata.google.cloud.dialogflow.v2beta1.json index c528ef5dbef..0eadc473da7 100644 --- a/internal/generated/snippets/dialogflow/apiv2beta1/snippet_metadata.google.cloud.dialogflow.v2beta1.json +++ b/internal/generated/snippets/dialogflow/apiv2beta1/snippet_metadata.google.cloud.dialogflow.v2beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dialogflow/apiv2beta1", - "version": "1.12.1", + "version": "1.13.0", "language": "GO", "apis": [ { @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -96,7 +96,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -142,7 +142,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -923,7 +923,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -969,7 +969,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1015,7 +1015,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1060,7 +1060,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1106,7 +1106,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1151,7 +1151,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1196,7 +1196,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1242,7 +1242,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1288,7 +1288,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1334,7 +1334,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1380,7 +1380,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1426,7 +1426,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1472,7 +1472,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1518,7 +1518,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1563,7 +1563,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1609,7 +1609,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1655,7 +1655,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1700,7 +1700,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1746,7 +1746,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1792,7 +1792,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1838,7 +1838,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1884,7 +1884,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1930,7 +1930,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1976,7 +1976,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2022,7 +2022,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2068,7 +2068,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2114,7 +2114,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2159,7 +2159,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2205,7 +2205,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2251,7 +2251,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2297,7 +2297,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2343,7 +2343,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2389,7 +2389,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2435,7 +2435,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2481,7 +2481,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2527,7 +2527,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2573,7 +2573,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2618,7 +2618,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2664,7 +2664,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2710,7 +2710,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -2756,7 +2756,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2802,7 +2802,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2848,7 +2848,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2894,7 +2894,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2940,7 +2940,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2986,7 +2986,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3032,7 +3032,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3078,7 +3078,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3124,7 +3124,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3170,7 +3170,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3216,7 +3216,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3262,7 +3262,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3308,7 +3308,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3354,7 +3354,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3399,7 +3399,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3445,7 +3445,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3490,7 +3490,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3536,7 +3536,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3582,7 +3582,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3628,7 +3628,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3674,7 +3674,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3720,7 +3720,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3766,7 +3766,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3812,7 +3812,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3857,7 +3857,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3903,7 +3903,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3948,7 +3948,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3994,7 +3994,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4040,7 +4040,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4086,7 +4086,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4132,7 +4132,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4178,7 +4178,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4224,7 +4224,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4270,7 +4270,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4316,7 +4316,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4361,7 +4361,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4407,7 +4407,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4453,7 +4453,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4499,7 +4499,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4545,7 +4545,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4591,7 +4591,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4637,7 +4637,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4683,7 +4683,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -4729,7 +4729,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -4774,7 +4774,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4820,7 +4820,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4865,7 +4865,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4911,7 +4911,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4957,7 +4957,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5003,7 +5003,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5049,7 +5049,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5095,7 +5095,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5141,7 +5141,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5187,7 +5187,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5232,7 +5232,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5278,7 +5278,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5323,7 +5323,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5369,7 +5369,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5415,7 +5415,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5461,7 +5461,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5507,7 +5507,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5553,7 +5553,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5599,7 +5599,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5645,7 +5645,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5691,7 +5691,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5736,7 +5736,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5782,7 +5782,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5828,7 +5828,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5874,7 +5874,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5920,7 +5920,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5966,7 +5966,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6012,7 +6012,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6058,7 +6058,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6104,7 +6104,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6150,7 +6150,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6191,7 +6191,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] @@ -6237,7 +6237,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6283,7 +6283,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6329,7 +6329,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6375,7 +6375,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6420,7 +6420,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6466,7 +6466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6511,7 +6511,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6557,7 +6557,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6603,7 +6603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6649,7 +6649,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6695,7 +6695,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6741,7 +6741,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6787,7 +6787,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6833,7 +6833,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6878,7 +6878,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6924,7 +6924,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6970,7 +6970,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7016,7 +7016,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7062,7 +7062,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7108,7 +7108,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7149,7 +7149,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] @@ -7194,7 +7194,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7240,7 +7240,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7285,7 +7285,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7331,7 +7331,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7377,7 +7377,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7423,7 +7423,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7469,7 +7469,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7515,7 +7515,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7561,7 +7561,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7607,7 +7607,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CancelOperation/main.go index 5838c255f72..ff4a6d9abed 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 b52c284e810..dab31dc2487 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CreateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/CreateAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 db5e665c18b..52e0310b4e2 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/DeleteAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/DeleteAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 f08cf1361cb..f5be35ffa5b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ExportAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ExportAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 d605053d0bb..1ffc926f00b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 3a36c1004e8..5a57f737f8f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgentValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetAgentValidationResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetLocation/main.go index 5fc411f1fe9..e774e62b25b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetOperation/main.go index b45e7978c4d..1acaf0ae082 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 3bea7a1c645..281701a17ba 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListAgents/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListAgents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListLocations/main.go index 04629ec8ca0..48fd32ad31f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListOperations/main.go index 34a7f2edd67..64692e9e0e8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 3bc589f54c1..db95ea3ac7b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/RestoreAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/RestoreAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 cb3642a6cfb..3c87c2aa2ef 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/UpdateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/UpdateAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 151dc61d7f1..d7964dc191d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ValidateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/AgentsClient/ValidateAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/CancelOperation/main.go index 5fd50e2467a..244351ed090 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetChangelog/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetChangelog/main.go index e09db8c1cea..951aaf32d5a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetChangelog/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetChangelog/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetLocation/main.go index 43275c415f9..c091d9862d6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetOperation/main.go index 19e2c4abf31..e84709fb4e6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListChangelogs/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListChangelogs/main.go index 827f8f0e213..6e09d5eebbd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListChangelogs/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListChangelogs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListLocations/main.go index 7e30e9ea1c1..70e48d40737 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListOperations/main.go index 2319b9f90d5..54d350c60f8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ChangelogsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/CancelOperation/main.go index b95a5ef61df..2017c0f1d38 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetDeployment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetDeployment/main.go index dcd832c0cc9..f20dbcf34cd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetDeployment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetLocation/main.go index c21631a842c..9482598fb85 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetOperation/main.go index e9c8c0f88a5..6558cfdda17 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListDeployments/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListDeployments/main.go index 8246c44380d..d176d132c88 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListDeployments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListDeployments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListLocations/main.go index aef90968647..08d37da6289 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListOperations/main.go index 8e134096144..7fec16150e5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/DeploymentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CancelOperation/main.go index 7eb9057ef55..4058be753fd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 375b52dd0b3..15ea5e7066e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CreateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/CreateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 031cf864887..6f78548893b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/DeleteEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 30cbc9d8073..9dcd9fcd02f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetLocation/main.go index c0049318eb8..4d8db16212d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetOperation/main.go index e21d11f2187..c2408b94920 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 c4bf2fb5090..83b1008e977 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListLocations/main.go index fec19df27be..e539a80e500 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListOperations/main.go index c5a1cce8acb..2e70a23235c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 6ee72b68520..1db533306e1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EntityTypesClient/UpdateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CancelOperation/main.go index 68ac9636488..7e582000b9a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 17d0575a26d..c8f55316baf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CreateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/CreateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 46cf0738c31..b9bc62e7c5a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeleteEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeleteEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeployFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeployFlow/main.go index 33435926009..96c2bb8551a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeployFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/DeployFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 c8b1310be82..f499d3b976c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetLocation/main.go index f977a34f383..911addd1803 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetOperation/main.go index ba24e90c0a3..89275e8574c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListContinuousTestResults/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListContinuousTestResults/main.go index 6262be1a6c4..1ee92187475 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListContinuousTestResults/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListContinuousTestResults/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 852e434a5f2..bd240b52509 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListEnvironments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListEnvironments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListLocations/main.go index 05284b17528..e124fa05502 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListOperations/main.go index 8b46cf12935..f49912cec97 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 4ee17f43ef5..e674d624d26 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/LookupEnvironmentHistory/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/LookupEnvironmentHistory/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/RunContinuousTest/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/RunContinuousTest/main.go index c64c4b784b6..887b28da10a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/RunContinuousTest/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/RunContinuousTest/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 23e2996cb88..46f9e318950 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/UpdateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/EnvironmentsClient/UpdateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CancelOperation/main.go index 9520276f7da..dea51567aa9 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 50c94acce04..bcb81f3ddc9 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CreateExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/CreateExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 67a15a8d2a4..4262e5932aa 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/DeleteExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/DeleteExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 3d72a397cce..d66118c57c0 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetLocation/main.go index eac5eecacd9..f651c34dc59 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetOperation/main.go index 0388fe5d8a3..d3261405f9e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 28a229837a8..bc26737cdeb 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListExperiments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListExperiments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListLocations/main.go index e1405f457a9..937f33ad2fc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListOperations/main.go index 608f2d2d26e..bca9225e47f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 3a495c2a26a..4b6b9ca0e9c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StartExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StartExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 d35cf037d83..4a905837e89 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StopExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/StopExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 092903b267b..ed65f1adb3c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/UpdateExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/ExperimentsClient/UpdateExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CancelOperation/main.go index 3050a3273f3..f33127ab29b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 07a7ff32787..cab6511eace 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CreateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/CreateFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 1bfe09d1c50..ea4458b30bc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/DeleteFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/DeleteFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ExportFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ExportFlow/main.go index b715388561b..ebcd86c2880 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ExportFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ExportFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 a6ef15edae0..e0875784355 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 112befcc2a7..e4a710db366 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlowValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetFlowValidationResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetLocation/main.go index 9b3e95fa324..d331d73c0dc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetOperation/main.go index a0132ec1048..786338fe302 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ImportFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ImportFlow/main.go index f7fd5b034c7..5c5bb72860c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ImportFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ImportFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 79505a671a5..5107de9c537 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListFlows/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListFlows/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListLocations/main.go index 5bae0986efe..4f336bc64fc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListOperations/main.go index 14f5fe4307b..35d98052ba7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 dc2bd9c4ece..6e3de224d9e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/TrainFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/TrainFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 3ead0fc35fb..6229aa56db4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/UpdateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/UpdateFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 ba58a4b89c4..e0a409824a5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ValidateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/FlowsClient/ValidateFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CancelOperation/main.go index 05891ae1dd2..a63a7a38187 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 0fb9c47ff10..aa99cecbab1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CreateIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/CreateIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 d1c0eb116a6..fb7ff313c36 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/DeleteIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/DeleteIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 bf1f4a31c6d..4c2c3401ba9 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetLocation/main.go index 4f9cae5fa18..1261b7849ae 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetOperation/main.go index 31fefaa0654..91e560ca093 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 8ee825b5e9e..9de34407bae 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListIntents/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListIntents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListLocations/main.go index dcff53f87ac..3ff334daf3b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListOperations/main.go index 2e29e806355..13dd0592ac5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 12eee828df2..13a13ba41cc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/UpdateIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/IntentsClient/UpdateIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CancelOperation/main.go index 0d268eb56f5..95e5d97a4ea 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 26c9f7ef460..661e6a302d6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CreatePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/CreatePage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 7cfe36f70a9..a7657efa57d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/DeletePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/DeletePage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetLocation/main.go index 6c132c958aa..ba07ace82af 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetOperation/main.go index 1247fc218f2..6162fa2dec8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 814c120b1a5..3bbb02ffdbf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetPage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/GetPage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListLocations/main.go index 06ca04da48e..16a1ecfeb45 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListOperations/main.go index 1429eda371b..43c0589a344 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 4e7419af9d6..b67ae60a1e3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListPages/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/ListPages/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 49b6cfd60cb..24cd07c7f2b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/UpdatePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/PagesClient/UpdatePage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CancelOperation/main.go index 1567cb9647d..2b3199731c6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 c350f06167d..d5fd6e46f33 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CreateSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/CreateSecuritySettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 9043b777b60..fd9a0a8896b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/DeleteSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/DeleteSecuritySettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetLocation/main.go index 00f2818d4f4..39bd729281c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetOperation/main.go index 8a52744aacd..7cc65dd0be9 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 d580d1aee2e..fce6e1edb1a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/GetSecuritySettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListLocations/main.go index 014f8a39780..1c42df428f9 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListOperations/main.go index f274c0096ee..82fb0303db5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 0a8646623e0..4a395f6c292 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/ListSecuritySettings/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 c9c9c9c665d..dade5b3362d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/UpdateSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SecuritySettingsClient/UpdateSecuritySettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CancelOperation/main.go index a1d72565f88..9c983d84a91 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 594a85ba658..4a45c4592aa 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CreateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/CreateSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 487631a043f..a248c3697b1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/DeleteSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/DeleteSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetLocation/main.go index 870a929da55..672aedc5c45 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetOperation/main.go index dc4489b5660..7d210f3769f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 9350523fc76..1ddbf38363e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/GetSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListLocations/main.go index b8c3e4a898b..004c61aac00 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListOperations/main.go index 16a89156aca..49d9b4f3e66 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 50b31c11e08..5be3629a7dc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListSessionEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/ListSessionEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 10ce795759f..3d4905a6c35 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/UpdateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionEntityTypesClient/UpdateSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/CancelOperation/main.go index da7d6319e6d..8ac60b0fded 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 5d05dd8f6e0..932e7deeef2 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/DetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/DetectIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 50136fb607b..1599ec9a30c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/FulfillIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/FulfillIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/GetLocation/main.go index a20cf873393..205e6f9a092 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/GetOperation/main.go index ad7bc64644d..5174465812a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/ListLocations/main.go index 020f0bec287..735eef285a2 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/ListOperations/main.go index 84fc41655e8..cf6f8f13987 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 23d09e7b13f..10fc6a61e56 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/MatchIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/MatchIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 25b43205db6..e10efea3ca9 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/StreamingDetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/SessionsClient/StreamingDetectIntent/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 aced0ed9fec..7136be20f53 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchDeleteTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchDeleteTestCases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 87340b3d365..bf20839a23d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchRunTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/BatchRunTestCases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 459a77cab93..16649d4564a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CalculateCoverage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CalculateCoverage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CancelOperation/main.go index 209919ccfe8..b0055c87871 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 28d2c07a203..3aabad0d55a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CreateTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/CreateTestCase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 90f21f3d7e7..1a02dc4f23b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ExportTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ExportTestCases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetLocation/main.go index b195b315113..79671e9a250 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetOperation/main.go index 04312310ffa..99be2790446 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 00ec7f1d287..dd79ed9d212 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 ff56f0ec6bc..85d1d8cafa1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCaseResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/GetTestCaseResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 69ce1f7732b..9b5ebbe4a40 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ImportTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ImportTestCases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListLocations/main.go index 094d6003dbe..6a14f73193c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListOperations/main.go index 928ab6779bd..937a55c44bd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 9135f8b1522..c214197c458 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCaseResults/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCaseResults/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 948f70b626b..9e5b3335006 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/ListTestCases/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 487716c032e..8dead6dff1a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/RunTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/RunTestCase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 7871a785383..df134f51c6e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/UpdateTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TestCasesClient/UpdateTestCase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CancelOperation/main.go index 7097ceba4b6..8754d8412ae 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 335d90a829e..826eacc2702 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 2c0056db3ff..54239cd17c5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetLocation/main.go index 01ddb9d68b5..43498e62a49 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetOperation/main.go index 0301ff69b4e..fc355e8edcf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 9c6de4ab36a..380b39d24c1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListLocations/main.go index ea2eeeeb357..81860ef3c47 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListOperations/main.go index 2eb5189a221..48ca0e17089 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 8a0780fa1d2..52437e8e26e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 22d8d105068..2e5976d5db8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CancelOperation/main.go index e772aa45e56..9a3db88a329 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CompareVersions/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CompareVersions/main.go index 91ff671dee2..5e36c1c0c2b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CompareVersions/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CompareVersions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 496ea49923f..a295313660f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CreateVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/CreateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 1fef9dbccf3..9e040eee51c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/DeleteVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/DeleteVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetLocation/main.go index e79489baba7..6d519a43f39 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetOperation/main.go index 4d51bf9165d..dfbb8c35115 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 4254167f2fe..909e5c42223 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/GetVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListLocations/main.go index b17dd327186..6e436adee0c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListOperations/main.go index 420444cd440..a0061c0408a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 4c56ee88acd..6a408d95f41 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListVersions/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/ListVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 faf3c1502e3..d14c2766bbb 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/LoadVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/LoadVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 c26de90ec6c..0e0b77f1b0e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/UpdateVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/VersionsClient/UpdateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CancelOperation/main.go index 152c4c414f8..dd979978974 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 fe138a33d89..3dc95b4b5dc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CreateWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/CreateWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 9c868be5d1b..0d8ae9a349c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/DeleteWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/DeleteWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetLocation/main.go index 561258b7daf..76afa135b6d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetOperation/main.go index 8aeb0c3da29..10f3c9189f5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 0a16373d28d..939fd4811f4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/GetWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListLocations/main.go index 80aacc2ae1a..d9e0328392b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListOperations/main.go index 1e16883a3a6..9e38a5a4b16 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 0fdfd220e16..ba73e3f6ba7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListWebhooks/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/ListWebhooks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 3f8e36ced5b..d2bc8e8d9cf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/UpdateWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3/WebhooksClient/UpdateWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3/snippet_metadata.google.cloud.dialogflow.cx.v3.json b/internal/generated/snippets/dialogflow/cx/apiv3/snippet_metadata.google.cloud.dialogflow.cx.v3.json index 7e84ccaabdc..bb4ae07580f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3/snippet_metadata.google.cloud.dialogflow.cx.v3.json +++ b/internal/generated/snippets/dialogflow/cx/apiv3/snippet_metadata.google.cloud.dialogflow.cx.v3.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dialogflow/cx/apiv3", - "version": "1.12.1", + "version": "1.13.0", "language": "GO", "apis": [ { @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -142,7 +142,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -923,7 +923,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -969,7 +969,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1014,7 +1014,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1060,7 +1060,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1106,7 +1106,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1152,7 +1152,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1198,7 +1198,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1244,7 +1244,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1290,7 +1290,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1335,7 +1335,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1381,7 +1381,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1426,7 +1426,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1472,7 +1472,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1518,7 +1518,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1564,7 +1564,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1610,7 +1610,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1656,7 +1656,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1702,7 +1702,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1748,7 +1748,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1793,7 +1793,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1839,7 +1839,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1884,7 +1884,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1930,7 +1930,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1976,7 +1976,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2022,7 +2022,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2068,7 +2068,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2114,7 +2114,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2160,7 +2160,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2206,7 +2206,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2252,7 +2252,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2298,7 +2298,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2344,7 +2344,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2390,7 +2390,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2435,7 +2435,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2481,7 +2481,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2526,7 +2526,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2572,7 +2572,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2618,7 +2618,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2664,7 +2664,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2710,7 +2710,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2756,7 +2756,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2802,7 +2802,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2848,7 +2848,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2894,7 +2894,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2940,7 +2940,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2985,7 +2985,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3031,7 +3031,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3076,7 +3076,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3122,7 +3122,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3168,7 +3168,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3214,7 +3214,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3260,7 +3260,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3306,7 +3306,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3352,7 +3352,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3398,7 +3398,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3444,7 +3444,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3490,7 +3490,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3536,7 +3536,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3582,7 +3582,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3628,7 +3628,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3673,7 +3673,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3719,7 +3719,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3764,7 +3764,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3810,7 +3810,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3856,7 +3856,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3902,7 +3902,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3948,7 +3948,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3994,7 +3994,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4040,7 +4040,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4086,7 +4086,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4131,7 +4131,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4177,7 +4177,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4222,7 +4222,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4268,7 +4268,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4314,7 +4314,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4360,7 +4360,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4406,7 +4406,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4452,7 +4452,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4498,7 +4498,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4544,7 +4544,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4589,7 +4589,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4635,7 +4635,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4680,7 +4680,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4726,7 +4726,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4772,7 +4772,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4818,7 +4818,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4864,7 +4864,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4910,7 +4910,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4956,7 +4956,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5002,7 +5002,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5047,7 +5047,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5093,7 +5093,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5138,7 +5138,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5184,7 +5184,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5230,7 +5230,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5276,7 +5276,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5322,7 +5322,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5368,7 +5368,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5414,7 +5414,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5460,7 +5460,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5505,7 +5505,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5551,7 +5551,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5597,7 +5597,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5643,7 +5643,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5689,7 +5689,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5735,7 +5735,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5781,7 +5781,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5827,7 +5827,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5868,7 +5868,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] @@ -5913,7 +5913,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5959,7 +5959,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -6005,7 +6005,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6050,7 +6050,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6096,7 +6096,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6142,7 +6142,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -6188,7 +6188,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6234,7 +6234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6280,7 +6280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6326,7 +6326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6372,7 +6372,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -6418,7 +6418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6464,7 +6464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6510,7 +6510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6556,7 +6556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6602,7 +6602,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -6648,7 +6648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6693,7 +6693,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6739,7 +6739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6784,7 +6784,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6830,7 +6830,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6876,7 +6876,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6922,7 +6922,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6968,7 +6968,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7014,7 +7014,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7060,7 +7060,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7106,7 +7106,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7151,7 +7151,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7197,7 +7197,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7243,7 +7243,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -7288,7 +7288,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7334,7 +7334,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7380,7 +7380,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7426,7 +7426,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7472,7 +7472,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7518,7 +7518,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7564,7 +7564,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7610,7 +7610,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7656,7 +7656,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7701,7 +7701,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7747,7 +7747,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7792,7 +7792,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7838,7 +7838,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7884,7 +7884,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7930,7 +7930,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7976,7 +7976,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8022,7 +8022,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8068,7 +8068,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8114,7 +8114,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CancelOperation/main.go index c3841b1f6a6..491ffe2e2d7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 8682a873219..978d140afcf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CreateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/CreateAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 8fa230b2de6..bc1fada73c0 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/DeleteAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/DeleteAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 2fb7e4bc590..5c377292b46 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ExportAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ExportAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 1c66914c4d1..f9327a18232 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 f5d50013d03..76ac9f19e3c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgentValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetAgentValidationResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetLocation/main.go index ff84436d58e..5ba298166b3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetOperation/main.go index 5867b85250e..f154462d8c7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 a68a8ac299f..16731f3a234 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListAgents/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListAgents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListLocations/main.go index 72939600676..babb65f772d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListOperations/main.go index 9f9b5be466d..8d70b1424f2 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 3a867570327..ef489a2df04 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/RestoreAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/RestoreAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 94ced51f3bc..16fb03df43b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/UpdateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/UpdateAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. 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 3ffc3d05527..cf99d8cb5ef 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ValidateAgent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/AgentsClient/ValidateAgent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewAgentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/CancelOperation/main.go index 093b5f0b56d..cdd07a784f0 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetChangelog/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetChangelog/main.go index 9c6ab81f356..4c2e709e21d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetChangelog/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetChangelog/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetLocation/main.go index 89de2993785..21192ad4cdc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetOperation/main.go index c8d653e8e6e..5a7acad7bfe 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListChangelogs/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListChangelogs/main.go index 30f56276da7..403fb969ff1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListChangelogs/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListChangelogs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListLocations/main.go index a1f759ddd06..fd2e881cc24 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListOperations/main.go index 18a74eee477..1547188f69b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ChangelogsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewChangelogsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/CancelOperation/main.go index d543e678b98..579aa6de25f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetDeployment/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetDeployment/main.go index b14fbd5ee71..aa9c334663a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetDeployment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetLocation/main.go index 9b097377414..f6850ba3cbd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetOperation/main.go index a7eb2fb8fcc..34e73938b2b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListDeployments/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListDeployments/main.go index 245f7b012a3..aefd13d6a96 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListDeployments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListDeployments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListLocations/main.go index 79806a8eee5..8db45497f16 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListOperations/main.go index b9938d12063..da1c0051e4b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/DeploymentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CancelOperation/main.go index 42ab63a33f5..d6e837eec78 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 1927a3215e9..e9a533d76a3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CreateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/CreateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 05ca8f077a0..f17ebaaaebc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/DeleteEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/DeleteEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 9238f8047e0..3c05c7c5bf0 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetLocation/main.go index fda6d700fbd..909aed7414b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetOperation/main.go index 44192a6d50f..eec01b1405a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 9c854537f92..4df5ee591fb 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListLocations/main.go index 48f8783e642..198bbdc5bcc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListOperations/main.go index 7657299f350..bb9355b37c4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 cdd51c4df45..ae50dba9e41 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/UpdateEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EntityTypesClient/UpdateEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CancelOperation/main.go index 9654f106ada..23e84378897 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 44308fd52aa..4a871e80167 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CreateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/CreateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 25b46b8ca05..2a76e6c92da 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeleteEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeleteEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeployFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeployFlow/main.go index 41d2b4ecf61..e0428a7f966 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeployFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/DeployFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 392c0df9067..f9ad998776f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetLocation/main.go index 873468fed3d..48af1f19f52 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetOperation/main.go index 837cdbaf5d7..3ae2001ed51 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListContinuousTestResults/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListContinuousTestResults/main.go index c3b44f3c664..573a9007f00 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListContinuousTestResults/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListContinuousTestResults/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 7152e4f1386..e6ada223828 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListEnvironments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListEnvironments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListLocations/main.go index de3ac58d18b..5b9f7bd2a6d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListOperations/main.go index 3860d62bc30..ba0ac6e2d16 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 888b10ff8b5..e9def290a78 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/LookupEnvironmentHistory/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/LookupEnvironmentHistory/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/RunContinuousTest/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/RunContinuousTest/main.go index bed5f0eb5d5..39429742b8d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/RunContinuousTest/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/RunContinuousTest/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. 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 888c8269afa..c40618b4456 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/UpdateEnvironment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/EnvironmentsClient/UpdateEnvironment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CancelOperation/main.go index 0352c88bc60..b9cc3f42c9c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 2bf81fa1d04..e7eba5bda15 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CreateExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/CreateExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 a77409ff5c6..4a6242dba67 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/DeleteExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/DeleteExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 55fa6fbe838..fb3916a15bb 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetLocation/main.go index 3427791443d..e0c40e0617f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetOperation/main.go index 7c1096e4b3d..09744f2778a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 12133a774a9..71ff68c897a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListExperiments/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListExperiments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListLocations/main.go index 1a0aa163acc..8a05de0448f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListOperations/main.go index afdbfed56c4..8e8edf87cac 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 8811158ac6d..a3f41e64f1b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StartExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StartExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 0cd8cb2494c..c04389e16ab 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StopExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/StopExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. 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 e91b9f905c7..fea2657358e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/UpdateExperiment/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/ExperimentsClient/UpdateExperiment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewExperimentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CancelOperation/main.go index b8aa1c86d40..fe13d01ba5d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 73ebcc4e7ee..e0bf9b611bb 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CreateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/CreateFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 732f4dfebf6..23914c319e4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/DeleteFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/DeleteFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ExportFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ExportFlow/main.go index a91b351c4e3..b0a92936971 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ExportFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ExportFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 c2f5c76ec9b..22bbb67fb81 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 066b4aa6e91..47c8314ada8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlowValidationResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetFlowValidationResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetLocation/main.go index 5f482699d78..ba25c3d4705 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetOperation/main.go index ec730a6cdae..da38481910a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ImportFlow/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ImportFlow/main.go index e5e0cdda22a..af73bb5e713 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ImportFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ImportFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 bea076f2cd7..55bf80c81bb 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListFlows/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListFlows/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListLocations/main.go index d36a9200720..a1bf5bea931 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListOperations/main.go index b381154d616..bc62a20f81a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 bf086de583a..02acb42bb4a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/TrainFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/TrainFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 4109de889e9..1e096af1171 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/UpdateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/UpdateFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. 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 e0f2fa26c6d..6685e46b667 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ValidateFlow/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/FlowsClient/ValidateFlow/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewFlowsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CancelOperation/main.go index 956af8cab06..f96df542578 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 3babe1bfc83..9c1435b0cf1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CreateIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/CreateIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 96ec0d5826d..925d8a55243 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/DeleteIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/DeleteIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 133bc04b0d0..4ecdb9361c4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetLocation/main.go index 64334c49d03..78d59efa5c4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetOperation/main.go index ed390d139c9..38b507cba59 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 3e2f4866c6d..c2ecc3e6829 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListIntents/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListIntents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListLocations/main.go index 1eb7f4e4397..5d478b2e397 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListOperations/main.go index 7057bfb29ae..6eaa9376730 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. 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 4359fb109ed..abab5edd5fc 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/UpdateIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/IntentsClient/UpdateIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewIntentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CancelOperation/main.go index c539c03d132..5e7676340db 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 32c57071102..e73b3de0902 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CreatePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/CreatePage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 30a06042bd0..fba30795ba3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/DeletePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/DeletePage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetLocation/main.go index d3b5f7b15a0..b33fd5a558a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetOperation/main.go index 7cdf0be05cf..9b1d78ed2cd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 631bfc8dbeb..16bcfd9e439 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetPage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/GetPage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListLocations/main.go index 410aca1f151..14d1bb2f35b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListOperations/main.go index 381fcc94e0f..dd715de6dcf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 bbb6780823c..8511b300b0a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListPages/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/ListPages/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. 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 3369176287d..1241e155a65 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/UpdatePage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/PagesClient/UpdatePage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewPagesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CancelOperation/main.go index 9fbafc6dfa3..c101d0bc332 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 0272a196328..fcb356875d1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CreateSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/CreateSecuritySettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 d5184a9c540..cada68daaac 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/DeleteSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/DeleteSecuritySettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetLocation/main.go index aa33a86fffe..c201bb3255f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetOperation/main.go index c87890b1813..8adabb0486f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 66d941cacc6..68728c79319 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/GetSecuritySettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListLocations/main.go index bfc32fd0181..236331ef1c8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListOperations/main.go index 58c57ed7c51..b887e07b135 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 2875b1e0ba6..2be8157eba4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/ListSecuritySettings/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. 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 c4f2f2719d6..a9114b6b4b0 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/UpdateSecuritySettings/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SecuritySettingsClient/UpdateSecuritySettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSecuritySettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CancelOperation/main.go index 8d52df89ff0..047a50f2b25 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 5c5476a6fd6..d3759bddc2a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/CreateSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 005ac0ed586..fbe6f3519bd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/DeleteSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetLocation/main.go index bd1fcca0693..55b3a4b93a5 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetOperation/main.go index 59b8cc3c81f..c4da6be8a01 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 e29eeec6028..3ba6b2aec15 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/GetSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListLocations/main.go index 5f4291dd9f4..4b66d902db6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListOperations/main.go index e87457a08da..7b34ceb100a 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 28910730261..bbe439bd6c7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/ListSessionEntityTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. 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 5edcc2eaadc..f01f3ee6509 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionEntityTypesClient/UpdateSessionEntityType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionEntityTypesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/CancelOperation/main.go index ba864cf60ba..db4227a0582 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 66146334956..22b7a409767 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/DetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/DetectIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 f4c797b662c..ae6b958d0d9 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/FulfillIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/FulfillIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/GetLocation/main.go index cc763168102..a6c96b12a73 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/GetOperation/main.go index 1c93d7055db..c80425579aa 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/ListLocations/main.go index 7a7185cdd68..472aaf7157e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/ListOperations/main.go index 4e647c1597b..871230b40da 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 f7d07138dc7..530c7cc1bd8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/MatchIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/MatchIntent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 5a2eb4e91aa..9fab3ccdedf 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/StreamingDetectIntent/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/SessionsClient/StreamingDetectIntent/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewSessionsClient(ctx) if err != nil { // TODO: Handle error. 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 79711afefbd..a08c9f01ab8 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchDeleteTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchDeleteTestCases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 680bc0ac14d..1d3c7015928 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchRunTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/BatchRunTestCases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 ca8d37bec7b..8866171da97 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CalculateCoverage/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CalculateCoverage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CancelOperation/main.go index 78e427254fc..cf16e137cbd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 8abbe39cb60..dbd6fa216df 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CreateTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/CreateTestCase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 7e221a3663b..a8007de1b35 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ExportTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ExportTestCases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetLocation/main.go index fa0a18b2013..3163f951e5d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetOperation/main.go index e790f2e5dc0..2993643bd96 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 c2766fca295..27181d90e55 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 d340087ed42..6024f9964f3 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCaseResult/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/GetTestCaseResult/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 b464f50b8b2..5c7f455902b 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ImportTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ImportTestCases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListLocations/main.go index f07224836ca..213f5346d77 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListOperations/main.go index 7ba9387a9db..cecc9667ff7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 4fb6b67f797..3882c3ef26e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCaseResults/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCaseResults/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 1198f4d2f0d..d99a734c108 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCases/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/ListTestCases/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 6e41a847f14..90d55a2c7db 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/RunTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/RunTestCase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. 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 c8fa7ea69e1..b28a11969ec 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/UpdateTestCase/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TestCasesClient/UpdateTestCase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTestCasesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CancelOperation/main.go index 7528d43d766..833f57ee9c4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 2a346d4e1f5..b4036f9aaf1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/CreateTransitionRouteGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 fd4e0158e82..abf3e884880 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/DeleteTransitionRouteGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetLocation/main.go index e661648e755..ec3ed539806 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetOperation/main.go index 191b38f9775..334c6b39c71 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 40d6c8ab21f..af25ece55bd 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/GetTransitionRouteGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListLocations/main.go index 0b822b085be..89143b3f4da 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListOperations/main.go index 43c7b8a9afe..ec23008e099 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 bca8d77423d..fe25495e3a0 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/ListTransitionRouteGroups/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. 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 f35642e7330..208db0eb0ef 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/TransitionRouteGroupsClient/UpdateTransitionRouteGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewTransitionRouteGroupsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CancelOperation/main.go index 235e8c50b8e..473c726124c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CompareVersions/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CompareVersions/main.go index ef8b9889eba..5183c43d4e6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CompareVersions/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CompareVersions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 68fd531b9ee..0178a5d6e60 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CreateVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/CreateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 b2e6e972490..ccf795cae24 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/DeleteVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/DeleteVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetLocation/main.go index 9959360734e..58d0339a1b1 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetOperation/main.go index 0cb065ce0b5..4eefc4d52ad 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 7746c119a77..880173b53c6 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/GetVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListLocations/main.go index 359153f7bc7..283e9c4b675 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListOperations/main.go index a43291c6d51..75f57b57242 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 23af792005e..637805e741e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListVersions/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/ListVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 6ab75889bdd..1dd61dfd23c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/LoadVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/LoadVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. 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 00a40d4c269..63ab3818ed4 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/UpdateVersion/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/VersionsClient/UpdateVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CancelOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CancelOperation/main.go index 1129285e3ec..9741ec06de7 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CancelOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 20e2b3b0d2b..777dad87a5f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CreateWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/CreateWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 f221bff568e..3c592de080c 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/DeleteWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/DeleteWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetLocation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetLocation/main.go index 07b444d3785..ca9024016b2 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetLocation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetOperation/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetOperation/main.go index 5bfa6c9efd4..e92b4414556 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetOperation/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 5b07191fa55..75456745c8d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/GetWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListLocations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListLocations/main.go index 9d0279bd417..f886a37836d 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListLocations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListOperations/main.go b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListOperations/main.go index 00313d09944..8d5cc49345e 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListOperations/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 62a36011e23..0b20e1e5093 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListWebhooks/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/ListWebhooks/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. 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 29df91a6197..82c82175299 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/UpdateWebhook/main.go +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/WebhooksClient/UpdateWebhook/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := cx.NewWebhooksClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dialogflow/cx/apiv3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json b/internal/generated/snippets/dialogflow/cx/apiv3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json index 7060eb5ee88..e6551488b8f 100644 --- a/internal/generated/snippets/dialogflow/cx/apiv3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json +++ b/internal/generated/snippets/dialogflow/cx/apiv3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dialogflow/cx/apiv3beta1", - "version": "1.12.1", + "version": "1.13.0", "language": "GO", "apis": [ { @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -142,7 +142,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -785,7 +785,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -831,7 +831,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -877,7 +877,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -923,7 +923,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -969,7 +969,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1014,7 +1014,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1060,7 +1060,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1106,7 +1106,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1152,7 +1152,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1198,7 +1198,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1244,7 +1244,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1290,7 +1290,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1335,7 +1335,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1381,7 +1381,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1426,7 +1426,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1472,7 +1472,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1518,7 +1518,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1564,7 +1564,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1610,7 +1610,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1656,7 +1656,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1702,7 +1702,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1748,7 +1748,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1793,7 +1793,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1839,7 +1839,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1884,7 +1884,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -1930,7 +1930,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1976,7 +1976,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2022,7 +2022,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2068,7 +2068,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2114,7 +2114,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2160,7 +2160,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2206,7 +2206,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2252,7 +2252,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2298,7 +2298,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2344,7 +2344,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2390,7 +2390,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -2435,7 +2435,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2481,7 +2481,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2526,7 +2526,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -2572,7 +2572,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2618,7 +2618,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2664,7 +2664,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2710,7 +2710,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2756,7 +2756,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2802,7 +2802,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -2848,7 +2848,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2894,7 +2894,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2940,7 +2940,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -2985,7 +2985,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3031,7 +3031,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3076,7 +3076,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3122,7 +3122,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3168,7 +3168,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3214,7 +3214,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3260,7 +3260,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3306,7 +3306,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3352,7 +3352,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -3398,7 +3398,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3444,7 +3444,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3490,7 +3490,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3536,7 +3536,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -3582,7 +3582,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3628,7 +3628,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3673,7 +3673,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3719,7 +3719,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3764,7 +3764,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -3810,7 +3810,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3856,7 +3856,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3902,7 +3902,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -3948,7 +3948,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -3994,7 +3994,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4040,7 +4040,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4086,7 +4086,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4131,7 +4131,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4177,7 +4177,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4222,7 +4222,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4268,7 +4268,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4314,7 +4314,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4360,7 +4360,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4406,7 +4406,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4452,7 +4452,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4498,7 +4498,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4544,7 +4544,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4589,7 +4589,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4635,7 +4635,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4680,7 +4680,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -4726,7 +4726,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4772,7 +4772,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4818,7 +4818,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -4864,7 +4864,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4910,7 +4910,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -4956,7 +4956,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5002,7 +5002,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5047,7 +5047,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5093,7 +5093,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5138,7 +5138,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5184,7 +5184,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5230,7 +5230,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5276,7 +5276,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5322,7 +5322,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5368,7 +5368,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5414,7 +5414,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5460,7 +5460,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5505,7 +5505,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5551,7 +5551,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5597,7 +5597,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5643,7 +5643,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5689,7 +5689,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5735,7 +5735,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5781,7 +5781,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -5827,7 +5827,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -5868,7 +5868,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] @@ -5913,7 +5913,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -5959,7 +5959,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -6005,7 +6005,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6050,7 +6050,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6096,7 +6096,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6142,7 +6142,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -6188,7 +6188,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6234,7 +6234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6280,7 +6280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6326,7 +6326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6372,7 +6372,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -6418,7 +6418,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6464,7 +6464,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6510,7 +6510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6556,7 +6556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -6602,7 +6602,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -6648,7 +6648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6693,7 +6693,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6739,7 +6739,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6784,7 +6784,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -6830,7 +6830,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6876,7 +6876,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6922,7 +6922,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -6968,7 +6968,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7014,7 +7014,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7060,7 +7060,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7106,7 +7106,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7151,7 +7151,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7197,7 +7197,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7243,7 +7243,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -7288,7 +7288,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7334,7 +7334,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7380,7 +7380,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7426,7 +7426,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7472,7 +7472,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7518,7 +7518,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7564,7 +7564,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -7610,7 +7610,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -7656,7 +7656,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7701,7 +7701,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7747,7 +7747,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7792,7 +7792,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -7838,7 +7838,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7884,7 +7884,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7930,7 +7930,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -7976,7 +7976,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8022,7 +8022,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8068,7 +8068,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -8114,7 +8114,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/dlp/apiv2/Client/ActivateJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/ActivateJobTrigger/main.go index 1b1e839ebf1..f7156586cd3 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ActivateJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ActivateJobTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/CancelDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/CancelDlpJob/main.go index 5694891a538..12b3ba57417 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CancelDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CancelDlpJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateDeidentifyTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateDeidentifyTemplate/main.go index d58e7afb7ac..1fe17d6ab5c 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateDeidentifyTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateDeidentifyTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateDlpJob/main.go index be36ea42498..ba2f1c5539c 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateDlpJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateInspectTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateInspectTemplate/main.go index 0d9222e472d..a9085177f6f 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateInspectTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateInspectTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateJobTrigger/main.go index 69b54b0fafe..0f2cb0f17fe 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateJobTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/CreateStoredInfoType/main.go b/internal/generated/snippets/dlp/apiv2/Client/CreateStoredInfoType/main.go index 128d6c11069..906c72d9eb7 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/CreateStoredInfoType/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/CreateStoredInfoType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeidentifyContent/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeidentifyContent/main.go index b1ae27ed4fb..444aac013cf 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeidentifyContent/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeidentifyContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteDeidentifyTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteDeidentifyTemplate/main.go index 7680e140fe9..721629afdea 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteDeidentifyTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteDeidentifyTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteDlpJob/main.go index ae111c8a97d..286400c8e30 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteDlpJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteInspectTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteInspectTemplate/main.go index 1f0873ee9fe..1d82b33a654 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteInspectTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteInspectTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteJobTrigger/main.go index dce1b9b52e0..b3155cd9482 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteJobTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/DeleteStoredInfoType/main.go b/internal/generated/snippets/dlp/apiv2/Client/DeleteStoredInfoType/main.go index 986b1df046d..0d3f7a9679f 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/DeleteStoredInfoType/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/DeleteStoredInfoType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/FinishDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/FinishDlpJob/main.go index 2c0ea6afdab..b6b6b50f322 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/FinishDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/FinishDlpJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetDeidentifyTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetDeidentifyTemplate/main.go index 04b992ebf46..2ec8ee80dbe 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetDeidentifyTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetDeidentifyTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetDlpJob/main.go index 28f58396f22..cc38799f385 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetDlpJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetInspectTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetInspectTemplate/main.go index 689c5663ad0..c469df82a37 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetInspectTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetInspectTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetJobTrigger/main.go index 1912aa1d7da..efc9573dbfb 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetJobTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/GetStoredInfoType/main.go b/internal/generated/snippets/dlp/apiv2/Client/GetStoredInfoType/main.go index ddbbe485c9a..8f7766104bb 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/GetStoredInfoType/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/GetStoredInfoType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/HybridInspectDlpJob/main.go b/internal/generated/snippets/dlp/apiv2/Client/HybridInspectDlpJob/main.go index 74b279d1535..a6f9e43f2e8 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/HybridInspectDlpJob/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/HybridInspectDlpJob/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/HybridInspectJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/HybridInspectJobTrigger/main.go index d82ae2a4db8..22dd52be9d3 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/HybridInspectJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/HybridInspectJobTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/InspectContent/main.go b/internal/generated/snippets/dlp/apiv2/Client/InspectContent/main.go index 302db547a27..52f66474c29 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/InspectContent/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/InspectContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListDeidentifyTemplates/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListDeidentifyTemplates/main.go index c75fa9bbe01..16396d8bfbe 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListDeidentifyTemplates/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListDeidentifyTemplates/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListDlpJobs/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListDlpJobs/main.go index 91ce7cd01e7..e93292999cd 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListDlpJobs/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListDlpJobs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListInfoTypes/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListInfoTypes/main.go index 838983059ef..25fee648f11 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListInfoTypes/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListInfoTypes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListInspectTemplates/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListInspectTemplates/main.go index 98e5d94202f..93ef899195e 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListInspectTemplates/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListInspectTemplates/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListJobTriggers/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListJobTriggers/main.go index d480b4b529a..21c9cf42d77 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListJobTriggers/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListJobTriggers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/ListStoredInfoTypes/main.go b/internal/generated/snippets/dlp/apiv2/Client/ListStoredInfoTypes/main.go index 5c7ca85dbb5..d122f8ed33b 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ListStoredInfoTypes/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ListStoredInfoTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/RedactImage/main.go b/internal/generated/snippets/dlp/apiv2/Client/RedactImage/main.go index 9c76474ef10..339cb60c411 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/RedactImage/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/RedactImage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/ReidentifyContent/main.go b/internal/generated/snippets/dlp/apiv2/Client/ReidentifyContent/main.go index 38aabb7810e..582d2cf8e53 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/ReidentifyContent/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/ReidentifyContent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/UpdateDeidentifyTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/UpdateDeidentifyTemplate/main.go index 7b969340825..fee00156bed 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/UpdateDeidentifyTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/UpdateDeidentifyTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/UpdateInspectTemplate/main.go b/internal/generated/snippets/dlp/apiv2/Client/UpdateInspectTemplate/main.go index fc0f88a01c7..7d1cf3ec52e 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/UpdateInspectTemplate/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/UpdateInspectTemplate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/UpdateJobTrigger/main.go b/internal/generated/snippets/dlp/apiv2/Client/UpdateJobTrigger/main.go index e74129b33c2..f7a2f32be47 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/UpdateJobTrigger/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/UpdateJobTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/Client/UpdateStoredInfoType/main.go b/internal/generated/snippets/dlp/apiv2/Client/UpdateStoredInfoType/main.go index 416ba16010f..a29520be85f 100644 --- a/internal/generated/snippets/dlp/apiv2/Client/UpdateStoredInfoType/main.go +++ b/internal/generated/snippets/dlp/apiv2/Client/UpdateStoredInfoType/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dlp.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/dlp/apiv2/snippet_metadata.google.privacy.dlp.v2.json b/internal/generated/snippets/dlp/apiv2/snippet_metadata.google.privacy.dlp.v2.json index 04502b58468..8e9226a804f 100644 --- a/internal/generated/snippets/dlp/apiv2/snippet_metadata.google.privacy.dlp.v2.json +++ b/internal/generated/snippets/dlp/apiv2/snippet_metadata.google.privacy.dlp.v2.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -105,7 +105,7 @@ { "regionTag": "dlp_v2_generated_DlpService_CreateDeidentifyTemplate_sync", "title": "dlp CreateDeidentifyTemplate Sample", - "description": "CreateDeidentifyTemplate creates a DeidentifyTemplate for re-using frequently used configuration\nfor de-identifying content, images, and storage.\nSee https: //cloud.google.com/dlp/docs/creating-templates-deid (at https: //cloud.google.com/dlp/docs/creating-templates-deid) to learn\nmore.", + "description": "CreateDeidentifyTemplate creates a DeidentifyTemplate for reusing frequently used configuration\nfor de-identifying content, images, and storage.\nSee https: //cloud.google.com/dlp/docs/creating-templates-deid (at https: //cloud.google.com/dlp/docs/creating-templates-deid) to learn\nmore.", "file": "Client/CreateDeidentifyTemplate/main.go", "language": "GO", "clientMethod": { @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -197,7 +197,7 @@ { "regionTag": "dlp_v2_generated_DlpService_CreateInspectTemplate_sync", "title": "dlp CreateInspectTemplate Sample", - "description": "CreateInspectTemplate creates an InspectTemplate for re-using frequently used configuration\nfor inspecting content, images, and storage.\nSee https: //cloud.google.com/dlp/docs/creating-templates (at https: //cloud.google.com/dlp/docs/creating-templates) to learn more.", + "description": "CreateInspectTemplate creates an InspectTemplate for reusing frequently used configuration\nfor inspecting content, images, and storage.\nSee https: //cloud.google.com/dlp/docs/creating-templates (at https: //cloud.google.com/dlp/docs/creating-templates) to learn more.", "file": "Client/CreateInspectTemplate/main.go", "language": "GO", "clientMethod": { @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -426,7 +426,7 @@ { "regionTag": "dlp_v2_generated_DlpService_DeleteDlpJob_sync", "title": "dlp DeleteDlpJob Sample", - "description": "DeleteDlpJob deletes a long-running DlpJob. This method indicates that the client is\nno longer interested in the DlpJob result. The job will be cancelled if\npossible.\nSee https: //cloud.google.com/dlp/docs/inspecting-storage (at https: //cloud.google.com/dlp/docs/inspecting-storage) and\nhttps: //cloud.google.com/dlp/docs/compute-risk-analysis (at https: //cloud.google.com/dlp/docs/compute-risk-analysis) to learn more.", + "description": "DeleteDlpJob deletes a long-running DlpJob. This method indicates that the client is\nno longer interested in the DlpJob result. The job will be canceled if\npossible.\nSee https: //cloud.google.com/dlp/docs/inspecting-storage (at https: //cloud.google.com/dlp/docs/inspecting-storage) and\nhttps: //cloud.google.com/dlp/docs/compute-risk-analysis (at https: //cloud.google.com/dlp/docs/compute-risk-analysis) to learn more.", "file": "Client/DeleteDlpJob/main.go", "language": "GO", "clientMethod": { @@ -463,7 +463,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -508,7 +508,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -553,7 +553,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -598,7 +598,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -643,7 +643,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -689,7 +689,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -735,7 +735,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -781,7 +781,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -827,7 +827,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -873,7 +873,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -919,7 +919,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -965,7 +965,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1011,7 +1011,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1057,7 +1057,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1103,7 +1103,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1111,7 +1111,7 @@ { "regionTag": "dlp_v2_generated_DlpService_ListInfoTypes_sync", "title": "dlp ListInfoTypes Sample", - "description": "ListInfoTypes returns a list of the sensitive information types that the DLP API\nsupports. See https: //cloud.google.com/dlp/docs/infotypes-reference (at https: //cloud.google.com/dlp/docs/infotypes-reference) to\nlearn more.", + "description": "ListInfoTypes returns a list of the sensitive information types that DLP API\nsupports. See https: //cloud.google.com/dlp/docs/infotypes-reference (at https: //cloud.google.com/dlp/docs/infotypes-reference) to\nlearn more.", "file": "Client/ListInfoTypes/main.go", "language": "GO", "clientMethod": { @@ -1149,7 +1149,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1195,7 +1195,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1241,7 +1241,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1287,7 +1287,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1333,7 +1333,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1379,7 +1379,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1425,7 +1425,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1471,7 +1471,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1517,7 +1517,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1563,7 +1563,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/BatchProcessDocuments/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/BatchProcessDocuments/main.go index bea133a31c3..2ab722dc5fc 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/BatchProcessDocuments/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/BatchProcessDocuments/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/CancelOperation/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/CancelOperation/main.go index a63eb92cf9b..601b9f14953 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/CancelOperation/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/CreateProcessor/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/CreateProcessor/main.go index 94f5cb2c479..2ae90ae5474 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/CreateProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/CreateProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeleteProcessor/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeleteProcessor/main.go index c92d4f767c7..dd583feb978 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeleteProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeleteProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeleteProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeleteProcessorVersion/main.go index 8ff3a6876a1..24e16a787f3 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeleteProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeleteProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeployProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeployProcessorVersion/main.go index f652d509eee..a53b5431fd9 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeployProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DeployProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DisableProcessor/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DisableProcessor/main.go index 4121b181d7d..e2385304998 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DisableProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/DisableProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/EnableProcessor/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/EnableProcessor/main.go index cbdb3bcde01..04af74719b1 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/EnableProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/EnableProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/FetchProcessorTypes/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/FetchProcessorTypes/main.go index cdf6f9b1953..255426fe266 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/FetchProcessorTypes/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/FetchProcessorTypes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetLocation/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetLocation/main.go index 8b292dc2bda..42a9506d59a 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetLocation/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetOperation/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetOperation/main.go index 793db303687..a1084c3e57d 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetOperation/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetProcessor/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetProcessor/main.go index e49824bb451..49a5b5046d3 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetProcessorVersion/main.go index 353e3640d0e..a34f64ebf8a 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/GetProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListLocations/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListLocations/main.go index d8d6c953d48..40a796b9d1a 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListLocations/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListOperations/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListOperations/main.go index 7e4c759d4b6..6950218fba5 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListOperations/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessorTypes/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessorTypes/main.go index 86a3156fe51..b228d957784 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessorTypes/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessorTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessorVersions/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessorVersions/main.go index 75e5198a837..d3cb684b6a9 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessorVersions/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessorVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessors/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessors/main.go index 0fb11ba1d60..10e73f9693b 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessors/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ListProcessors/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ProcessDocument/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ProcessDocument/main.go index 0ce556d1dc5..3c3ff86d326 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ProcessDocument/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ProcessDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ReviewDocument/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ReviewDocument/main.go index facf15f82ba..c2e7b64cdd0 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ReviewDocument/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/ReviewDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/SetDefaultProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/SetDefaultProcessorVersion/main.go index 46870ecf36a..ab6797da4b3 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/SetDefaultProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/SetDefaultProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/UndeployProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/UndeployProcessorVersion/main.go index 372987ff621..f14d0071c9e 100644 --- a/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/UndeployProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1/DocumentProcessorClient/UndeployProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1/snippet_metadata.google.cloud.documentai.v1.json b/internal/generated/snippets/documentai/apiv1/snippet_metadata.google.cloud.documentai.v1.json index 0dd0d44890b..b4266da4168 100644 --- a/internal/generated/snippets/documentai/apiv1/snippet_metadata.google.cloud.documentai.v1.json +++ b/internal/generated/snippets/documentai/apiv1/snippet_metadata.google.cloud.documentai.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -465,7 +465,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -511,7 +511,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -557,7 +557,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -603,7 +603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -649,7 +649,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -695,7 +695,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -741,7 +741,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -787,7 +787,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -833,7 +833,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -879,7 +879,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -925,7 +925,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -971,7 +971,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1017,7 +1017,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/BatchProcessDocuments/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/BatchProcessDocuments/main.go index 776664f7f7e..471c7faa9d6 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/BatchProcessDocuments/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/BatchProcessDocuments/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/CancelOperation/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/CancelOperation/main.go index 32747feaf25..6b45cf08d7f 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/CancelOperation/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/CreateProcessor/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/CreateProcessor/main.go index 2a5ab1891bd..c0e2c0a2073 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/CreateProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/CreateProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeleteProcessor/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeleteProcessor/main.go index 02615a047a0..c306ac47642 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeleteProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeleteProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeleteProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeleteProcessorVersion/main.go index 53234d5f724..e60f495ae90 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeleteProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeleteProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeployProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeployProcessorVersion/main.go index 5fb5b595d52..d5c87c91c58 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeployProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DeployProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DisableProcessor/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DisableProcessor/main.go index dca7893f678..e4fdf4a8522 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DisableProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/DisableProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/EnableProcessor/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/EnableProcessor/main.go index 7497c803030..1cee294a708 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/EnableProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/EnableProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/FetchProcessorTypes/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/FetchProcessorTypes/main.go index dece172f01d..0e50e4d711f 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/FetchProcessorTypes/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/FetchProcessorTypes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetLocation/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetLocation/main.go index 6baf4f52374..8adcb7b0f07 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetLocation/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetOperation/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetOperation/main.go index bb08cbdf299..143188e59bf 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetOperation/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetProcessor/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetProcessor/main.go index bfbe8753127..fa3f259572d 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetProcessor/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetProcessor/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetProcessorVersion/main.go index 6fc1149dc90..d9be4fa3723 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/GetProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListLocations/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListLocations/main.go index 769b7369a55..aba9a80bd92 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListLocations/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListOperations/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListOperations/main.go index 442ce0c4767..45065e106fb 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListOperations/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessorTypes/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessorTypes/main.go index a0fa753b468..dc95b4675ae 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessorTypes/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessorTypes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessorVersions/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessorVersions/main.go index 8ba595f7d59..2d1f231c8cd 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessorVersions/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessorVersions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessors/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessors/main.go index eed1ed29e4b..97198f06550 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessors/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ListProcessors/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ProcessDocument/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ProcessDocument/main.go index 7f6d6481c84..60454260fca 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ProcessDocument/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ProcessDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ReviewDocument/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ReviewDocument/main.go index e8fdc3834ae..8a0167caab3 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ReviewDocument/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/ReviewDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/SetDefaultProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/SetDefaultProcessorVersion/main.go index a9c3fc97bf6..a459cdb7721 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/SetDefaultProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/SetDefaultProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/UndeployProcessorVersion/main.go b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/UndeployProcessorVersion/main.go index 324afa0fe73..3048664b97c 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/UndeployProcessorVersion/main.go +++ b/internal/generated/snippets/documentai/apiv1beta3/DocumentProcessorClient/UndeployProcessorVersion/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := documentai.NewDocumentProcessorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/documentai/apiv1beta3/snippet_metadata.google.cloud.documentai.v1beta3.json b/internal/generated/snippets/documentai/apiv1beta3/snippet_metadata.google.cloud.documentai.v1beta3.json index 2440f5516bd..d85d5a8f57b 100644 --- a/internal/generated/snippets/documentai/apiv1beta3/snippet_metadata.google.cloud.documentai.v1beta3.json +++ b/internal/generated/snippets/documentai/apiv1beta3/snippet_metadata.google.cloud.documentai.v1beta3.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -465,7 +465,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -511,7 +511,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -557,7 +557,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -603,7 +603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -649,7 +649,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -695,7 +695,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -741,7 +741,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -787,7 +787,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -833,7 +833,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -879,7 +879,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -925,7 +925,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -971,7 +971,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1017,7 +1017,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureContactSettings/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureContactSettings/main.go index b40f3c44166..64806ee28b1 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureContactSettings/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureContactSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureDnsSettings/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureDnsSettings/main.go index d343efed75b..591ab1f8860 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureDnsSettings/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureDnsSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureManagementSettings/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureManagementSettings/main.go index 084331009aa..014dc88ba1d 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureManagementSettings/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ConfigureManagementSettings/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/DeleteRegistration/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/DeleteRegistration/main.go index efbbca0235c..b38cb467126 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/DeleteRegistration/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/DeleteRegistration/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ExportRegistration/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ExportRegistration/main.go index 2563f5d9669..98cb39ac0be 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ExportRegistration/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ExportRegistration/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/GetRegistration/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/GetRegistration/main.go index b3056185806..41ec52edd39 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/GetRegistration/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/GetRegistration/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ListRegistrations/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ListRegistrations/main.go index b63ec99e860..ac73719b6fd 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ListRegistrations/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ListRegistrations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/RegisterDomain/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/RegisterDomain/main.go index 93ab79fc82d..229a1e77543 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/RegisterDomain/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/RegisterDomain/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/ResetAuthorizationCode/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/ResetAuthorizationCode/main.go index c8586dd69b1..157d7c71695 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/ResetAuthorizationCode/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/ResetAuthorizationCode/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveAuthorizationCode/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveAuthorizationCode/main.go index d5306aa5c6a..ed4e5cafd41 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveAuthorizationCode/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveAuthorizationCode/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveRegisterParameters/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveRegisterParameters/main.go index 96b472e025f..dddba805553 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveRegisterParameters/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveRegisterParameters/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveTransferParameters/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveTransferParameters/main.go index 25d0a29ae8c..41f4f8592ef 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveTransferParameters/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/RetrieveTransferParameters/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/SearchDomains/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/SearchDomains/main.go index adb158df8f4..39a793124b0 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/SearchDomains/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/SearchDomains/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/TransferDomain/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/TransferDomain/main.go index ae2663b452a..5b7a1201aca 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/TransferDomain/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/TransferDomain/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/Client/UpdateRegistration/main.go b/internal/generated/snippets/domains/apiv1beta1/Client/UpdateRegistration/main.go index 60c3848585d..b4b94121c47 100644 --- a/internal/generated/snippets/domains/apiv1beta1/Client/UpdateRegistration/main.go +++ b/internal/generated/snippets/domains/apiv1beta1/Client/UpdateRegistration/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := domains.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/domains/apiv1beta1/snippet_metadata.google.cloud.domains.v1beta1.json b/internal/generated/snippets/domains/apiv1beta1/snippet_metadata.google.cloud.domains.v1beta1.json index eb1bee63422..233ec6a4cf8 100644 --- a/internal/generated/snippets/domains/apiv1beta1/snippet_metadata.google.cloud.domains.v1beta1.json +++ b/internal/generated/snippets/domains/apiv1beta1/snippet_metadata.google.cloud.domains.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/GetGroup/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/GetGroup/main.go index a4343038abc..dfb4ddb7e12 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/GetGroup/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/GetGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorGroupClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/UpdateGroup/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/UpdateGroup/main.go index 9c69f36052c..d8e2a3db806 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/UpdateGroup/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorGroupClient/UpdateGroup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorGroupClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/DeleteEvents/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/DeleteEvents/main.go index 9af64f3de46..3618f13d8c2 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/DeleteEvents/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/DeleteEvents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorStatsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListEvents/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListEvents/main.go index e2b62d4c47a..47afc0da0ba 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListEvents/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListEvents/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorStatsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListGroupStats/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListGroupStats/main.go index c860b3761bf..ae4f0716e37 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListGroupStats/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ErrorStatsClient/ListGroupStats/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewErrorStatsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/ReportErrorEvent/main.go b/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/ReportErrorEvent/main.go index 2512e2432db..c4f3428a22c 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/ReportErrorEvent/main.go +++ b/internal/generated/snippets/errorreporting/apiv1beta1/ReportErrorsClient/ReportErrorEvent/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := errorreporting.NewReportErrorsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/errorreporting/apiv1beta1/snippet_metadata.google.devtools.clouderrorreporting.v1beta1.json b/internal/generated/snippets/errorreporting/apiv1beta1/snippet_metadata.google.devtools.clouderrorreporting.v1beta1.json index 5e0d162fda4..e375761dcd5 100644 --- a/internal/generated/snippets/errorreporting/apiv1beta1/snippet_metadata.google.devtools.clouderrorreporting.v1beta1.json +++ b/internal/generated/snippets/errorreporting/apiv1beta1/snippet_metadata.google.devtools.clouderrorreporting.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/essentialcontacts/apiv1/Client/ComputeContacts/main.go b/internal/generated/snippets/essentialcontacts/apiv1/Client/ComputeContacts/main.go index ffd1078820e..8ec213e8ec3 100644 --- a/internal/generated/snippets/essentialcontacts/apiv1/Client/ComputeContacts/main.go +++ b/internal/generated/snippets/essentialcontacts/apiv1/Client/ComputeContacts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/essentialcontacts/apiv1/Client/CreateContact/main.go b/internal/generated/snippets/essentialcontacts/apiv1/Client/CreateContact/main.go index 78613baec78..2f6f2f51a8e 100644 --- a/internal/generated/snippets/essentialcontacts/apiv1/Client/CreateContact/main.go +++ b/internal/generated/snippets/essentialcontacts/apiv1/Client/CreateContact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/essentialcontacts/apiv1/Client/DeleteContact/main.go b/internal/generated/snippets/essentialcontacts/apiv1/Client/DeleteContact/main.go index 2b9b5e5a900..849d8a4fd05 100644 --- a/internal/generated/snippets/essentialcontacts/apiv1/Client/DeleteContact/main.go +++ b/internal/generated/snippets/essentialcontacts/apiv1/Client/DeleteContact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/essentialcontacts/apiv1/Client/GetContact/main.go b/internal/generated/snippets/essentialcontacts/apiv1/Client/GetContact/main.go index 59fad610354..a40d5cfe0d4 100644 --- a/internal/generated/snippets/essentialcontacts/apiv1/Client/GetContact/main.go +++ b/internal/generated/snippets/essentialcontacts/apiv1/Client/GetContact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/essentialcontacts/apiv1/Client/ListContacts/main.go b/internal/generated/snippets/essentialcontacts/apiv1/Client/ListContacts/main.go index bb10d4e973d..d712a9a2bc2 100644 --- a/internal/generated/snippets/essentialcontacts/apiv1/Client/ListContacts/main.go +++ b/internal/generated/snippets/essentialcontacts/apiv1/Client/ListContacts/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/essentialcontacts/apiv1/Client/SendTestMessage/main.go b/internal/generated/snippets/essentialcontacts/apiv1/Client/SendTestMessage/main.go index 18bd9a69fe6..fd679408092 100644 --- a/internal/generated/snippets/essentialcontacts/apiv1/Client/SendTestMessage/main.go +++ b/internal/generated/snippets/essentialcontacts/apiv1/Client/SendTestMessage/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/essentialcontacts/apiv1/Client/UpdateContact/main.go b/internal/generated/snippets/essentialcontacts/apiv1/Client/UpdateContact/main.go index e81fb3589f3..f121cf2ef73 100644 --- a/internal/generated/snippets/essentialcontacts/apiv1/Client/UpdateContact/main.go +++ b/internal/generated/snippets/essentialcontacts/apiv1/Client/UpdateContact/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := essentialcontacts.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/essentialcontacts/apiv1/snippet_metadata.google.cloud.essentialcontacts.v1.json b/internal/generated/snippets/essentialcontacts/apiv1/snippet_metadata.google.cloud.essentialcontacts.v1.json index 5cc44d7be1d..6f48374777a 100644 --- a/internal/generated/snippets/essentialcontacts/apiv1/snippet_metadata.google.cloud.essentialcontacts.v1.json +++ b/internal/generated/snippets/essentialcontacts/apiv1/snippet_metadata.google.cloud.essentialcontacts.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/eventarc/apiv1/Client/CreateChannel/main.go b/internal/generated/snippets/eventarc/apiv1/Client/CreateChannel/main.go index 307fb04dc85..366e69884a9 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/CreateChannel/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/CreateChannel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/CreateChannelConnection/main.go b/internal/generated/snippets/eventarc/apiv1/Client/CreateChannelConnection/main.go index 5cda843d7fe..5d0d227655c 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/CreateChannelConnection/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/CreateChannelConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/CreateTrigger/main.go b/internal/generated/snippets/eventarc/apiv1/Client/CreateTrigger/main.go index 323d0504291..6f03ed80dc0 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/CreateTrigger/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/CreateTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/DeleteChannel/main.go b/internal/generated/snippets/eventarc/apiv1/Client/DeleteChannel/main.go index c160a5404aa..da4f349002a 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/DeleteChannel/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/DeleteChannel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/DeleteChannelConnection/main.go b/internal/generated/snippets/eventarc/apiv1/Client/DeleteChannelConnection/main.go index 10a91ab1759..1ff0fe4f3e5 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/DeleteChannelConnection/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/DeleteChannelConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/DeleteTrigger/main.go b/internal/generated/snippets/eventarc/apiv1/Client/DeleteTrigger/main.go index 72091575b9a..eed5d96dcf0 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/DeleteTrigger/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/DeleteTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/GetChannel/main.go b/internal/generated/snippets/eventarc/apiv1/Client/GetChannel/main.go index f1828a67945..70928507f5c 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/GetChannel/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/GetChannel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/GetChannelConnection/main.go b/internal/generated/snippets/eventarc/apiv1/Client/GetChannelConnection/main.go index 73fbc354dd2..2cec81fa1bc 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/GetChannelConnection/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/GetChannelConnection/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/GetProvider/main.go b/internal/generated/snippets/eventarc/apiv1/Client/GetProvider/main.go index b203cd68ab4..c9969268568 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/GetProvider/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/GetProvider/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/GetTrigger/main.go b/internal/generated/snippets/eventarc/apiv1/Client/GetTrigger/main.go index 1ce51a2b334..ae411ddd8b6 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/GetTrigger/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/GetTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/ListChannelConnections/main.go b/internal/generated/snippets/eventarc/apiv1/Client/ListChannelConnections/main.go index 82e547cc9dc..fb12593a937 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/ListChannelConnections/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/ListChannelConnections/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/ListChannels/main.go b/internal/generated/snippets/eventarc/apiv1/Client/ListChannels/main.go index 67edd19d981..0ccd6bd0f04 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/ListChannels/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/ListChannels/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/ListProviders/main.go b/internal/generated/snippets/eventarc/apiv1/Client/ListProviders/main.go index 85311011008..eae4b160396 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/ListProviders/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/ListProviders/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/ListTriggers/main.go b/internal/generated/snippets/eventarc/apiv1/Client/ListTriggers/main.go index 7da130cf5e0..6c6d8211b3f 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/ListTriggers/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/ListTriggers/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/UpdateChannel/main.go b/internal/generated/snippets/eventarc/apiv1/Client/UpdateChannel/main.go index 50892b28586..8de85a80045 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/UpdateChannel/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/UpdateChannel/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/Client/UpdateTrigger/main.go b/internal/generated/snippets/eventarc/apiv1/Client/UpdateTrigger/main.go index e8db959585e..7068089ccd4 100644 --- a/internal/generated/snippets/eventarc/apiv1/Client/UpdateTrigger/main.go +++ b/internal/generated/snippets/eventarc/apiv1/Client/UpdateTrigger/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := eventarc.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/apiv1/snippet_metadata.google.cloud.eventarc.v1.json b/internal/generated/snippets/eventarc/apiv1/snippet_metadata.google.cloud.eventarc.v1.json index f14581e3f59..d353a5b7fd8 100644 --- a/internal/generated/snippets/eventarc/apiv1/snippet_metadata.google.cloud.eventarc.v1.json +++ b/internal/generated/snippets/eventarc/apiv1/snippet_metadata.google.cloud.eventarc.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/eventarc/publishing/apiv1/PublisherClient/PublishChannelConnectionEvents/main.go b/internal/generated/snippets/eventarc/publishing/apiv1/PublisherClient/PublishChannelConnectionEvents/main.go index 2313ac9556a..a0eb251e558 100644 --- a/internal/generated/snippets/eventarc/publishing/apiv1/PublisherClient/PublishChannelConnectionEvents/main.go +++ b/internal/generated/snippets/eventarc/publishing/apiv1/PublisherClient/PublishChannelConnectionEvents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := publishing.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/publishing/apiv1/PublisherClient/PublishEvents/main.go b/internal/generated/snippets/eventarc/publishing/apiv1/PublisherClient/PublishEvents/main.go index 81d6f041dd8..a3f010fa170 100644 --- a/internal/generated/snippets/eventarc/publishing/apiv1/PublisherClient/PublishEvents/main.go +++ b/internal/generated/snippets/eventarc/publishing/apiv1/PublisherClient/PublishEvents/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := publishing.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/eventarc/publishing/apiv1/snippet_metadata.google.cloud.eventarc.publishing.v1.json b/internal/generated/snippets/eventarc/publishing/apiv1/snippet_metadata.google.cloud.eventarc.publishing.v1.json index 2d355c9b55b..cea27a5817c 100644 --- a/internal/generated/snippets/eventarc/publishing/apiv1/snippet_metadata.google.cloud.eventarc.publishing.v1.json +++ b/internal/generated/snippets/eventarc/publishing/apiv1/snippet_metadata.google.cloud.eventarc.publishing.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/CreateBackup/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/CreateBackup/main.go index c0466c1ba45..8e3f6d2e02a 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/CreateBackup/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/CreateBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/CreateInstance/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/CreateInstance/main.go index 9a214160f06..04b7668a749 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/CreateInstance/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/CreateInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/DeleteBackup/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/DeleteBackup/main.go index e605621b68c..5cfdf488aea 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/DeleteBackup/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/DeleteBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/DeleteInstance/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/DeleteInstance/main.go index 00217bc4a18..51a7bd9efe3 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/DeleteInstance/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/DeleteInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/GetBackup/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/GetBackup/main.go index 64ace5c0c6e..926cfc9df78 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/GetBackup/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/GetBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/GetInstance/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/GetInstance/main.go index 96e9645c728..c0a8a550f17 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/GetInstance/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/GetInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/ListBackups/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/ListBackups/main.go index 310451442e3..5eb6ed478cd 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/ListBackups/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/ListBackups/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/ListInstances/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/ListInstances/main.go index cceb9571b92..dafcca16dfe 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/ListInstances/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/ListInstances/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/RestoreInstance/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/RestoreInstance/main.go index 303426e2099..43afef0619d 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/RestoreInstance/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/RestoreInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/UpdateBackup/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/UpdateBackup/main.go index 40208b31783..4b389a17e14 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/UpdateBackup/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/UpdateBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/UpdateInstance/main.go b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/UpdateInstance/main.go index 3550b00426f..708935d20be 100644 --- a/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/UpdateInstance/main.go +++ b/internal/generated/snippets/filestore/apiv1/CloudFilestoreManagerClient/UpdateInstance/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := filestore.NewCloudFilestoreManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/filestore/apiv1/snippet_metadata.google.cloud.filestore.v1.json b/internal/generated/snippets/filestore/apiv1/snippet_metadata.google.cloud.filestore.v1.json index efb971f2816..4ddadef7dc2 100644 --- a/internal/generated/snippets/filestore/apiv1/snippet_metadata.google.cloud.filestore.v1.json +++ b/internal/generated/snippets/filestore/apiv1/snippet_metadata.google.cloud.filestore.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/firestore/apiv1/Client/BatchWrite/main.go b/internal/generated/snippets/firestore/apiv1/Client/BatchWrite/main.go index 20ff62c260f..06b65f1f249 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/BatchWrite/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/BatchWrite/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/BeginTransaction/main.go b/internal/generated/snippets/firestore/apiv1/Client/BeginTransaction/main.go index 0e764e7709d..64f989cf709 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/BeginTransaction/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/BeginTransaction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/firestore/apiv1/Client/CancelOperation/main.go index f414d4476f1..c9ff90a04f9 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/CancelOperation/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/Commit/main.go b/internal/generated/snippets/firestore/apiv1/Client/Commit/main.go index 9238e827010..64d77d38ceb 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/Commit/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/Commit/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/CreateDocument/main.go b/internal/generated/snippets/firestore/apiv1/Client/CreateDocument/main.go index 73f32faba0b..826409a6607 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/CreateDocument/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/CreateDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/DeleteDocument/main.go b/internal/generated/snippets/firestore/apiv1/Client/DeleteDocument/main.go index b87dc3660af..679c9454833 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/DeleteDocument/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/DeleteDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/firestore/apiv1/Client/DeleteOperation/main.go index 80a2a632b14..838b807662a 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/DeleteOperation/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/GetDocument/main.go b/internal/generated/snippets/firestore/apiv1/Client/GetDocument/main.go index 47fe170c349..64bc2f5d42a 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/GetDocument/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/GetDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/firestore/apiv1/Client/GetOperation/main.go index 3fee1c0d097..74157172113 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/GetOperation/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/ListCollectionIds/main.go b/internal/generated/snippets/firestore/apiv1/Client/ListCollectionIds/main.go index 61feccd8d70..96ed8d02ecd 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/ListCollectionIds/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/ListCollectionIds/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/ListDocuments/main.go b/internal/generated/snippets/firestore/apiv1/Client/ListDocuments/main.go index 8b9011ecdd4..95a956aef6a 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/ListDocuments/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/ListDocuments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/firestore/apiv1/Client/ListOperations/main.go index c675a3bb1e8..301b5dcf7cd 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/ListOperations/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/Listen/main.go b/internal/generated/snippets/firestore/apiv1/Client/Listen/main.go index 24faefae9bd..ab941fbc8d3 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/Listen/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/Listen/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/PartitionQuery/main.go b/internal/generated/snippets/firestore/apiv1/Client/PartitionQuery/main.go index 7f46bb53cb4..1010ba123f4 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/PartitionQuery/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/PartitionQuery/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/Rollback/main.go b/internal/generated/snippets/firestore/apiv1/Client/Rollback/main.go index 10c4f05fc7b..50bec333884 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/Rollback/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/Rollback/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/UpdateDocument/main.go b/internal/generated/snippets/firestore/apiv1/Client/UpdateDocument/main.go index 403ff67b173..226728cae8e 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/UpdateDocument/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/UpdateDocument/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/Client/Write/main.go b/internal/generated/snippets/firestore/apiv1/Client/Write/main.go index a0ac903f38f..33bd966995a 100644 --- a/internal/generated/snippets/firestore/apiv1/Client/Write/main.go +++ b/internal/generated/snippets/firestore/apiv1/Client/Write/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := firestore.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CancelOperation/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CancelOperation/main.go index 499927c44d0..a107d2fcb03 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CancelOperation/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 94ce6dd7aa6..b5c82ea98d6 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CreateIndex/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/CreateIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 4c8ce2b1d1d..0bbfa644cf8 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteIndex/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteOperation/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteOperation/main.go index ca1a5003b4d..f2c001b1b2e 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteOperation/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 e6870fd4cb4..2f8231c7f10 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ExportDocuments/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ExportDocuments/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetDatabase/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetDatabase/main.go index 263013f7ae4..087fb1bdb70 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetDatabase/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetDatabase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 eaaefefe957..310fdc5ee38 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetField/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 945182f6169..0fa301dca45 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetIndex/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetIndex/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetOperation/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetOperation/main.go index 993ba312c2d..912a893140f 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetOperation/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 b238b76b87f..4f78b8efeb4 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ImportDocuments/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ImportDocuments/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListDatabases/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListDatabases/main.go index ff15051f4b0..b1d524de0e4 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListDatabases/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListDatabases/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 33bd397aa28..14cde0a1874 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListFields/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListFields/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 13f06e466c7..6825a3e7086 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListIndexes/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListIndexes/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListOperations/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListOperations/main.go index 36db3893a63..2886649e41e 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListOperations/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateDatabase/main.go b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateDatabase/main.go index b92637d3102..4ba9052a405 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateDatabase/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateDatabase/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. 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 96b2483c9ba..34a77b5abbc 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateField/main.go +++ b/internal/generated/snippets/firestore/apiv1/admin/FirestoreAdminClient/UpdateField/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := apiv1.NewFirestoreAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/firestore/apiv1/admin/snippet_metadata.google.firestore.admin.v1.json b/internal/generated/snippets/firestore/apiv1/admin/snippet_metadata.google.firestore.admin.v1.json index f9072c2f4a7..1355b755be1 100644 --- a/internal/generated/snippets/firestore/apiv1/admin/snippet_metadata.google.firestore.admin.v1.json +++ b/internal/generated/snippets/firestore/apiv1/admin/snippet_metadata.google.firestore.admin.v1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -142,7 +142,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -187,7 +187,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -233,7 +233,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -279,7 +279,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -371,7 +371,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -417,7 +417,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -463,7 +463,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -509,7 +509,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -555,7 +555,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -601,7 +601,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -647,7 +647,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -693,7 +693,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -739,7 +739,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/firestore/apiv1/snippet_metadata.google.firestore.v1.json b/internal/generated/snippets/firestore/apiv1/snippet_metadata.google.firestore.v1.json index 5896c9a1bf0..c3546dc4104 100644 --- a/internal/generated/snippets/firestore/apiv1/snippet_metadata.google.firestore.v1.json +++ b/internal/generated/snippets/firestore/apiv1/snippet_metadata.google.firestore.v1.json @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -325,7 +325,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -370,7 +370,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -416,7 +416,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -462,7 +462,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -508,7 +508,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -554,7 +554,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -600,7 +600,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -641,7 +641,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] @@ -687,7 +687,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -732,7 +732,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -823,7 +823,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -864,7 +864,7 @@ "segments": [ { "start": 18, - "end": 63, + "end": 68, "type": "FULL" } ] diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CallFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CallFunction/main.go index db7d4c8dfb6..1edb52407df 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CallFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CallFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CreateFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CreateFunction/main.go index 6df5f4758f7..3bed9446724 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CreateFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/CreateFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/DeleteFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/DeleteFunction/main.go index 09ab8c8a5fe..d39e26dcf20 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/DeleteFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/DeleteFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateDownloadUrl/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateDownloadUrl/main.go index 39ebc660b27..41c3aabeeae 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateDownloadUrl/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateDownloadUrl/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateUploadUrl/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateUploadUrl/main.go index 8d7c30c218c..f29c9d80d2d 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateUploadUrl/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GenerateUploadUrl/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetFunction/main.go index 3c3c9a74ea8..e968a1d43f5 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetIamPolicy/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetIamPolicy/main.go index 72cb6b7a995..2040044d58b 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/ListFunctions/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/ListFunctions/main.go index dbbaa77e656..944fe1fc4a3 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/ListFunctions/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/ListFunctions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/SetIamPolicy/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/SetIamPolicy/main.go index a4d3944fcc6..193b8399691 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/TestIamPermissions/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/TestIamPermissions/main.go index 1078709dc6f..0ad04382d8b 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/UpdateFunction/main.go b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/UpdateFunction/main.go index a3ed4946d99..3543ffaec4c 100644 --- a/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/UpdateFunction/main.go +++ b/internal/generated/snippets/functions/apiv1/CloudFunctionsClient/UpdateFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewCloudFunctionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv1/snippet_metadata.google.cloud.functions.v1.json b/internal/generated/snippets/functions/apiv1/snippet_metadata.google.cloud.functions.v1.json index 6e88f44961a..23edd1c93cd 100644 --- a/internal/generated/snippets/functions/apiv1/snippet_metadata.google.cloud.functions.v1.json +++ b/internal/generated/snippets/functions/apiv1/snippet_metadata.google.cloud.functions.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/CreateFunction/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/CreateFunction/main.go index d78eaaf7f3b..9753fbe9d62 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/CreateFunction/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/CreateFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/DeleteFunction/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/DeleteFunction/main.go index 69e86d5c443..21a3ac35e21 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/DeleteFunction/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/DeleteFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/GenerateDownloadUrl/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/GenerateDownloadUrl/main.go index 304cbbe50ee..3ec7dd8c3e4 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/GenerateDownloadUrl/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/GenerateDownloadUrl/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/GenerateUploadUrl/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/GenerateUploadUrl/main.go index 2576a6db6d5..2e8cb086633 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/GenerateUploadUrl/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/GenerateUploadUrl/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/GetFunction/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/GetFunction/main.go index ce587c07e5d..20964d9f7af 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/GetFunction/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/GetFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/GetIamPolicy/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/GetIamPolicy/main.go index 265435bb5d8..417c25be9c5 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/GetOperation/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/GetOperation/main.go index 436fde2ea95..e582e2bc1f9 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/GetOperation/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/ListFunctions/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/ListFunctions/main.go index c8c9964641d..54898d5d0f4 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/ListFunctions/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/ListFunctions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/ListLocations/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/ListLocations/main.go index 8bca7f1d971..b134d26f894 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/ListLocations/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/ListOperations/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/ListOperations/main.go index 525e94a6435..3ac1067e245 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/ListOperations/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/ListRuntimes/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/ListRuntimes/main.go index 2aaf13f7ede..38c19c152ef 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/ListRuntimes/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/ListRuntimes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/SetIamPolicy/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/SetIamPolicy/main.go index eda96451e40..d9d8dd3428b 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/TestIamPermissions/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/TestIamPermissions/main.go index d2b46d740ac..bf7d207ae5e 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/FunctionClient/UpdateFunction/main.go b/internal/generated/snippets/functions/apiv2/FunctionClient/UpdateFunction/main.go index 2f1672be535..adbc7add986 100644 --- a/internal/generated/snippets/functions/apiv2/FunctionClient/UpdateFunction/main.go +++ b/internal/generated/snippets/functions/apiv2/FunctionClient/UpdateFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2/snippet_metadata.google.cloud.functions.v2.json b/internal/generated/snippets/functions/apiv2/snippet_metadata.google.cloud.functions.v2.json index a689f30e9a5..d44ba689635 100644 --- a/internal/generated/snippets/functions/apiv2/snippet_metadata.google.cloud.functions.v2.json +++ b/internal/generated/snippets/functions/apiv2/snippet_metadata.google.cloud.functions.v2.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/CreateFunction/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/CreateFunction/main.go index 7f4f07b48fe..49548988153 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/CreateFunction/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/CreateFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/DeleteFunction/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/DeleteFunction/main.go index ee33d3f5361..f10b1c3d3c5 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/DeleteFunction/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/DeleteFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GenerateDownloadUrl/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GenerateDownloadUrl/main.go index 2998627a53f..7edbfe90034 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GenerateDownloadUrl/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GenerateDownloadUrl/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GenerateUploadUrl/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GenerateUploadUrl/main.go index 834901db91f..cfb86100430 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GenerateUploadUrl/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GenerateUploadUrl/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetFunction/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetFunction/main.go index 4fb27577a55..21dc960b062 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetFunction/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetIamPolicy/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetIamPolicy/main.go index fbb351202c1..6b6a3f98b8b 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetOperation/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetOperation/main.go index 0e693581dd5..a07bbe38bd3 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetOperation/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListFunctions/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListFunctions/main.go index 60a42b68502..c990f4922b1 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListFunctions/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListFunctions/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListLocations/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListLocations/main.go index 7fa7fbb4b5c..17708963e0e 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListLocations/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListOperations/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListOperations/main.go index 576f401b836..6dae3dc4e57 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListOperations/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListRuntimes/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListRuntimes/main.go index 7d74867ae80..eb58dd2fc88 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListRuntimes/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/ListRuntimes/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/SetIamPolicy/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/SetIamPolicy/main.go index 98682c41275..16fcf150fc3 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/TestIamPermissions/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/TestIamPermissions/main.go index 24070fccd2c..bb2b4d22fbb 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/FunctionClient/UpdateFunction/main.go b/internal/generated/snippets/functions/apiv2beta/FunctionClient/UpdateFunction/main.go index 1aaa8cc57a9..570c64ee36e 100644 --- a/internal/generated/snippets/functions/apiv2beta/FunctionClient/UpdateFunction/main.go +++ b/internal/generated/snippets/functions/apiv2beta/FunctionClient/UpdateFunction/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := functions.NewFunctionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/functions/apiv2beta/snippet_metadata.google.cloud.functions.v2beta.json b/internal/generated/snippets/functions/apiv2beta/snippet_metadata.google.cloud.functions.v2beta.json index 2b03e2239df..221a445a9b3 100644 --- a/internal/generated/snippets/functions/apiv2beta/snippet_metadata.google.cloud.functions.v2beta.json +++ b/internal/generated/snippets/functions/apiv2beta/snippet_metadata.google.cloud.functions.v2beta.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go index 8fc028ecbe2..9ffdf256734 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go index 73d7fed85a3..232b96833ae 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go index 72b1b6e3fbb..4b0bbbf3526 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go index 19634a94a60..8786dcad1a8 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go index afcb4337b03..3f270714114 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go index 3bfa42dfc83..e0fb90e752e 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go index 91b34dc9ab6..6aa973d3fdd 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go index e99620675e3..d10b44d045d 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go index af058aa3c78..0ced86786d4 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go index e2d20c12e86..148683b7bd3 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go index 6412d7ee38d..be770551a62 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go index d39aed20a92..27231c34e46 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go index c3e401431b2..afb56e06b47 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go index 8574d6f5c89..8cad041d9f7 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go index 2ca5ec21785..31e1c809f3b 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go index 1491d0ad5a1..204bc4fb85f 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go index d3fdeb6edf0..b0589545266 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go index edc164fddbf..530d3c5c6f6 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go index d4a10aa85a2..227059a5b83 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go index e2c97f7df3e..e974d2f6f97 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go index c08e1fdd790..b3eabf63a37 100644 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go index 960785f72ca..cce8cb6cbe3 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go index 0f4334178c7..1e24828b7c1 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go index b2aad08c1e9..309b49d4653 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go index fbd25a4b2bd..5c3606193b3 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go index 61a1176a90a..4d744d489bd 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go index cf252c64d6a..bfcd8d9c1df 100644 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1/snippet_metadata.google.cloud.gaming.v1.json b/internal/generated/snippets/gaming/apiv1/snippet_metadata.google.cloud.gaming.v1.json index 378b5a6469e..627f579c965 100644 --- a/internal/generated/snippets/gaming/apiv1/snippet_metadata.google.cloud.gaming.v1.json +++ b/internal/generated/snippets/gaming/apiv1/snippet_metadata.google.cloud.gaming.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1018,7 +1018,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1064,7 +1064,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1110,7 +1110,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1156,7 +1156,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1202,7 +1202,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1248,7 +1248,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go index 585b9b13604..765c57d81c6 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go index 4dde4fd50fd..f7881157037 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go index 0b0e04d47d6..8563b47e7a5 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go index 5406d309013..c7b12eaee18 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go index aa234cd7404..c34dc1e3e33 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go index de6eee3a168..a70816df8f8 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go index 24af4d80c45..d9c9485172e 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go index f4b0b571680..ed99ad56c48 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go index b1432537ad0..74a66ccd5e3 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go index befa8d1e3c6..402868afdb5 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go index 5d5a5c6d2c0..904402bf8e7 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go index c1582df60fd..fac9a932191 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerConfigsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go index 7f5b3ab49f9..c166a233b60 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go index d7e2e6c6873..fd859cd100d 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go index 897afc199e2..bc5fe748e3a 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go index b64f47bd147..e3502cb9d44 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go index 9fe787e596f..8a950601928 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go index cbfec90d9fb..37960bb91ca 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go index 580abf29bb0..18e964afb49 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go index f2f206135dc..5bba32a247f 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go index 19d1749d645..595734a79f3 100644 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewGameServerDeploymentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go index ce92c802d09..b77e1ffc925 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go index 6b1b59f5fef..9f58c20a6e5 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go index d7f4ac65fe4..1c694b8fe58 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go index 1189f75e957..5fb6390c5c7 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go index d0b510b8a15..254aa0902d7 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go index f9418c19a83..0d1695ca7d1 100644 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go +++ b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gaming.NewRealmsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gaming/apiv1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/internal/generated/snippets/gaming/apiv1beta/snippet_metadata.google.cloud.gaming.v1beta.json index 7e7e1487dcd..8fa7b5ef88f 100644 --- a/internal/generated/snippets/gaming/apiv1beta/snippet_metadata.google.cloud.gaming.v1beta.json +++ b/internal/generated/snippets/gaming/apiv1beta/snippet_metadata.google.cloud.gaming.v1beta.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1018,7 +1018,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1064,7 +1064,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -1110,7 +1110,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1156,7 +1156,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1202,7 +1202,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1248,7 +1248,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateBackup/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateBackup/main.go index 8917e7c7d84..eeb4fcaf59d 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateBackup/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateBackupPlan/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateBackupPlan/main.go index d34a0c69468..0a6b9baa1da 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateBackupPlan/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateBackupPlan/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateRestore/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateRestore/main.go index 29bcd8cea29..6857c640777 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateRestore/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateRestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateRestorePlan/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateRestorePlan/main.go index eb94a23a6c5..3bbdf91f475 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateRestorePlan/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/CreateRestorePlan/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteBackup/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteBackup/main.go index 0c9f160f0c3..89467c73a56 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteBackup/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteBackupPlan/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteBackupPlan/main.go index c0cafa0c958..aa6c9f74d4b 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteBackupPlan/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteBackupPlan/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteRestore/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteRestore/main.go index a6d17890516..76a51b49a2f 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteRestore/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteRestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteRestorePlan/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteRestorePlan/main.go index 3e4e83ffd40..8ee470c36d9 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteRestorePlan/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/DeleteRestorePlan/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetBackup/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetBackup/main.go index 1051efd498f..0397f9039b1 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetBackup/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetBackupPlan/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetBackupPlan/main.go index 2830fd83949..f6210d4fb2d 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetBackupPlan/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetBackupPlan/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetRestore/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetRestore/main.go index 7b4dd433e4c..afaefc70c50 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetRestore/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetRestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetRestorePlan/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetRestorePlan/main.go index a6d681fc7c3..b6f8b1334f1 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetRestorePlan/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetRestorePlan/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetVolumeBackup/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetVolumeBackup/main.go index a87a76080d8..8b413ca244d 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetVolumeBackup/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetVolumeBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetVolumeRestore/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetVolumeRestore/main.go index bf2ced511be..6aa609921dd 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetVolumeRestore/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/GetVolumeRestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListBackupPlans/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListBackupPlans/main.go index 70caa16f3eb..9c335f5c479 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListBackupPlans/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListBackupPlans/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListBackups/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListBackups/main.go index 8d216f34ced..ccf4179b84b 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListBackups/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListBackups/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListRestorePlans/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListRestorePlans/main.go index d4369a7835b..5c8c1c7cf58 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListRestorePlans/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListRestorePlans/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListRestores/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListRestores/main.go index f59b6ec0abc..67dc1e9ee09 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListRestores/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListRestores/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListVolumeBackups/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListVolumeBackups/main.go index ac832bc38f0..4f1340a2619 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListVolumeBackups/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListVolumeBackups/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListVolumeRestores/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListVolumeRestores/main.go index f887c1834c3..b429056ad42 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListVolumeRestores/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/ListVolumeRestores/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateBackup/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateBackup/main.go index c8735619a00..cbebbfdcb52 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateBackup/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateBackup/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateBackupPlan/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateBackupPlan/main.go index 53685adde77..1d5c83b74b4 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateBackupPlan/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateBackupPlan/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateRestore/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateRestore/main.go index 5d0dad5769f..1d628be7b54 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateRestore/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateRestore/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateRestorePlan/main.go b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateRestorePlan/main.go index f874bf838a2..5623d46c23c 100644 --- a/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateRestorePlan/main.go +++ b/internal/generated/snippets/gkebackup/apiv1/BackupForGKEClient/UpdateRestorePlan/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkebackup.NewBackupForGKEClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkebackup/apiv1/snippet_metadata.google.cloud.gkebackup.v1.json b/internal/generated/snippets/gkebackup/apiv1/snippet_metadata.google.cloud.gkebackup.v1.json index 240e68b46d6..2fd4aad9059 100644 --- a/internal/generated/snippets/gkebackup/apiv1/snippet_metadata.google.cloud.gkebackup.v1.json +++ b/internal/generated/snippets/gkebackup/apiv1/snippet_metadata.google.cloud.gkebackup.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1018,7 +1018,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1064,7 +1064,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1110,7 +1110,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/DeleteResource/main.go b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/DeleteResource/main.go index 0b41693d07a..3d708e80a0a 100644 --- a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/DeleteResource/main.go +++ b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/DeleteResource/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/GetResource/main.go b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/GetResource/main.go index 23e551beb5a..d6d90cd725f 100644 --- a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/GetResource/main.go +++ b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/GetResource/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PatchResource/main.go b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PatchResource/main.go index abaf54f4cbb..c435290d770 100644 --- a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PatchResource/main.go +++ b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PatchResource/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PostResource/main.go b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PostResource/main.go index e32a527badf..a7d2e7be38f 100644 --- a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PostResource/main.go +++ b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PostResource/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PutResource/main.go b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PutResource/main.go index 043f8d6be6e..fa444925ce4 100644 --- a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PutResource/main.go +++ b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/Client/PutResource/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gateway.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/snippet_metadata.google.cloud.gkeconnect.gateway.v1beta1.json b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/snippet_metadata.google.cloud.gkeconnect.gateway.v1beta1.json index a13d2af041a..65e6f1a7e73 100644 --- a/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/snippet_metadata.google.cloud.gkeconnect.gateway.v1beta1.json +++ b/internal/generated/snippets/gkeconnect/gateway/apiv1beta1/snippet_metadata.google.cloud.gkeconnect.gateway.v1beta1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CancelOperation/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CancelOperation/main.go index e4b2f1af45b..8200133050d 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CancelOperation/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CancelOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CreateMembership/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CreateMembership/main.go index f466f0dd729..7630d28971d 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CreateMembership/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/CreateMembership/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteMembership/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteMembership/main.go index 3bc28140bcb..e571fa643ac 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteMembership/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteMembership/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteOperation/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteOperation/main.go index 07911918e1b..9169c2e6284 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteOperation/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/DeleteOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateConnectManifest/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateConnectManifest/main.go index b6f70a2b5c2..1d240fa784d 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateConnectManifest/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateConnectManifest/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateExclusivityManifest/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateExclusivityManifest/main.go index f45c3d20490..223666ade5d 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateExclusivityManifest/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GenerateExclusivityManifest/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetIamPolicy/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetIamPolicy/main.go index 710627ecfbe..5fe67b7f82e 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetLocation/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetLocation/main.go index 1b67760daf9..ac134b04315 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetLocation/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetLocation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetMembership/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetMembership/main.go index b3e7e62c479..6d3f61fd7ed 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetMembership/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetMembership/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetOperation/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetOperation/main.go index fab36627d26..9c04213f4e9 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetOperation/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/GetOperation/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListLocations/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListLocations/main.go index 7c982bb1a23..3ba9416c400 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListLocations/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListLocations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListMemberships/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListMemberships/main.go index ccb1cfd61e6..affdf169887 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListMemberships/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListMemberships/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListOperations/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListOperations/main.go index 254342606f2..8d875d51ad3 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListOperations/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ListOperations/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/SetIamPolicy/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/SetIamPolicy/main.go index fb626f6e04d..9c7b4418cc8 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/SetIamPolicy/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/TestIamPermissions/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/TestIamPermissions/main.go index 979bb305a49..3dbc2a372fc 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/TestIamPermissions/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/UpdateMembership/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/UpdateMembership/main.go index cd12a404b4c..2ef3ba0fee6 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/UpdateMembership/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/UpdateMembership/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ValidateExclusivity/main.go b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ValidateExclusivity/main.go index f3ad9bba9dc..bc4acf03940 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ValidateExclusivity/main.go +++ b/internal/generated/snippets/gkehub/apiv1beta1/GkeHubMembershipClient/ValidateExclusivity/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkehub.NewGkeHubMembershipClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkehub/apiv1beta1/snippet_metadata.google.cloud.gkehub.v1beta1.json b/internal/generated/snippets/gkehub/apiv1beta1/snippet_metadata.google.cloud.gkehub.v1beta1.json index 8dfa9241b15..47ff881ceb7 100644 --- a/internal/generated/snippets/gkehub/apiv1beta1/snippet_metadata.google.cloud.gkehub.v1beta1.json +++ b/internal/generated/snippets/gkehub/apiv1beta1/snippet_metadata.google.cloud.gkehub.v1beta1.json @@ -51,7 +51,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -97,7 +97,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -143,7 +143,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -188,7 +188,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 50, "type": "FULL" } ] @@ -234,7 +234,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -280,7 +280,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -326,7 +326,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -372,7 +372,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -418,7 +418,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -464,7 +464,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -510,7 +510,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -556,7 +556,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -602,7 +602,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -648,7 +648,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -694,7 +694,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -740,7 +740,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -786,7 +786,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/CreateAwsCluster/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/CreateAwsCluster/main.go index 1628c2a6998..ba811575e7a 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/CreateAwsCluster/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/CreateAwsCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/CreateAwsNodePool/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/CreateAwsNodePool/main.go index fc8bae5dd1a..3cc490cf2df 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/CreateAwsNodePool/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/CreateAwsNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/DeleteAwsCluster/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/DeleteAwsCluster/main.go index 9bace2f4335..8140f638c31 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/DeleteAwsCluster/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/DeleteAwsCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/DeleteAwsNodePool/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/DeleteAwsNodePool/main.go index 3cd9f9f3da7..b5d81e88157 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/DeleteAwsNodePool/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/DeleteAwsNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GenerateAwsAccessToken/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GenerateAwsAccessToken/main.go index 67d61126ec5..6b0fed4f2ef 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GenerateAwsAccessToken/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GenerateAwsAccessToken/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsCluster/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsCluster/main.go index 243a15b79da..aed4c840a94 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsCluster/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsNodePool/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsNodePool/main.go index c03e947d642..07e02ca5f12 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsNodePool/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsServerConfig/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsServerConfig/main.go index 6ed2a1a3677..aeb8c6853b9 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsServerConfig/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/GetAwsServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/ListAwsClusters/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/ListAwsClusters/main.go index 803bfaf8e7c..dc879995cd5 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/ListAwsClusters/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/ListAwsClusters/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/ListAwsNodePools/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/ListAwsNodePools/main.go index 0b6b669e511..9c65f8ec4fa 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/ListAwsNodePools/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/ListAwsNodePools/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/UpdateAwsCluster/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/UpdateAwsCluster/main.go index a372d342b77..d0bb18e96e3 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/UpdateAwsCluster/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/UpdateAwsCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/UpdateAwsNodePool/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/UpdateAwsNodePool/main.go index 5a544420cc9..dba2c4cc592 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/UpdateAwsNodePool/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AwsClustersClient/UpdateAwsNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAwsClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureClient/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureClient/main.go index 121c642c00e..afdbb79002b 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureClient/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureClient/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureCluster/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureCluster/main.go index 2abb93bf460..d634421ccbd 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureCluster/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureNodePool/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureNodePool/main.go index 0580e693452..b50c4f80b09 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureNodePool/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/CreateAzureNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureClient/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureClient/main.go index ef4f31d0582..33d95b6f336 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureClient/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureClient/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureCluster/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureCluster/main.go index e8225f9cf24..4fb1aebe78b 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureCluster/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureNodePool/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureNodePool/main.go index df9faa84912..d629733068d 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureNodePool/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/DeleteAzureNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GenerateAzureAccessToken/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GenerateAzureAccessToken/main.go index 7c632f484da..b9e0669f3b8 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GenerateAzureAccessToken/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GenerateAzureAccessToken/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureClient/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureClient/main.go index 83d7c2f8f19..5fdf76cce57 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureClient/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureClient/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureCluster/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureCluster/main.go index f0e49ad7690..443c9dd1b0d 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureCluster/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureNodePool/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureNodePool/main.go index 5e5c8ad3e0f..fab1cb4d695 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureNodePool/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureServerConfig/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureServerConfig/main.go index 31c3175386b..e4827b0c0c2 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureServerConfig/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/GetAzureServerConfig/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureClients/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureClients/main.go index c7bebd92b2b..26553fe78ad 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureClients/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureClients/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureClusters/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureClusters/main.go index 5acd82d4804..ea323df5a99 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureClusters/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureClusters/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureNodePools/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureNodePools/main.go index 72f1aa80aa9..828f466d43d 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureNodePools/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/ListAzureNodePools/main.go @@ -28,6 +28,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/UpdateAzureCluster/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/UpdateAzureCluster/main.go index 9c0727d15b6..97ed26fb3a3 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/UpdateAzureCluster/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/UpdateAzureCluster/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/UpdateAzureNodePool/main.go b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/UpdateAzureNodePool/main.go index c381caa66ca..f77c58c931f 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/UpdateAzureNodePool/main.go +++ b/internal/generated/snippets/gkemulticloud/apiv1/AzureClustersClient/UpdateAzureNodePool/main.go @@ -27,6 +27,11 @@ import ( func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gkemulticloud.NewAzureClustersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/gkemulticloud/apiv1/snippet_metadata.google.cloud.gkemulticloud.v1.json b/internal/generated/snippets/gkemulticloud/apiv1/snippet_metadata.google.cloud.gkemulticloud.v1.json index 0aee2950b4c..e675320e283 100644 --- a/internal/generated/snippets/gkemulticloud/apiv1/snippet_metadata.google.cloud.gkemulticloud.v1.json +++ b/internal/generated/snippets/gkemulticloud/apiv1/snippet_metadata.google.cloud.gkemulticloud.v1.json @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -190,7 +190,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -236,7 +236,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -282,7 +282,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -328,7 +328,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -374,7 +374,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -420,7 +420,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -466,7 +466,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -512,7 +512,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -558,7 +558,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -604,7 +604,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -650,7 +650,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -696,7 +696,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -742,7 +742,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -788,7 +788,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -834,7 +834,7 @@ "segments": [ { "start": 18, - "end": 50, + "end": 55, "type": "FULL" } ] @@ -880,7 +880,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -926,7 +926,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -972,7 +972,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1018,7 +1018,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1064,7 +1064,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 52, "type": "FULL" } ] @@ -1110,7 +1110,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1156,7 +1156,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1202,7 +1202,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 59, "type": "FULL" } ] @@ -1248,7 +1248,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] @@ -1294,7 +1294,7 @@ "segments": [ { "start": 18, - "end": 52, + "end": 57, "type": "FULL" } ] diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 42fc2e43599..4ec3a06cc3e 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -13,7 +13,7 @@ require ( cloud.google.com/go/appengine v1.3.0 cloud.google.com/go/area120 v0.4.0 cloud.google.com/go/artifactregistry v1.4.0 - cloud.google.com/go/asset v1.4.0 + cloud.google.com/go/asset v1.5.0 cloud.google.com/go/assuredworkloads v1.2.0 cloud.google.com/go/automl v1.4.0 cloud.google.com/go/baremetalsolution v0.2.0 @@ -95,7 +95,7 @@ require ( cloud.google.com/go/run v0.1.1 cloud.google.com/go/scheduler v1.3.0 cloud.google.com/go/secretmanager v1.5.0 - cloud.google.com/go/security v1.4.1 + cloud.google.com/go/security v1.5.0 cloud.google.com/go/securitycenter v1.10.0 cloud.google.com/go/servicecontrol v1.3.0 cloud.google.com/go/servicedirectory v1.3.0 @@ -119,8 +119,8 @@ require ( cloud.google.com/go/websecurityscanner v1.2.0 cloud.google.com/go/workflows v1.5.0 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - google.golang.org/api v0.94.0 - google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 ) require ( @@ -135,7 +135,7 @@ require ( github.com/googleapis/gax-go/v2 v2.5.1 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220812174116-3211cb980234 // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220818161305-2296e01440c6 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index e75f43a40a7..539d5c6d19e 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -117,7 +117,6 @@ golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220812174116-3211cb980234 h1:RDqmgfe7SvlMWoqC3xwQ2blLO3fcWcxMa3eBLRdRW7E= golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= @@ -128,10 +127,10 @@ golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -159,7 +158,6 @@ golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220818161305-2296e01440c6 h1:Sx/u41w+OwrInGdEckYmEuU5gHoGSL4QbDz3S9s6j4U= @@ -194,13 +192,9 @@ google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqiv google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.86.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.87.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= @@ -221,13 +215,10 @@ google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2I google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220621134657-43db42f103f7/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220706185917-7780775163c4/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220707144311-dc4cdde2ef63/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220712132514-bdd2acd4974d/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220719170305-83ca9fad585f/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= @@ -238,8 +229,12 @@ google.golang.org/genproto v0.0.0-20220819153447-c7cd466b0e09/go.mod h1:dbqgFATT google.golang.org/genproto v0.0.0-20220822141531-cb6d359b7ced/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf h1:Q5xNKbTSFwkuaaGaR7CMcXEM5sy19KYdUU8iF8/iRC0= google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220902135211-223410557253/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220908141613-51c1cc9bc6d0/go.mod h1:rQWNQYp1kbHR3+n5cARSTCF5rlJOttUn8yIhRklGAWQ= +google.golang.org/genproto v0.0.0-20220909194730-69f6226f97e5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/internal/godocfx/go.mod b/internal/godocfx/go.mod index 2f0eef4b46c..44e9897ea43 100644 --- a/internal/godocfx/go.mod +++ b/internal/godocfx/go.mod @@ -26,11 +26,11 @@ require ( go.opencensus.io v0.23.0 // indirect golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect - google.golang.org/api v0.94.0 // indirect + google.golang.org/api v0.95.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf // indirect google.golang.org/grpc v1.48.0 // indirect diff --git a/internal/godocfx/go.sum b/internal/godocfx/go.sum index 557501f6bdc..05105e20124 100644 --- a/internal/godocfx/go.sum +++ b/internal/godocfx/go.sum @@ -158,8 +158,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -235,8 +236,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= diff --git a/iot/apiv1/device_manager_client.go b/iot/apiv1/device_manager_client.go index 4d56d768a50..44f313a3eae 100644 --- a/iot/apiv1/device_manager_client.go +++ b/iot/apiv1/device_manager_client.go @@ -264,7 +264,8 @@ func (c *DeviceManagerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DeviceManagerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -447,7 +448,8 @@ func NewDeviceManagerClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *deviceManagerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/iot/apiv1/device_manager_client_example_test.go b/iot/apiv1/device_manager_client_example_test.go index 2e810715438..97b19592b75 100644 --- a/iot/apiv1/device_manager_client_example_test.go +++ b/iot/apiv1/device_manager_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewDeviceManagerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewDeviceManagerClient() { func ExampleDeviceManagerClient_CreateDeviceRegistry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleDeviceManagerClient_CreateDeviceRegistry() { func ExampleDeviceManagerClient_GetDeviceRegistry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleDeviceManagerClient_GetDeviceRegistry() { func ExampleDeviceManagerClient_UpdateDeviceRegistry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleDeviceManagerClient_UpdateDeviceRegistry() { func ExampleDeviceManagerClient_DeleteDeviceRegistry() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleDeviceManagerClient_DeleteDeviceRegistry() { func ExampleDeviceManagerClient_ListDeviceRegistries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleDeviceManagerClient_ListDeviceRegistries() { func ExampleDeviceManagerClient_CreateDevice() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleDeviceManagerClient_CreateDevice() { func ExampleDeviceManagerClient_GetDevice() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleDeviceManagerClient_GetDevice() { func ExampleDeviceManagerClient_UpdateDevice() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleDeviceManagerClient_UpdateDevice() { func ExampleDeviceManagerClient_DeleteDevice() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +271,11 @@ func ExampleDeviceManagerClient_DeleteDevice() { func ExampleDeviceManagerClient_ListDevices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +302,11 @@ func ExampleDeviceManagerClient_ListDevices() { func ExampleDeviceManagerClient_ModifyCloudToDeviceConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -267,6 +327,11 @@ func ExampleDeviceManagerClient_ModifyCloudToDeviceConfig() { func ExampleDeviceManagerClient_ListDeviceConfigVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -287,6 +352,11 @@ func ExampleDeviceManagerClient_ListDeviceConfigVersions() { func ExampleDeviceManagerClient_ListDeviceStates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +377,11 @@ func ExampleDeviceManagerClient_ListDeviceStates() { func ExampleDeviceManagerClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -327,6 +402,11 @@ func ExampleDeviceManagerClient_SetIamPolicy() { func ExampleDeviceManagerClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -347,6 +427,11 @@ func ExampleDeviceManagerClient_GetIamPolicy() { func ExampleDeviceManagerClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -367,6 +452,11 @@ func ExampleDeviceManagerClient_TestIamPermissions() { func ExampleDeviceManagerClient_SendCommandToDevice() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -387,6 +477,11 @@ func ExampleDeviceManagerClient_SendCommandToDevice() { func ExampleDeviceManagerClient_BindDeviceToGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -407,6 +502,11 @@ func ExampleDeviceManagerClient_BindDeviceToGateway() { func ExampleDeviceManagerClient_UnbindDeviceFromGateway() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/iot/apiv1/doc.go b/iot/apiv1/doc.go index 73a8a917c0d..b06e3d412e9 100644 --- a/iot/apiv1/doc.go +++ b/iot/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := iot.NewDeviceManagerClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := iot.NewDeviceManagerClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/iot/go.mod b/iot/go.mod index a8659fc3e69..a547fd49214 100644 --- a/iot/go.mod +++ b/iot/go.mod @@ -4,9 +4,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -15,11 +14,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/iot/go.sum b/iot/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/iot/go.sum +++ b/iot/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/kms/apiv1/doc.go b/kms/apiv1/doc.go index 79e7bd8ca81..b3ef86cadb7 100644 --- a/kms/apiv1/doc.go +++ b/kms/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := kms.NewEkmClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := kms.NewEkmClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/kms/apiv1/ekm_client.go b/kms/apiv1/ekm_client.go index 2333f0d7d38..a6279d2793e 100644 --- a/kms/apiv1/ekm_client.go +++ b/kms/apiv1/ekm_client.go @@ -165,7 +165,8 @@ func (c *EkmClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EkmClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -286,7 +287,8 @@ func NewEkmClient(ctx context.Context, opts ...option.ClientOption) (*EkmClient, // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ekmGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/kms/apiv1/ekm_client_example_test.go b/kms/apiv1/ekm_client_example_test.go index e310d86868e..06525b9f48a 100644 --- a/kms/apiv1/ekm_client_example_test.go +++ b/kms/apiv1/ekm_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewEkmClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewEkmClient() { func ExampleEkmClient_ListEkmConnections() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleEkmClient_ListEkmConnections() { func ExampleEkmClient_GetEkmConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleEkmClient_GetEkmConnection() { func ExampleEkmClient_CreateEkmConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleEkmClient_CreateEkmConnection() { func ExampleEkmClient_UpdateEkmConnection() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleEkmClient_UpdateEkmConnection() { func ExampleEkmClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleEkmClient_GetIamPolicy() { func ExampleEkmClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -165,6 +200,11 @@ func ExampleEkmClient_SetIamPolicy() { func ExampleEkmClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. diff --git a/kms/apiv1/key_management_client.go b/kms/apiv1/key_management_client.go index 9ea51ecb7b2..2903f699344 100644 --- a/kms/apiv1/key_management_client.go +++ b/kms/apiv1/key_management_client.go @@ -460,7 +460,8 @@ func (c *KeyManagementClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *KeyManagementClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -792,7 +793,8 @@ func NewKeyManagementClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *keyManagementGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/kms/apiv1/key_management_client_example_test.go b/kms/apiv1/key_management_client_example_test.go index 4797d809f2e..d0cb2c2f040 100644 --- a/kms/apiv1/key_management_client_example_test.go +++ b/kms/apiv1/key_management_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewKeyManagementClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewKeyManagementClient() { func ExampleKeyManagementClient_ListKeyRings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleKeyManagementClient_ListKeyRings() { func ExampleKeyManagementClient_ListCryptoKeys() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -91,6 +106,11 @@ func ExampleKeyManagementClient_ListCryptoKeys() { func ExampleKeyManagementClient_ListCryptoKeyVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +137,11 @@ func ExampleKeyManagementClient_ListCryptoKeyVersions() { func ExampleKeyManagementClient_ListImportJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +168,11 @@ func ExampleKeyManagementClient_ListImportJobs() { func ExampleKeyManagementClient_GetKeyRing() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +193,11 @@ func ExampleKeyManagementClient_GetKeyRing() { func ExampleKeyManagementClient_GetCryptoKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleKeyManagementClient_GetCryptoKey() { func ExampleKeyManagementClient_GetCryptoKeyVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleKeyManagementClient_GetCryptoKeyVersion() { func ExampleKeyManagementClient_GetPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +268,11 @@ func ExampleKeyManagementClient_GetPublicKey() { func ExampleKeyManagementClient_GetImportJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleKeyManagementClient_GetImportJob() { func ExampleKeyManagementClient_CreateKeyRing() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +318,11 @@ func ExampleKeyManagementClient_CreateKeyRing() { func ExampleKeyManagementClient_CreateCryptoKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -283,6 +343,11 @@ func ExampleKeyManagementClient_CreateCryptoKey() { func ExampleKeyManagementClient_CreateCryptoKeyVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -303,6 +368,11 @@ func ExampleKeyManagementClient_CreateCryptoKeyVersion() { func ExampleKeyManagementClient_ImportCryptoKeyVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -323,6 +393,11 @@ func ExampleKeyManagementClient_ImportCryptoKeyVersion() { func ExampleKeyManagementClient_CreateImportJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -343,6 +418,11 @@ func ExampleKeyManagementClient_CreateImportJob() { func ExampleKeyManagementClient_UpdateCryptoKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -363,6 +443,11 @@ func ExampleKeyManagementClient_UpdateCryptoKey() { func ExampleKeyManagementClient_UpdateCryptoKeyVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -383,6 +468,11 @@ func ExampleKeyManagementClient_UpdateCryptoKeyVersion() { func ExampleKeyManagementClient_UpdateCryptoKeyPrimaryVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -403,6 +493,11 @@ func ExampleKeyManagementClient_UpdateCryptoKeyPrimaryVersion() { func ExampleKeyManagementClient_DestroyCryptoKeyVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -423,6 +518,11 @@ func ExampleKeyManagementClient_DestroyCryptoKeyVersion() { func ExampleKeyManagementClient_RestoreCryptoKeyVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +543,11 @@ func ExampleKeyManagementClient_RestoreCryptoKeyVersion() { func ExampleKeyManagementClient_Encrypt() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -463,6 +568,11 @@ func ExampleKeyManagementClient_Encrypt() { func ExampleKeyManagementClient_Decrypt() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -483,6 +593,11 @@ func ExampleKeyManagementClient_Decrypt() { func ExampleKeyManagementClient_AsymmetricSign() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -503,6 +618,11 @@ func ExampleKeyManagementClient_AsymmetricSign() { func ExampleKeyManagementClient_AsymmetricDecrypt() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -523,6 +643,11 @@ func ExampleKeyManagementClient_AsymmetricDecrypt() { func ExampleKeyManagementClient_MacSign() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -543,6 +668,11 @@ func ExampleKeyManagementClient_MacSign() { func ExampleKeyManagementClient_MacVerify() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -563,6 +693,11 @@ func ExampleKeyManagementClient_MacVerify() { func ExampleKeyManagementClient_GenerateRandomBytes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -583,6 +718,11 @@ func ExampleKeyManagementClient_GenerateRandomBytes() { func ExampleKeyManagementClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -603,6 +743,11 @@ func ExampleKeyManagementClient_GetIamPolicy() { func ExampleKeyManagementClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -623,6 +768,11 @@ func ExampleKeyManagementClient_SetIamPolicy() { func ExampleKeyManagementClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/kms/go.mod b/kms/go.mod index 1f7fdbf5610..8e50be63301 100644 --- a/kms/go.mod +++ b/kms/go.mod @@ -5,9 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 cloud.google.com/go/iam v0.3.0 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -16,11 +15,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/kms/go.sum b/kms/go.sum index cc0843fd8cc..bd0b8a2a40d 100644 --- a/kms/go.sum +++ b/kms/go.sum @@ -314,8 +314,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -500,8 +501,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/language/apiv1/doc.go b/language/apiv1/doc.go index f1b3b326a93..a4f424d10c6 100644 --- a/language/apiv1/doc.go +++ b/language/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := language.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := language.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/language/apiv1/language_client.go b/language/apiv1/language_client.go index f13881b5768..edb93717294 100644 --- a/language/apiv1/language_client.go +++ b/language/apiv1/language_client.go @@ -175,7 +175,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -277,7 +278,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/language/apiv1/language_client_example_test.go b/language/apiv1/language_client_example_test.go index fa0f6110c7b..feb65b244d2 100644 --- a/language/apiv1/language_client_example_test.go +++ b/language/apiv1/language_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_AnalyzeSentiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleClient_AnalyzeSentiment() { func ExampleClient_AnalyzeEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_AnalyzeEntities() { func ExampleClient_AnalyzeEntitySentiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleClient_AnalyzeEntitySentiment() { func ExampleClient_AnalyzeSyntax() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleClient_AnalyzeSyntax() { func ExampleClient_ClassifyText() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +167,11 @@ func ExampleClient_ClassifyText() { func ExampleClient_AnnotateText() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/language/apiv1beta2/doc.go b/language/apiv1beta2/doc.go index d02f914bf47..d8d4eacc40f 100644 --- a/language/apiv1beta2/doc.go +++ b/language/apiv1beta2/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := language.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := language.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/language/apiv1beta2/language_client.go b/language/apiv1beta2/language_client.go index bbf7b8dbfc5..a6e1bc4af85 100644 --- a/language/apiv1beta2/language_client.go +++ b/language/apiv1beta2/language_client.go @@ -254,7 +254,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -356,7 +357,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -441,7 +443,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } diff --git a/language/apiv1beta2/language_client_example_test.go b/language/apiv1beta2/language_client_example_test.go index 1d5b10648d0..64ec58e8f53 100644 --- a/language/apiv1beta2/language_client_example_test.go +++ b/language/apiv1beta2/language_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewRESTClient() { func ExampleClient_AnalyzeSentiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleClient_AnalyzeSentiment() { func ExampleClient_AnalyzeEntities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +109,11 @@ func ExampleClient_AnalyzeEntities() { func ExampleClient_AnalyzeEntitySentiment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +134,11 @@ func ExampleClient_AnalyzeEntitySentiment() { func ExampleClient_AnalyzeSyntax() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +159,11 @@ func ExampleClient_AnalyzeSyntax() { func ExampleClient_ClassifyText() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -149,6 +184,11 @@ func ExampleClient_ClassifyText() { func ExampleClient_AnnotateText() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/language/go.mod b/language/go.mod index 182031b68db..d5c7cf66c48 100644 --- a/language/go.mod +++ b/language/go.mod @@ -4,10 +4,9 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -15,12 +14,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/language/go.sum b/language/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/language/go.sum +++ b/language/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/lifesciences/apiv2beta/doc.go b/lifesciences/apiv2beta/doc.go index 79277ec6f98..9c757bba666 100644 --- a/lifesciences/apiv2beta/doc.go +++ b/lifesciences/apiv2beta/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/lifesciences/apiv2beta/workflows_service_v2_beta_client.go b/lifesciences/apiv2beta/workflows_service_v2_beta_client.go index 66ff6f1d462..34e3e3719aa 100644 --- a/lifesciences/apiv2beta/workflows_service_v2_beta_client.go +++ b/lifesciences/apiv2beta/workflows_service_v2_beta_client.go @@ -116,7 +116,8 @@ func (c *WorkflowsServiceV2BetaClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *WorkflowsServiceV2BetaClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -225,7 +226,8 @@ func NewWorkflowsServiceV2BetaClient(ctx context.Context, opts ...option.ClientO // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *workflowsServiceV2BetaGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -325,7 +327,7 @@ func (c *workflowsServiceV2BetaRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *workflowsServiceV2BetaRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/lifesciences/apiv2beta/workflows_service_v2_beta_client_example_test.go b/lifesciences/apiv2beta/workflows_service_v2_beta_client_example_test.go index 4043185948c..e03f1958977 100644 --- a/lifesciences/apiv2beta/workflows_service_v2_beta_client_example_test.go +++ b/lifesciences/apiv2beta/workflows_service_v2_beta_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewWorkflowsServiceV2BetaClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewWorkflowsServiceV2BetaClient() { func ExampleNewWorkflowsServiceV2BetaRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := lifesciences.NewWorkflowsServiceV2BetaRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewWorkflowsServiceV2BetaRESTClient() { func ExampleWorkflowsServiceV2BetaClient_RunPipeline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) if err != nil { // TODO: Handle error. diff --git a/lifesciences/go.mod b/lifesciences/go.mod index 7217d827d9d..eaa8660ceef 100644 --- a/lifesciences/go.mod +++ b/lifesciences/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/lifesciences/go.sum b/lifesciences/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/lifesciences/go.sum +++ b/lifesciences/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/logging/apiv2/config_client.go b/logging/apiv2/config_client.go index d79b0b837a8..14161ebda8a 100644 --- a/logging/apiv2/config_client.go +++ b/logging/apiv2/config_client.go @@ -265,7 +265,8 @@ func (c *ConfigClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ConfigClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -563,7 +564,8 @@ func NewConfigClient(ctx context.Context, opts ...option.ClientOption) (*ConfigC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *configGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/logging/apiv2/config_client_example_test.go b/logging/apiv2/config_client_example_test.go index 6cd1295c5e2..93af90269f3 100644 --- a/logging/apiv2/config_client_example_test.go +++ b/logging/apiv2/config_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewConfigClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewConfigClient() { func ExampleConfigClient_ListBuckets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleConfigClient_ListBuckets() { func ExampleConfigClient_GetBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleConfigClient_GetBucket() { func ExampleConfigClient_CreateBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleConfigClient_CreateBucket() { func ExampleConfigClient_UpdateBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleConfigClient_UpdateBucket() { func ExampleConfigClient_DeleteBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleConfigClient_DeleteBucket() { func ExampleConfigClient_UndeleteBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +195,11 @@ func ExampleConfigClient_UndeleteBucket() { func ExampleConfigClient_ListViews() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +226,11 @@ func ExampleConfigClient_ListViews() { func ExampleConfigClient_GetView() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +251,11 @@ func ExampleConfigClient_GetView() { func ExampleConfigClient_CreateView() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleConfigClient_CreateView() { func ExampleConfigClient_UpdateView() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +301,11 @@ func ExampleConfigClient_UpdateView() { func ExampleConfigClient_DeleteView() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -264,6 +324,11 @@ func ExampleConfigClient_DeleteView() { func ExampleConfigClient_ListSinks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -290,6 +355,11 @@ func ExampleConfigClient_ListSinks() { func ExampleConfigClient_GetSink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -310,6 +380,11 @@ func ExampleConfigClient_GetSink() { func ExampleConfigClient_CreateSink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -330,6 +405,11 @@ func ExampleConfigClient_CreateSink() { func ExampleConfigClient_UpdateSink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -350,6 +430,11 @@ func ExampleConfigClient_UpdateSink() { func ExampleConfigClient_DeleteSink() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -368,6 +453,11 @@ func ExampleConfigClient_DeleteSink() { func ExampleConfigClient_ListExclusions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -394,6 +484,11 @@ func ExampleConfigClient_ListExclusions() { func ExampleConfigClient_GetExclusion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -414,6 +509,11 @@ func ExampleConfigClient_GetExclusion() { func ExampleConfigClient_CreateExclusion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -434,6 +534,11 @@ func ExampleConfigClient_CreateExclusion() { func ExampleConfigClient_UpdateExclusion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -454,6 +559,11 @@ func ExampleConfigClient_UpdateExclusion() { func ExampleConfigClient_DeleteExclusion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -472,6 +582,11 @@ func ExampleConfigClient_DeleteExclusion() { func ExampleConfigClient_GetCmekSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -492,6 +607,11 @@ func ExampleConfigClient_GetCmekSettings() { func ExampleConfigClient_UpdateCmekSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -512,6 +632,11 @@ func ExampleConfigClient_UpdateCmekSettings() { func ExampleConfigClient_GetSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -532,6 +657,11 @@ func ExampleConfigClient_GetSettings() { func ExampleConfigClient_UpdateSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -552,6 +682,11 @@ func ExampleConfigClient_UpdateSettings() { func ExampleConfigClient_CopyLogEntries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. diff --git a/logging/apiv2/doc.go b/logging/apiv2/doc.go index 0cac3214af3..f748605c42c 100644 --- a/logging/apiv2/doc.go +++ b/logging/apiv2/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := logging.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := logging.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/logging/apiv2/logging_client.go b/logging/apiv2/logging_client.go index fdea038c488..fe67949eae0 100644 --- a/logging/apiv2/logging_client.go +++ b/logging/apiv2/logging_client.go @@ -185,7 +185,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -294,7 +295,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/logging/apiv2/logging_client_example_test.go b/logging/apiv2/logging_client_example_test.go index 7022a73ba6d..86aee754549 100644 --- a/logging/apiv2/logging_client_example_test.go +++ b/logging/apiv2/logging_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_DeleteLog() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleClient_DeleteLog() { func ExampleClient_WriteLogEntries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_WriteLogEntries() { func ExampleClient_ListLogEntries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -103,6 +123,11 @@ func ExampleClient_ListLogEntries() { func ExampleClient_ListMonitoredResourceDescriptors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleClient_ListMonitoredResourceDescriptors() { func ExampleClient_ListLogs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +185,11 @@ func ExampleClient_ListLogs() { func ExampleClient_TailLogEntries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/logging/apiv2/metrics_client.go b/logging/apiv2/metrics_client.go index 3f32953e92c..ae5b6d4262e 100644 --- a/logging/apiv2/metrics_client.go +++ b/logging/apiv2/metrics_client.go @@ -157,7 +157,8 @@ func (c *MetricsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MetricsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -247,7 +248,8 @@ func NewMetricsClient(ctx context.Context, opts ...option.ClientOption) (*Metric // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *metricsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/logging/apiv2/metrics_client_example_test.go b/logging/apiv2/metrics_client_example_test.go index 57ea584a543..8a07c55b390 100644 --- a/logging/apiv2/metrics_client_example_test.go +++ b/logging/apiv2/metrics_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewMetricsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewMetricsClient() { func ExampleMetricsClient_ListLogMetrics() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleMetricsClient_ListLogMetrics() { func ExampleMetricsClient_GetLogMetric() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleMetricsClient_GetLogMetric() { func ExampleMetricsClient_CreateLogMetric() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleMetricsClient_CreateLogMetric() { func ExampleMetricsClient_UpdateLogMetric() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleMetricsClient_UpdateLogMetric() { func ExampleMetricsClient_DeleteLogMetric() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/logging/go.mod b/logging/go.mod index b0bf8cec2ce..579c087d27d 100644 --- a/logging/go.mod +++ b/logging/go.mod @@ -11,9 +11,9 @@ require ( github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.4.0 go.opencensus.io v0.23.0 - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -23,9 +23,9 @@ require ( github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect github.com/googleapis/go-type-adapters v1.0.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/logging/go.sum b/logging/go.sum index 08591ae3518..cc0aa6896c2 100644 --- a/logging/go.sum +++ b/logging/go.sum @@ -298,8 +298,9 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -320,8 +321,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -393,8 +395,9 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -508,8 +511,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -596,8 +600,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/longrunning/autogen/doc.go b/longrunning/autogen/doc.go index 2ff52ee4416..0e1d43f6986 100644 --- a/longrunning/autogen/doc.go +++ b/longrunning/autogen/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := longrunning.NewOperationsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := longrunning.NewOperationsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/longrunning/autogen/operations_client.go b/longrunning/autogen/operations_client.go index 2a6eead2bdb..b17a4035fc8 100644 --- a/longrunning/autogen/operations_client.go +++ b/longrunning/autogen/operations_client.go @@ -209,7 +209,8 @@ func (c *OperationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *OperationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -338,7 +339,8 @@ func NewOperationsClient(ctx context.Context, opts ...option.ClientOption) (*Ope // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *operationsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -430,7 +432,7 @@ func (c *operationsRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *operationsRESTClient) Connection() *grpc.ClientConn { return nil } @@ -814,11 +816,12 @@ func (c *operationsRESTClient) WaitOperation(ctx context.Context, req *longrunni if req.GetName() != "" { params.Add("name", fmt.Sprintf("%v", req.GetName())) } - if req.GetTimeout().GetNanos() != 0 { - params.Add("timeout.nanos", fmt.Sprintf("%v", req.GetTimeout().GetNanos())) - } - if req.GetTimeout().GetSeconds() != 0 { - params.Add("timeout.seconds", fmt.Sprintf("%v", req.GetTimeout().GetSeconds())) + if req.GetTimeout() != nil { + timeout, err := protojson.Marshal(req.GetTimeout()) + if err != nil { + return nil, err + } + params.Add("timeout", string(timeout)) } baseUrl.RawQuery = params.Encode() diff --git a/longrunning/autogen/operations_client_example_test.go b/longrunning/autogen/operations_client_example_test.go index 1a49acde38a..02f04b805d1 100644 --- a/longrunning/autogen/operations_client_example_test.go +++ b/longrunning/autogen/operations_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewOperationsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewOperationsClient() { func ExampleNewOperationsRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewOperationsRESTClient() { func ExampleOperationsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleOperationsClient_ListOperations() { func ExampleOperationsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleOperationsClient_GetOperation() { func ExampleOperationsClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -114,6 +139,11 @@ func ExampleOperationsClient_DeleteOperation() { func ExampleOperationsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +162,11 @@ func ExampleOperationsClient_CancelOperation() { func ExampleOperationsClient_WaitOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/managedidentities/apiv1/doc.go b/managedidentities/apiv1/doc.go index 9dfc107d568..7bdc51f3760 100644 --- a/managedidentities/apiv1/doc.go +++ b/managedidentities/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := managedidentities.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := managedidentities.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/managedidentities/apiv1/managed_identities_client.go b/managedidentities/apiv1/managed_identities_client.go index d4befe7cf25..e255be8dbb3 100644 --- a/managedidentities/apiv1/managed_identities_client.go +++ b/managedidentities/apiv1/managed_identities_client.go @@ -176,7 +176,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -388,7 +389,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/managedidentities/apiv1/managed_identities_client_example_test.go b/managedidentities/apiv1/managed_identities_client_example_test.go index 1f6f4c5a47b..559a54184dd 100644 --- a/managedidentities/apiv1/managed_identities_client_example_test.go +++ b/managedidentities/apiv1/managed_identities_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateMicrosoftAdDomain() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleClient_CreateMicrosoftAdDomain() { func ExampleClient_ResetAdminPassword() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleClient_ResetAdminPassword() { func ExampleClient_ListDomains() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_ListDomains() { func ExampleClient_GetDomain() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleClient_GetDomain() { func ExampleClient_UpdateDomain() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +184,11 @@ func ExampleClient_UpdateDomain() { func ExampleClient_DeleteDomain() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +212,11 @@ func ExampleClient_DeleteDomain() { func ExampleClient_AttachTrust() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +242,11 @@ func ExampleClient_AttachTrust() { func ExampleClient_ReconfigureTrust() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -227,6 +272,11 @@ func ExampleClient_ReconfigureTrust() { func ExampleClient_DetachTrust() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -252,6 +302,11 @@ func ExampleClient_DetachTrust() { func ExampleClient_ValidateTrust() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/managedidentities/go.mod b/managedidentities/go.mod index 449fa547fe2..8e7eee720d2 100644 --- a/managedidentities/go.mod +++ b/managedidentities/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/managedidentities/go.sum b/managedidentities/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/managedidentities/go.sum +++ b/managedidentities/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/mediatranslation/apiv1beta1/doc.go b/mediatranslation/apiv1beta1/doc.go index c701b6d5f4c..05061408e9d 100644 --- a/mediatranslation/apiv1beta1/doc.go +++ b/mediatranslation/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := mediatranslation.NewSpeechTranslationClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := mediatranslation.NewSpeechTranslationClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/mediatranslation/apiv1beta1/speech_translation_client.go b/mediatranslation/apiv1beta1/speech_translation_client.go index 72388dc5d09..70b8557f7c8 100644 --- a/mediatranslation/apiv1beta1/speech_translation_client.go +++ b/mediatranslation/apiv1beta1/speech_translation_client.go @@ -91,7 +91,8 @@ func (c *SpeechTranslationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SpeechTranslationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -162,7 +163,8 @@ func NewSpeechTranslationClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *speechTranslationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/mediatranslation/apiv1beta1/speech_translation_client_example_test.go b/mediatranslation/apiv1beta1/speech_translation_client_example_test.go index b402b50d9b6..9dabbbb1bc2 100644 --- a/mediatranslation/apiv1beta1/speech_translation_client_example_test.go +++ b/mediatranslation/apiv1beta1/speech_translation_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewSpeechTranslationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := mediatranslation.NewSpeechTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewSpeechTranslationClient() { func ExampleSpeechTranslationClient_StreamingTranslateSpeech() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := mediatranslation.NewSpeechTranslationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/mediatranslation/go.mod b/mediatranslation/go.mod index 1b947e91c0e..c6927e53a7c 100644 --- a/mediatranslation/go.mod +++ b/mediatranslation/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 ) @@ -17,7 +17,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/mediatranslation/go.sum b/mediatranslation/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/mediatranslation/go.sum +++ b/mediatranslation/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/memcache/apiv1/cloud_memcache_client.go b/memcache/apiv1/cloud_memcache_client.go index caede0a0b48..944c14fe361 100644 --- a/memcache/apiv1/cloud_memcache_client.go +++ b/memcache/apiv1/cloud_memcache_client.go @@ -145,7 +145,8 @@ func (c *CloudMemcacheClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudMemcacheClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -312,7 +313,8 @@ func NewCloudMemcacheClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudMemcacheGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/memcache/apiv1/cloud_memcache_client_example_test.go b/memcache/apiv1/cloud_memcache_client_example_test.go index 3b38d435758..74e0abd1fe6 100644 --- a/memcache/apiv1/cloud_memcache_client_example_test.go +++ b/memcache/apiv1/cloud_memcache_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudMemcacheClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudMemcacheClient() { func ExampleCloudMemcacheClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleCloudMemcacheClient_ListInstances() { func ExampleCloudMemcacheClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleCloudMemcacheClient_GetInstance() { func ExampleCloudMemcacheClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleCloudMemcacheClient_CreateInstance() { func ExampleCloudMemcacheClient_UpdateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleCloudMemcacheClient_UpdateInstance() { func ExampleCloudMemcacheClient_UpdateParameters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleCloudMemcacheClient_UpdateParameters() { func ExampleCloudMemcacheClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleCloudMemcacheClient_DeleteInstance() { func ExampleCloudMemcacheClient_ApplyParameters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. diff --git a/memcache/apiv1/doc.go b/memcache/apiv1/doc.go index 0b2841d77fd..ea0b4138a78 100644 --- a/memcache/apiv1/doc.go +++ b/memcache/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := memcache.NewCloudMemcacheClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := memcache.NewCloudMemcacheClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/memcache/apiv1beta2/cloud_memcache_client.go b/memcache/apiv1beta2/cloud_memcache_client.go index 96e5de0f7c8..790bec5f981 100644 --- a/memcache/apiv1beta2/cloud_memcache_client.go +++ b/memcache/apiv1beta2/cloud_memcache_client.go @@ -168,7 +168,8 @@ func (c *CloudMemcacheClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudMemcacheClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -347,7 +348,8 @@ func NewCloudMemcacheClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudMemcacheGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -464,7 +466,7 @@ func (c *cloudMemcacheRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *cloudMemcacheRESTClient) Connection() *grpc.ClientConn { return nil } @@ -910,8 +912,12 @@ func (c *cloudMemcacheRESTClient) UpdateInstance(ctx context.Context, req *memca baseUrl.Path += fmt.Sprintf("/v1beta2/%v", req.GetResource().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/memcache/apiv1beta2/cloud_memcache_client_example_test.go b/memcache/apiv1beta2/cloud_memcache_client_example_test.go index eadd6de3b05..c3a3b9ec55a 100644 --- a/memcache/apiv1beta2/cloud_memcache_client_example_test.go +++ b/memcache/apiv1beta2/cloud_memcache_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudMemcacheClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudMemcacheClient() { func ExampleNewCloudMemcacheRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewCloudMemcacheRESTClient() { func ExampleCloudMemcacheClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleCloudMemcacheClient_ListInstances() { func ExampleCloudMemcacheClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleCloudMemcacheClient_GetInstance() { func ExampleCloudMemcacheClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -121,6 +146,11 @@ func ExampleCloudMemcacheClient_CreateInstance() { func ExampleCloudMemcacheClient_UpdateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -146,6 +176,11 @@ func ExampleCloudMemcacheClient_UpdateInstance() { func ExampleCloudMemcacheClient_UpdateParameters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -171,6 +206,11 @@ func ExampleCloudMemcacheClient_UpdateParameters() { func ExampleCloudMemcacheClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +234,11 @@ func ExampleCloudMemcacheClient_DeleteInstance() { func ExampleCloudMemcacheClient_ApplyParameters() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleCloudMemcacheClient_ApplyParameters() { func ExampleCloudMemcacheClient_ApplySoftwareUpdate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. diff --git a/memcache/apiv1beta2/doc.go b/memcache/apiv1beta2/doc.go index 645666d0809..fd82e3bba60 100644 --- a/memcache/apiv1beta2/doc.go +++ b/memcache/apiv1beta2/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := memcache.NewCloudMemcacheClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := memcache.NewCloudMemcacheClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/memcache/go.mod b/memcache/go.mod index 051023d6c06..4f4fd5a7d15 100644 --- a/memcache/go.mod +++ b/memcache/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/memcache/go.sum b/memcache/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/memcache/go.sum +++ b/memcache/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/metastore/apiv1/dataproc_metastore_client.go b/metastore/apiv1/dataproc_metastore_client.go index d9c1082e072..c9bcaf70f35 100644 --- a/metastore/apiv1/dataproc_metastore_client.go +++ b/metastore/apiv1/dataproc_metastore_client.go @@ -235,7 +235,8 @@ func (c *DataprocMetastoreClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DataprocMetastoreClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -465,7 +466,8 @@ func NewDataprocMetastoreClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *dataprocMetastoreGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/metastore/apiv1/dataproc_metastore_client_example_test.go b/metastore/apiv1/dataproc_metastore_client_example_test.go index 9ef36f28601..2096849d6f5 100644 --- a/metastore/apiv1/dataproc_metastore_client_example_test.go +++ b/metastore/apiv1/dataproc_metastore_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewDataprocMetastoreClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewDataprocMetastoreClient() { func ExampleDataprocMetastoreClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleDataprocMetastoreClient_ListServices() { func ExampleDataprocMetastoreClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleDataprocMetastoreClient_GetService() { func ExampleDataprocMetastoreClient_CreateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleDataprocMetastoreClient_CreateService() { func ExampleDataprocMetastoreClient_UpdateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleDataprocMetastoreClient_UpdateService() { func ExampleDataprocMetastoreClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleDataprocMetastoreClient_DeleteService() { func ExampleDataprocMetastoreClient_ListMetadataImports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleDataprocMetastoreClient_ListMetadataImports() { func ExampleDataprocMetastoreClient_GetMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleDataprocMetastoreClient_GetMetadataImport() { func ExampleDataprocMetastoreClient_CreateMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleDataprocMetastoreClient_CreateMetadataImport() { func ExampleDataprocMetastoreClient_UpdateMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleDataprocMetastoreClient_UpdateMetadataImport() { func ExampleDataprocMetastoreClient_ExportMetadata() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +333,11 @@ func ExampleDataprocMetastoreClient_ExportMetadata() { func ExampleDataprocMetastoreClient_RestoreService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -303,6 +363,11 @@ func ExampleDataprocMetastoreClient_RestoreService() { func ExampleDataprocMetastoreClient_ListBackups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -329,6 +394,11 @@ func ExampleDataprocMetastoreClient_ListBackups() { func ExampleDataprocMetastoreClient_GetBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +419,11 @@ func ExampleDataprocMetastoreClient_GetBackup() { func ExampleDataprocMetastoreClient_CreateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -374,6 +449,11 @@ func ExampleDataprocMetastoreClient_CreateBackup() { func ExampleDataprocMetastoreClient_DeleteBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/metastore/apiv1/doc.go b/metastore/apiv1/doc.go index ef1189613f5..7b99260d6e1 100644 --- a/metastore/apiv1/doc.go +++ b/metastore/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := metastore.NewDataprocMetastoreClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := metastore.NewDataprocMetastoreClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/metastore/apiv1alpha/dataproc_metastore_client.go b/metastore/apiv1alpha/dataproc_metastore_client.go index cddc56b9a5f..d4fbe8e8391 100644 --- a/metastore/apiv1alpha/dataproc_metastore_client.go +++ b/metastore/apiv1alpha/dataproc_metastore_client.go @@ -235,7 +235,8 @@ func (c *DataprocMetastoreClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DataprocMetastoreClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -465,7 +466,8 @@ func NewDataprocMetastoreClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *dataprocMetastoreGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/metastore/apiv1alpha/dataproc_metastore_client_example_test.go b/metastore/apiv1alpha/dataproc_metastore_client_example_test.go index a11ecf12eb8..0a151ff3153 100644 --- a/metastore/apiv1alpha/dataproc_metastore_client_example_test.go +++ b/metastore/apiv1alpha/dataproc_metastore_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewDataprocMetastoreClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewDataprocMetastoreClient() { func ExampleDataprocMetastoreClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleDataprocMetastoreClient_ListServices() { func ExampleDataprocMetastoreClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleDataprocMetastoreClient_GetService() { func ExampleDataprocMetastoreClient_CreateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleDataprocMetastoreClient_CreateService() { func ExampleDataprocMetastoreClient_UpdateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleDataprocMetastoreClient_UpdateService() { func ExampleDataprocMetastoreClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleDataprocMetastoreClient_DeleteService() { func ExampleDataprocMetastoreClient_ListMetadataImports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleDataprocMetastoreClient_ListMetadataImports() { func ExampleDataprocMetastoreClient_GetMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleDataprocMetastoreClient_GetMetadataImport() { func ExampleDataprocMetastoreClient_CreateMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleDataprocMetastoreClient_CreateMetadataImport() { func ExampleDataprocMetastoreClient_UpdateMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleDataprocMetastoreClient_UpdateMetadataImport() { func ExampleDataprocMetastoreClient_ExportMetadata() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +333,11 @@ func ExampleDataprocMetastoreClient_ExportMetadata() { func ExampleDataprocMetastoreClient_RestoreService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -303,6 +363,11 @@ func ExampleDataprocMetastoreClient_RestoreService() { func ExampleDataprocMetastoreClient_ListBackups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -329,6 +394,11 @@ func ExampleDataprocMetastoreClient_ListBackups() { func ExampleDataprocMetastoreClient_GetBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -349,6 +419,11 @@ func ExampleDataprocMetastoreClient_GetBackup() { func ExampleDataprocMetastoreClient_CreateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -374,6 +449,11 @@ func ExampleDataprocMetastoreClient_CreateBackup() { func ExampleDataprocMetastoreClient_DeleteBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/metastore/apiv1alpha/doc.go b/metastore/apiv1alpha/doc.go index 8cf0d79be6e..459a28704e4 100644 --- a/metastore/apiv1alpha/doc.go +++ b/metastore/apiv1alpha/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := metastore.NewDataprocMetastoreClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := metastore.NewDataprocMetastoreClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/metastore/apiv1beta/dataproc_metastore_client.go b/metastore/apiv1beta/dataproc_metastore_client.go index bbb272b6d9a..d2a4640bf27 100644 --- a/metastore/apiv1beta/dataproc_metastore_client.go +++ b/metastore/apiv1beta/dataproc_metastore_client.go @@ -315,7 +315,8 @@ func (c *DataprocMetastoreClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DataprocMetastoreClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -545,7 +546,8 @@ func NewDataprocMetastoreClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *dataprocMetastoreGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -663,7 +665,7 @@ func (c *dataprocMetastoreRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *dataprocMetastoreRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1321,8 +1323,12 @@ func (c *dataprocMetastoreRESTClient) UpdateService(ctx context.Context, req *me if req.GetRequestId() != "" { params.Add("requestId", fmt.Sprintf("%v", req.GetRequestId())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -1678,8 +1684,12 @@ func (c *dataprocMetastoreRESTClient) UpdateMetadataImport(ctx context.Context, if req.GetRequestId() != "" { params.Add("requestId", fmt.Sprintf("%v", req.GetRequestId())) } - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/metastore/apiv1beta/dataproc_metastore_client_example_test.go b/metastore/apiv1beta/dataproc_metastore_client_example_test.go index 037c678ae7a..a447a5fa951 100644 --- a/metastore/apiv1beta/dataproc_metastore_client_example_test.go +++ b/metastore/apiv1beta/dataproc_metastore_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewDataprocMetastoreClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewDataprocMetastoreClient() { func ExampleNewDataprocMetastoreRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewDataprocMetastoreRESTClient() { func ExampleDataprocMetastoreClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleDataprocMetastoreClient_ListServices() { func ExampleDataprocMetastoreClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleDataprocMetastoreClient_GetService() { func ExampleDataprocMetastoreClient_CreateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -121,6 +146,11 @@ func ExampleDataprocMetastoreClient_CreateService() { func ExampleDataprocMetastoreClient_UpdateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -146,6 +176,11 @@ func ExampleDataprocMetastoreClient_UpdateService() { func ExampleDataprocMetastoreClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleDataprocMetastoreClient_DeleteService() { func ExampleDataprocMetastoreClient_ListMetadataImports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -195,6 +235,11 @@ func ExampleDataprocMetastoreClient_ListMetadataImports() { func ExampleDataprocMetastoreClient_GetMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +260,11 @@ func ExampleDataprocMetastoreClient_GetMetadataImport() { func ExampleDataprocMetastoreClient_CreateMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +290,11 @@ func ExampleDataprocMetastoreClient_CreateMetadataImport() { func ExampleDataprocMetastoreClient_UpdateMetadataImport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -265,6 +320,11 @@ func ExampleDataprocMetastoreClient_UpdateMetadataImport() { func ExampleDataprocMetastoreClient_ExportMetadata() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -290,6 +350,11 @@ func ExampleDataprocMetastoreClient_ExportMetadata() { func ExampleDataprocMetastoreClient_RestoreService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -315,6 +380,11 @@ func ExampleDataprocMetastoreClient_RestoreService() { func ExampleDataprocMetastoreClient_ListBackups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +411,11 @@ func ExampleDataprocMetastoreClient_ListBackups() { func ExampleDataprocMetastoreClient_GetBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -361,6 +436,11 @@ func ExampleDataprocMetastoreClient_GetBackup() { func ExampleDataprocMetastoreClient_CreateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -386,6 +466,11 @@ func ExampleDataprocMetastoreClient_CreateBackup() { func ExampleDataprocMetastoreClient_DeleteBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. diff --git a/metastore/apiv1beta/doc.go b/metastore/apiv1beta/doc.go index 7257d3fde94..6224d081922 100644 --- a/metastore/apiv1beta/doc.go +++ b/metastore/apiv1beta/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := metastore.NewDataprocMetastoreClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := metastore.NewDataprocMetastoreClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/metastore/go.mod b/metastore/go.mod index 1628c46a1fa..6fa74da0de1 100644 --- a/metastore/go.mod +++ b/metastore/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/metastore/go.sum b/metastore/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/metastore/go.sum +++ b/metastore/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/monitoring/apiv3/v2/alert_policy_client.go b/monitoring/apiv3/v2/alert_policy_client.go index 8bfbcc3978a..dbd5a428167 100644 --- a/monitoring/apiv3/v2/alert_policy_client.go +++ b/monitoring/apiv3/v2/alert_policy_client.go @@ -147,7 +147,8 @@ func (c *AlertPolicyClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AlertPolicyClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -248,7 +249,8 @@ func NewAlertPolicyClient(ctx context.Context, opts ...option.ClientOption) (*Al // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *alertPolicyGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/apiv3/v2/alert_policy_client_example_test.go b/monitoring/apiv3/v2/alert_policy_client_example_test.go index a13f754e53b..c2affd3b3b4 100644 --- a/monitoring/apiv3/v2/alert_policy_client_example_test.go +++ b/monitoring/apiv3/v2/alert_policy_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAlertPolicyClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAlertPolicyClient() { func ExampleAlertPolicyClient_ListAlertPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleAlertPolicyClient_ListAlertPolicies() { func ExampleAlertPolicyClient_GetAlertPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleAlertPolicyClient_GetAlertPolicy() { func ExampleAlertPolicyClient_CreateAlertPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleAlertPolicyClient_CreateAlertPolicy() { func ExampleAlertPolicyClient_DeleteAlertPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleAlertPolicyClient_DeleteAlertPolicy() { func ExampleAlertPolicyClient_UpdateAlertPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/monitoring/apiv3/v2/doc.go b/monitoring/apiv3/v2/doc.go index a80fde8923b..36b80038956 100644 --- a/monitoring/apiv3/v2/doc.go +++ b/monitoring/apiv3/v2/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := monitoring.NewAlertPolicyClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := monitoring.NewAlertPolicyClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/monitoring/apiv3/v2/group_client.go b/monitoring/apiv3/v2/group_client.go index dc80636c757..e6f534a329d 100644 --- a/monitoring/apiv3/v2/group_client.go +++ b/monitoring/apiv3/v2/group_client.go @@ -174,7 +174,8 @@ func (c *GroupClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *GroupClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -281,7 +282,8 @@ func NewGroupClient(ctx context.Context, opts ...option.ClientOption) (*GroupCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *groupGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/apiv3/v2/group_client_example_test.go b/monitoring/apiv3/v2/group_client_example_test.go index 730c20c0abc..375d2d5c742 100644 --- a/monitoring/apiv3/v2/group_client_example_test.go +++ b/monitoring/apiv3/v2/group_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewGroupClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewGroupClient() { func ExampleGroupClient_ListGroups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleGroupClient_ListGroups() { func ExampleGroupClient_GetGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleGroupClient_GetGroup() { func ExampleGroupClient_CreateGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleGroupClient_CreateGroup() { func ExampleGroupClient_UpdateGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleGroupClient_UpdateGroup() { func ExampleGroupClient_DeleteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleGroupClient_DeleteGroup() { func ExampleGroupClient_ListGroupMembers() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. diff --git a/monitoring/apiv3/v2/metric_client.go b/monitoring/apiv3/v2/metric_client.go index af26869d32a..b046e9b346b 100644 --- a/monitoring/apiv3/v2/metric_client.go +++ b/monitoring/apiv3/v2/metric_client.go @@ -184,7 +184,8 @@ func (c *MetricClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MetricClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -312,7 +313,8 @@ func NewMetricClient(ctx context.Context, opts ...option.ClientOption) (*MetricC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *metricGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/apiv3/v2/metric_client_example_test.go b/monitoring/apiv3/v2/metric_client_example_test.go index 6127f882d96..66af8c92f0e 100644 --- a/monitoring/apiv3/v2/metric_client_example_test.go +++ b/monitoring/apiv3/v2/metric_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewMetricClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewMetricClient() { func ExampleMetricClient_ListMonitoredResourceDescriptors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleMetricClient_ListMonitoredResourceDescriptors() { func ExampleMetricClient_GetMonitoredResourceDescriptor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleMetricClient_GetMonitoredResourceDescriptor() { func ExampleMetricClient_ListMetricDescriptors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleMetricClient_ListMetricDescriptors() { func ExampleMetricClient_GetMetricDescriptor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleMetricClient_GetMetricDescriptor() { func ExampleMetricClient_CreateMetricDescriptor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleMetricClient_CreateMetricDescriptor() { func ExampleMetricClient_DeleteMetricDescriptor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleMetricClient_DeleteMetricDescriptor() { func ExampleMetricClient_ListTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +234,11 @@ func ExampleMetricClient_ListTimeSeries() { func ExampleMetricClient_CreateTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleMetricClient_CreateTimeSeries() { func ExampleMetricClient_CreateServiceTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. diff --git a/monitoring/apiv3/v2/notification_channel_client.go b/monitoring/apiv3/v2/notification_channel_client.go index a9dbf482c94..591dd289e7d 100644 --- a/monitoring/apiv3/v2/notification_channel_client.go +++ b/monitoring/apiv3/v2/notification_channel_client.go @@ -195,7 +195,8 @@ func (c *NotificationChannelClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NotificationChannelClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -342,7 +343,8 @@ func NewNotificationChannelClient(ctx context.Context, opts ...option.ClientOpti // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *notificationChannelGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/apiv3/v2/notification_channel_client_example_test.go b/monitoring/apiv3/v2/notification_channel_client_example_test.go index bb00e38e205..8d24d335250 100644 --- a/monitoring/apiv3/v2/notification_channel_client_example_test.go +++ b/monitoring/apiv3/v2/notification_channel_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNotificationChannelClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNotificationChannelClient() { func ExampleNotificationChannelClient_ListNotificationChannelDescriptors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleNotificationChannelClient_ListNotificationChannelDescriptors() { func ExampleNotificationChannelClient_GetNotificationChannelDescriptor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleNotificationChannelClient_GetNotificationChannelDescriptor() { func ExampleNotificationChannelClient_ListNotificationChannels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleNotificationChannelClient_ListNotificationChannels() { func ExampleNotificationChannelClient_GetNotificationChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleNotificationChannelClient_GetNotificationChannel() { func ExampleNotificationChannelClient_CreateNotificationChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleNotificationChannelClient_CreateNotificationChannel() { func ExampleNotificationChannelClient_UpdateNotificationChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleNotificationChannelClient_UpdateNotificationChannel() { func ExampleNotificationChannelClient_DeleteNotificationChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleNotificationChannelClient_DeleteNotificationChannel() { func ExampleNotificationChannelClient_SendNotificationChannelVerificationCode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +251,11 @@ func ExampleNotificationChannelClient_SendNotificationChannelVerificationCode() func ExampleNotificationChannelClient_GetNotificationChannelVerificationCode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -226,6 +276,11 @@ func ExampleNotificationChannelClient_GetNotificationChannelVerificationCode() { func ExampleNotificationChannelClient_VerifyNotificationChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/monitoring/apiv3/v2/query_client.go b/monitoring/apiv3/v2/query_client.go index fcca41b4d3f..f3a85c9a660 100644 --- a/monitoring/apiv3/v2/query_client.go +++ b/monitoring/apiv3/v2/query_client.go @@ -97,7 +97,8 @@ func (c *QueryClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *QueryClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -169,7 +170,8 @@ func NewQueryClient(ctx context.Context, opts ...option.ClientOption) (*QueryCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *queryGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/apiv3/v2/query_client_example_test.go b/monitoring/apiv3/v2/query_client_example_test.go index e12215a0f5c..5d996a6cd04 100644 --- a/monitoring/apiv3/v2/query_client_example_test.go +++ b/monitoring/apiv3/v2/query_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewQueryClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewQueryClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewQueryClient() { func ExampleQueryClient_QueryTimeSeries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewQueryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/monitoring/apiv3/v2/service_monitoring_client.go b/monitoring/apiv3/v2/service_monitoring_client.go index 8ff00354528..56f8b4d0600 100644 --- a/monitoring/apiv3/v2/service_monitoring_client.go +++ b/monitoring/apiv3/v2/service_monitoring_client.go @@ -187,7 +187,8 @@ func (c *ServiceMonitoringClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServiceMonitoringClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -305,7 +306,8 @@ func NewServiceMonitoringClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *serviceMonitoringGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/apiv3/v2/service_monitoring_client_example_test.go b/monitoring/apiv3/v2/service_monitoring_client_example_test.go index 1a2eec35588..c460d4ab7b6 100644 --- a/monitoring/apiv3/v2/service_monitoring_client_example_test.go +++ b/monitoring/apiv3/v2/service_monitoring_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewServiceMonitoringClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewServiceMonitoringClient() { func ExampleServiceMonitoringClient_CreateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleServiceMonitoringClient_CreateService() { func ExampleServiceMonitoringClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleServiceMonitoringClient_GetService() { func ExampleServiceMonitoringClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleServiceMonitoringClient_ListServices() { func ExampleServiceMonitoringClient_UpdateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleServiceMonitoringClient_UpdateService() { func ExampleServiceMonitoringClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleServiceMonitoringClient_DeleteService() { func ExampleServiceMonitoringClient_CreateServiceLevelObjective() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleServiceMonitoringClient_CreateServiceLevelObjective() { func ExampleServiceMonitoringClient_GetServiceLevelObjective() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleServiceMonitoringClient_GetServiceLevelObjective() { func ExampleServiceMonitoringClient_ListServiceLevelObjectives() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleServiceMonitoringClient_ListServiceLevelObjectives() { func ExampleServiceMonitoringClient_UpdateServiceLevelObjective() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleServiceMonitoringClient_UpdateServiceLevelObjective() { func ExampleServiceMonitoringClient_DeleteServiceLevelObjective() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. diff --git a/monitoring/apiv3/v2/uptime_check_client.go b/monitoring/apiv3/v2/uptime_check_client.go index dc1a3b7464a..9171f3037c9 100644 --- a/monitoring/apiv3/v2/uptime_check_client.go +++ b/monitoring/apiv3/v2/uptime_check_client.go @@ -159,7 +159,8 @@ func (c *UptimeCheckClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *UptimeCheckClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -267,7 +268,8 @@ func NewUptimeCheckClient(ctx context.Context, opts ...option.ClientOption) (*Up // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *uptimeCheckGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/apiv3/v2/uptime_check_client_example_test.go b/monitoring/apiv3/v2/uptime_check_client_example_test.go index dceff398b94..ad5055cbb1a 100644 --- a/monitoring/apiv3/v2/uptime_check_client_example_test.go +++ b/monitoring/apiv3/v2/uptime_check_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewUptimeCheckClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewUptimeCheckClient() { func ExampleUptimeCheckClient_ListUptimeCheckConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleUptimeCheckClient_ListUptimeCheckConfigs() { func ExampleUptimeCheckClient_GetUptimeCheckConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleUptimeCheckClient_GetUptimeCheckConfig() { func ExampleUptimeCheckClient_CreateUptimeCheckConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleUptimeCheckClient_CreateUptimeCheckConfig() { func ExampleUptimeCheckClient_UpdateUptimeCheckConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleUptimeCheckClient_UpdateUptimeCheckConfig() { func ExampleUptimeCheckClient_DeleteUptimeCheckConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleUptimeCheckClient_DeleteUptimeCheckConfig() { func ExampleUptimeCheckClient_ListUptimeCheckIps() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. diff --git a/monitoring/dashboard/apiv1/dashboards_client.go b/monitoring/dashboard/apiv1/dashboards_client.go index ebee6c432c0..87236d18e93 100644 --- a/monitoring/dashboard/apiv1/dashboards_client.go +++ b/monitoring/dashboard/apiv1/dashboards_client.go @@ -132,7 +132,8 @@ func (c *DashboardsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DashboardsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -240,7 +241,8 @@ func NewDashboardsClient(ctx context.Context, opts ...option.ClientOption) (*Das // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *dashboardsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/dashboard/apiv1/dashboards_client_example_test.go b/monitoring/dashboard/apiv1/dashboards_client_example_test.go index ab87d682695..45901e6fd20 100644 --- a/monitoring/dashboard/apiv1/dashboards_client_example_test.go +++ b/monitoring/dashboard/apiv1/dashboards_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewDashboardsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewDashboardsClient() { func ExampleDashboardsClient_CreateDashboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleDashboardsClient_CreateDashboard() { func ExampleDashboardsClient_ListDashboards() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleDashboardsClient_ListDashboards() { func ExampleDashboardsClient_GetDashboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleDashboardsClient_GetDashboard() { func ExampleDashboardsClient_DeleteDashboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleDashboardsClient_DeleteDashboard() { func ExampleDashboardsClient_UpdateDashboard() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/monitoring/dashboard/apiv1/doc.go b/monitoring/dashboard/apiv1/doc.go index 43d0dc0d6de..03522aad3e6 100644 --- a/monitoring/dashboard/apiv1/doc.go +++ b/monitoring/dashboard/apiv1/doc.go @@ -29,6 +29,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dashboard.NewDashboardsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -44,6 +49,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := dashboard.NewDashboardsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/monitoring/go.mod b/monitoring/go.mod index 386fd3a511c..ed5b1895a39 100644 --- a/monitoring/go.mod +++ b/monitoring/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/monitoring/go.sum b/monitoring/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/monitoring/go.sum +++ b/monitoring/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/monitoring/metricsscope/apiv1/doc.go b/monitoring/metricsscope/apiv1/doc.go index b25c9c287a2..23ebd8d7e7c 100644 --- a/monitoring/metricsscope/apiv1/doc.go +++ b/monitoring/metricsscope/apiv1/doc.go @@ -29,6 +29,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := metricsscope.NewMetricsScopesClient(ctx) // if err != nil { // // TODO: Handle error. @@ -44,6 +49,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := metricsscope.NewMetricsScopesClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/monitoring/metricsscope/apiv1/metrics_scopes_client.go b/monitoring/metricsscope/apiv1/metrics_scopes_client.go index 3c2099ce14d..7eb27018c92 100644 --- a/monitoring/metricsscope/apiv1/metrics_scopes_client.go +++ b/monitoring/metricsscope/apiv1/metrics_scopes_client.go @@ -114,7 +114,8 @@ func (c *MetricsScopesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *MetricsScopesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -231,7 +232,8 @@ func NewMetricsScopesClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *metricsScopesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/monitoring/metricsscope/apiv1/metrics_scopes_client_example_test.go b/monitoring/metricsscope/apiv1/metrics_scopes_client_example_test.go index a1f57f00281..adc70612c8d 100644 --- a/monitoring/metricsscope/apiv1/metrics_scopes_client_example_test.go +++ b/monitoring/metricsscope/apiv1/metrics_scopes_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewMetricsScopesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewMetricsScopesClient() { func ExampleMetricsScopesClient_GetMetricsScope() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleMetricsScopesClient_GetMetricsScope() { func ExampleMetricsScopesClient_ListMetricsScopesByMonitoredProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleMetricsScopesClient_ListMetricsScopesByMonitoredProject() { func ExampleMetricsScopesClient_CreateMonitoredProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. @@ -102,6 +122,11 @@ func ExampleMetricsScopesClient_CreateMonitoredProject() { func ExampleMetricsScopesClient_DeleteMonitoredProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/networkconnectivity/apiv1/doc.go b/networkconnectivity/apiv1/doc.go index 5b0f075e26d..1229ec3eba7 100644 --- a/networkconnectivity/apiv1/doc.go +++ b/networkconnectivity/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := networkconnectivity.NewHubClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := networkconnectivity.NewHubClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/networkconnectivity/apiv1/hub_client.go b/networkconnectivity/apiv1/hub_client.go index 6da8204d634..2f941aff458 100644 --- a/networkconnectivity/apiv1/hub_client.go +++ b/networkconnectivity/apiv1/hub_client.go @@ -180,7 +180,8 @@ func (c *HubClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *HubClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -349,7 +350,8 @@ func NewHubClient(ctx context.Context, opts ...option.ClientOption) (*HubClient, // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *hubGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/networkconnectivity/apiv1/hub_client_example_test.go b/networkconnectivity/apiv1/hub_client_example_test.go index e69a2da90f5..b4a940fde9a 100644 --- a/networkconnectivity/apiv1/hub_client_example_test.go +++ b/networkconnectivity/apiv1/hub_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewHubClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewHubClient() { func ExampleHubClient_ListHubs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleHubClient_ListHubs() { func ExampleHubClient_GetHub() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleHubClient_GetHub() { func ExampleHubClient_CreateHub() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleHubClient_CreateHub() { func ExampleHubClient_UpdateHub() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleHubClient_UpdateHub() { func ExampleHubClient_DeleteHub() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleHubClient_DeleteHub() { func ExampleHubClient_ListSpokes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleHubClient_ListSpokes() { func ExampleHubClient_GetSpoke() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleHubClient_GetSpoke() { func ExampleHubClient_CreateSpoke() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleHubClient_CreateSpoke() { func ExampleHubClient_UpdateSpoke() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleHubClient_UpdateSpoke() { func ExampleHubClient_DeleteSpoke() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/networkconnectivity/apiv1alpha1/doc.go b/networkconnectivity/apiv1alpha1/doc.go index 979173555bd..3195ce581b3 100644 --- a/networkconnectivity/apiv1alpha1/doc.go +++ b/networkconnectivity/apiv1alpha1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := networkconnectivity.NewHubClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := networkconnectivity.NewHubClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/networkconnectivity/apiv1alpha1/hub_client.go b/networkconnectivity/apiv1alpha1/hub_client.go index ffd5e1980e8..5d9c5631acf 100644 --- a/networkconnectivity/apiv1alpha1/hub_client.go +++ b/networkconnectivity/apiv1alpha1/hub_client.go @@ -181,7 +181,8 @@ func (c *HubClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *HubClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -351,7 +352,8 @@ func NewHubClient(ctx context.Context, opts ...option.ClientOption) (*HubClient, // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *hubGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/networkconnectivity/apiv1alpha1/hub_client_example_test.go b/networkconnectivity/apiv1alpha1/hub_client_example_test.go index f4933c76a06..c816e63f26c 100644 --- a/networkconnectivity/apiv1alpha1/hub_client_example_test.go +++ b/networkconnectivity/apiv1alpha1/hub_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewHubClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewHubClient() { func ExampleHubClient_ListHubs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleHubClient_ListHubs() { func ExampleHubClient_GetHub() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleHubClient_GetHub() { func ExampleHubClient_CreateHub() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleHubClient_CreateHub() { func ExampleHubClient_UpdateHub() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleHubClient_UpdateHub() { func ExampleHubClient_DeleteHub() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleHubClient_DeleteHub() { func ExampleHubClient_ListSpokes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleHubClient_ListSpokes() { func ExampleHubClient_GetSpoke() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleHubClient_GetSpoke() { func ExampleHubClient_CreateSpoke() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +273,11 @@ func ExampleHubClient_CreateSpoke() { func ExampleHubClient_UpdateSpoke() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +303,11 @@ func ExampleHubClient_UpdateSpoke() { func ExampleHubClient_DeleteSpoke() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. diff --git a/networkconnectivity/go.mod b/networkconnectivity/go.mod index d37318350c8..53cfa6f9d9f 100644 --- a/networkconnectivity/go.mod +++ b/networkconnectivity/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/networkconnectivity/go.sum b/networkconnectivity/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/networkconnectivity/go.sum +++ b/networkconnectivity/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/networkmanagement/apiv1/doc.go b/networkmanagement/apiv1/doc.go index ef3448c086c..0f5b8c6ab30 100644 --- a/networkmanagement/apiv1/doc.go +++ b/networkmanagement/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := networkmanagement.NewReachabilityClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := networkmanagement.NewReachabilityClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/networkmanagement/apiv1/reachability_client.go b/networkmanagement/apiv1/reachability_client.go index a43c932411f..9c517bf8116 100644 --- a/networkmanagement/apiv1/reachability_client.go +++ b/networkmanagement/apiv1/reachability_client.go @@ -130,7 +130,8 @@ func (c *ReachabilityClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ReachabilityClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -308,7 +309,8 @@ func NewReachabilityClient(ctx context.Context, opts ...option.ClientOption) (*R // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *reachabilityGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/networkmanagement/apiv1/reachability_client_example_test.go b/networkmanagement/apiv1/reachability_client_example_test.go index b24fac838a5..ff238e5cd6c 100644 --- a/networkmanagement/apiv1/reachability_client_example_test.go +++ b/networkmanagement/apiv1/reachability_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewReachabilityClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewReachabilityClient() { func ExampleReachabilityClient_ListConnectivityTests() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleReachabilityClient_ListConnectivityTests() { func ExampleReachabilityClient_GetConnectivityTest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleReachabilityClient_GetConnectivityTest() { func ExampleReachabilityClient_CreateConnectivityTest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleReachabilityClient_CreateConnectivityTest() { func ExampleReachabilityClient_UpdateConnectivityTest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleReachabilityClient_UpdateConnectivityTest() { func ExampleReachabilityClient_RerunConnectivityTest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleReachabilityClient_RerunConnectivityTest() { func ExampleReachabilityClient_DeleteConnectivityTest() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. diff --git a/networkmanagement/go.mod b/networkmanagement/go.mod index 4378b1e9ed2..fc40717ad47 100644 --- a/networkmanagement/go.mod +++ b/networkmanagement/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/networkmanagement/go.sum b/networkmanagement/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/networkmanagement/go.sum +++ b/networkmanagement/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/networksecurity/apiv1beta1/doc.go b/networksecurity/apiv1beta1/doc.go index 23a39e4752b..64e00875f8c 100644 --- a/networksecurity/apiv1beta1/doc.go +++ b/networksecurity/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := networksecurity.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := networksecurity.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/networksecurity/apiv1beta1/network_security_client.go b/networksecurity/apiv1beta1/network_security_client.go index f8be5f3ba37..2cc65620081 100644 --- a/networksecurity/apiv1beta1/network_security_client.go +++ b/networksecurity/apiv1beta1/network_security_client.go @@ -186,7 +186,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -463,7 +464,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/networksecurity/apiv1beta1/network_security_client_example_test.go b/networksecurity/apiv1beta1/network_security_client_example_test.go index de8344b9c67..5403cef3291 100644 --- a/networksecurity/apiv1beta1/network_security_client_example_test.go +++ b/networksecurity/apiv1beta1/network_security_client_example_test.go @@ -29,6 +29,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -41,6 +46,11 @@ func ExampleNewClient() { func ExampleClient_ListAuthorizationPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +77,11 @@ func ExampleClient_ListAuthorizationPolicies() { func ExampleClient_GetAuthorizationPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -87,6 +102,11 @@ func ExampleClient_GetAuthorizationPolicy() { func ExampleClient_CreateAuthorizationPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -112,6 +132,11 @@ func ExampleClient_CreateAuthorizationPolicy() { func ExampleClient_UpdateAuthorizationPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +162,11 @@ func ExampleClient_UpdateAuthorizationPolicy() { func ExampleClient_DeleteAuthorizationPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleClient_DeleteAuthorizationPolicy() { func ExampleClient_ListServerTlsPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +221,11 @@ func ExampleClient_ListServerTlsPolicies() { func ExampleClient_GetServerTlsPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -206,6 +246,11 @@ func ExampleClient_GetServerTlsPolicy() { func ExampleClient_CreateServerTlsPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -231,6 +276,11 @@ func ExampleClient_CreateServerTlsPolicy() { func ExampleClient_UpdateServerTlsPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +306,11 @@ func ExampleClient_UpdateServerTlsPolicy() { func ExampleClient_DeleteServerTlsPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -279,6 +334,11 @@ func ExampleClient_DeleteServerTlsPolicy() { func ExampleClient_ListClientTlsPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -305,6 +365,11 @@ func ExampleClient_ListClientTlsPolicies() { func ExampleClient_GetClientTlsPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -325,6 +390,11 @@ func ExampleClient_GetClientTlsPolicy() { func ExampleClient_CreateClientTlsPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -350,6 +420,11 @@ func ExampleClient_CreateClientTlsPolicy() { func ExampleClient_UpdateClientTlsPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -375,6 +450,11 @@ func ExampleClient_UpdateClientTlsPolicy() { func ExampleClient_DeleteClientTlsPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -398,6 +478,11 @@ func ExampleClient_DeleteClientTlsPolicy() { func ExampleClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +503,11 @@ func ExampleClient_GetLocation() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -444,6 +534,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -464,6 +559,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -484,6 +584,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -504,6 +609,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -522,6 +632,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -540,6 +655,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -560,6 +680,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/networksecurity/go.mod b/networksecurity/go.mod index fafa68d7915..26ca6009b3a 100644 --- a/networksecurity/go.mod +++ b/networksecurity/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.90.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/networksecurity/go.sum b/networksecurity/go.sum index 2127fe0836b..4ae1809f2c5 100644 --- a/networksecurity/go.sum +++ b/networksecurity/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.90.0 h1:WMnUWAvihIClUYFNeFA69VTuR3duKS3IalMGDQcLvq8= -google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/notebooks/apiv1/doc.go b/notebooks/apiv1/doc.go index 56d38a24949..58a05f480b4 100644 --- a/notebooks/apiv1/doc.go +++ b/notebooks/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := notebooks.NewManagedNotebookClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := notebooks.NewManagedNotebookClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/notebooks/apiv1/managed_notebook_client.go b/notebooks/apiv1/managed_notebook_client.go index eb00b4a6127..22233bb275f 100644 --- a/notebooks/apiv1/managed_notebook_client.go +++ b/notebooks/apiv1/managed_notebook_client.go @@ -159,7 +159,8 @@ func (c *ManagedNotebookClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ManagedNotebookClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -342,7 +343,8 @@ func NewManagedNotebookClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *managedNotebookGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/notebooks/apiv1/managed_notebook_client_example_test.go b/notebooks/apiv1/managed_notebook_client_example_test.go index a48393c2431..9a930f408f4 100644 --- a/notebooks/apiv1/managed_notebook_client_example_test.go +++ b/notebooks/apiv1/managed_notebook_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewManagedNotebookClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewManagedNotebookClient() { func ExampleManagedNotebookClient_ListRuntimes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleManagedNotebookClient_ListRuntimes() { func ExampleManagedNotebookClient_GetRuntime() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleManagedNotebookClient_GetRuntime() { func ExampleManagedNotebookClient_CreateRuntime() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleManagedNotebookClient_CreateRuntime() { func ExampleManagedNotebookClient_DeleteRuntime() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleManagedNotebookClient_DeleteRuntime() { func ExampleManagedNotebookClient_StartRuntime() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleManagedNotebookClient_StartRuntime() { func ExampleManagedNotebookClient_StopRuntime() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleManagedNotebookClient_StopRuntime() { func ExampleManagedNotebookClient_SwitchRuntime() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -207,6 +247,11 @@ func ExampleManagedNotebookClient_SwitchRuntime() { func ExampleManagedNotebookClient_ResetRuntime() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +277,11 @@ func ExampleManagedNotebookClient_ResetRuntime() { func ExampleManagedNotebookClient_ReportRuntimeEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -257,6 +307,11 @@ func ExampleManagedNotebookClient_ReportRuntimeEvent() { func ExampleManagedNotebookClient_RefreshRuntimeTokenInternal() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewManagedNotebookClient(ctx) if err != nil { // TODO: Handle error. diff --git a/notebooks/apiv1/notebook_client.go b/notebooks/apiv1/notebook_client.go index 6d88bf783d3..1ba09a571b1 100644 --- a/notebooks/apiv1/notebook_client.go +++ b/notebooks/apiv1/notebook_client.go @@ -243,7 +243,8 @@ func (c *NotebookClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NotebookClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -628,7 +629,8 @@ func NewNotebookClient(ctx context.Context, opts ...option.ClientOption) (*Noteb // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *notebookGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/notebooks/apiv1/notebook_client_example_test.go b/notebooks/apiv1/notebook_client_example_test.go index 4ce464ffe53..a888f2ada98 100644 --- a/notebooks/apiv1/notebook_client_example_test.go +++ b/notebooks/apiv1/notebook_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNotebookClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNotebookClient() { func ExampleNotebookClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleNotebookClient_ListInstances() { func ExampleNotebookClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleNotebookClient_GetInstance() { func ExampleNotebookClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleNotebookClient_CreateInstance() { func ExampleNotebookClient_RegisterInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleNotebookClient_RegisterInstance() { func ExampleNotebookClient_SetInstanceAccelerator() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleNotebookClient_SetInstanceAccelerator() { func ExampleNotebookClient_SetInstanceMachineType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +219,11 @@ func ExampleNotebookClient_SetInstanceMachineType() { func ExampleNotebookClient_UpdateInstanceConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +249,11 @@ func ExampleNotebookClient_UpdateInstanceConfig() { func ExampleNotebookClient_UpdateShieldedInstanceConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +279,11 @@ func ExampleNotebookClient_UpdateShieldedInstanceConfig() { func ExampleNotebookClient_SetInstanceLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -259,6 +309,11 @@ func ExampleNotebookClient_SetInstanceLabels() { func ExampleNotebookClient_UpdateInstanceMetadataItems() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -279,6 +334,11 @@ func ExampleNotebookClient_UpdateInstanceMetadataItems() { func ExampleNotebookClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +362,11 @@ func ExampleNotebookClient_DeleteInstance() { func ExampleNotebookClient_StartInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -327,6 +392,11 @@ func ExampleNotebookClient_StartInstance() { func ExampleNotebookClient_StopInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -352,6 +422,11 @@ func ExampleNotebookClient_StopInstance() { func ExampleNotebookClient_ResetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -377,6 +452,11 @@ func ExampleNotebookClient_ResetInstance() { func ExampleNotebookClient_ReportInstanceInfo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -402,6 +482,11 @@ func ExampleNotebookClient_ReportInstanceInfo() { func ExampleNotebookClient_IsInstanceUpgradeable() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -422,6 +507,11 @@ func ExampleNotebookClient_IsInstanceUpgradeable() { func ExampleNotebookClient_GetInstanceHealth() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -442,6 +532,11 @@ func ExampleNotebookClient_GetInstanceHealth() { func ExampleNotebookClient_UpgradeInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -467,6 +562,11 @@ func ExampleNotebookClient_UpgradeInstance() { func ExampleNotebookClient_RollbackInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -492,6 +592,11 @@ func ExampleNotebookClient_RollbackInstance() { func ExampleNotebookClient_UpgradeInstanceInternal() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -517,6 +622,11 @@ func ExampleNotebookClient_UpgradeInstanceInternal() { func ExampleNotebookClient_ListEnvironments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -543,6 +653,11 @@ func ExampleNotebookClient_ListEnvironments() { func ExampleNotebookClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -563,6 +678,11 @@ func ExampleNotebookClient_GetEnvironment() { func ExampleNotebookClient_CreateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -588,6 +708,11 @@ func ExampleNotebookClient_CreateEnvironment() { func ExampleNotebookClient_DeleteEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -611,6 +736,11 @@ func ExampleNotebookClient_DeleteEnvironment() { func ExampleNotebookClient_ListSchedules() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -637,6 +767,11 @@ func ExampleNotebookClient_ListSchedules() { func ExampleNotebookClient_GetSchedule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -657,6 +792,11 @@ func ExampleNotebookClient_GetSchedule() { func ExampleNotebookClient_DeleteSchedule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -680,6 +820,11 @@ func ExampleNotebookClient_DeleteSchedule() { func ExampleNotebookClient_CreateSchedule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -705,6 +850,11 @@ func ExampleNotebookClient_CreateSchedule() { func ExampleNotebookClient_TriggerSchedule() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -730,6 +880,11 @@ func ExampleNotebookClient_TriggerSchedule() { func ExampleNotebookClient_ListExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -756,6 +911,11 @@ func ExampleNotebookClient_ListExecutions() { func ExampleNotebookClient_GetExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -776,6 +936,11 @@ func ExampleNotebookClient_GetExecution() { func ExampleNotebookClient_DeleteExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -799,6 +964,11 @@ func ExampleNotebookClient_DeleteExecution() { func ExampleNotebookClient_CreateExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. diff --git a/notebooks/apiv1beta1/doc.go b/notebooks/apiv1beta1/doc.go index 92d96e78aa7..1886de15685 100644 --- a/notebooks/apiv1beta1/doc.go +++ b/notebooks/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := notebooks.NewNotebookClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := notebooks.NewNotebookClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/notebooks/apiv1beta1/notebook_client.go b/notebooks/apiv1beta1/notebook_client.go index 5dbc5df904e..4958c3d1fcb 100644 --- a/notebooks/apiv1beta1/notebook_client.go +++ b/notebooks/apiv1beta1/notebook_client.go @@ -172,7 +172,8 @@ func (c *NotebookClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *NotebookClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -439,7 +440,8 @@ func NewNotebookClient(ctx context.Context, opts ...option.ClientOption) (*Noteb // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *notebookGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/notebooks/apiv1beta1/notebook_client_example_test.go b/notebooks/apiv1beta1/notebook_client_example_test.go index f4e6a8cd20e..8c8342637d0 100644 --- a/notebooks/apiv1beta1/notebook_client_example_test.go +++ b/notebooks/apiv1beta1/notebook_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewNotebookClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewNotebookClient() { func ExampleNotebookClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleNotebookClient_ListInstances() { func ExampleNotebookClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleNotebookClient_GetInstance() { func ExampleNotebookClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleNotebookClient_CreateInstance() { func ExampleNotebookClient_RegisterInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleNotebookClient_RegisterInstance() { func ExampleNotebookClient_SetInstanceAccelerator() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleNotebookClient_SetInstanceAccelerator() { func ExampleNotebookClient_SetInstanceMachineType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +219,11 @@ func ExampleNotebookClient_SetInstanceMachineType() { func ExampleNotebookClient_SetInstanceLabels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +249,11 @@ func ExampleNotebookClient_SetInstanceLabels() { func ExampleNotebookClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +277,11 @@ func ExampleNotebookClient_DeleteInstance() { func ExampleNotebookClient_StartInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -257,6 +307,11 @@ func ExampleNotebookClient_StartInstance() { func ExampleNotebookClient_StopInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +337,11 @@ func ExampleNotebookClient_StopInstance() { func ExampleNotebookClient_ResetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +367,11 @@ func ExampleNotebookClient_ResetInstance() { func ExampleNotebookClient_ReportInstanceInfo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -332,6 +397,11 @@ func ExampleNotebookClient_ReportInstanceInfo() { func ExampleNotebookClient_IsInstanceUpgradeable() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -352,6 +422,11 @@ func ExampleNotebookClient_IsInstanceUpgradeable() { func ExampleNotebookClient_UpgradeInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -377,6 +452,11 @@ func ExampleNotebookClient_UpgradeInstance() { func ExampleNotebookClient_UpgradeInstanceInternal() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -402,6 +482,11 @@ func ExampleNotebookClient_UpgradeInstanceInternal() { func ExampleNotebookClient_ListEnvironments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -428,6 +513,11 @@ func ExampleNotebookClient_ListEnvironments() { func ExampleNotebookClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -448,6 +538,11 @@ func ExampleNotebookClient_GetEnvironment() { func ExampleNotebookClient_CreateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -473,6 +568,11 @@ func ExampleNotebookClient_CreateEnvironment() { func ExampleNotebookClient_DeleteEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. diff --git a/notebooks/go.mod b/notebooks/go.mod index 648e73ba046..da812280af0 100644 --- a/notebooks/go.mod +++ b/notebooks/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/notebooks/go.sum b/notebooks/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/notebooks/go.sum +++ b/notebooks/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/optimization/apiv1/doc.go b/optimization/apiv1/doc.go index d21fc11debf..b05973f86df 100644 --- a/optimization/apiv1/doc.go +++ b/optimization/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := optimization.NewFleetRoutingClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := optimization.NewFleetRoutingClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/optimization/apiv1/fleet_routing_client.go b/optimization/apiv1/fleet_routing_client.go index 584a9543138..dfc69968ee9 100644 --- a/optimization/apiv1/fleet_routing_client.go +++ b/optimization/apiv1/fleet_routing_client.go @@ -153,7 +153,8 @@ func (c *FleetRoutingClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FleetRoutingClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -298,7 +299,8 @@ func NewFleetRoutingClient(ctx context.Context, opts ...option.ClientOption) (*F // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *fleetRoutingGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/optimization/apiv1/fleet_routing_client_example_test.go b/optimization/apiv1/fleet_routing_client_example_test.go index 45b285ca12f..5b03a888b50 100644 --- a/optimization/apiv1/fleet_routing_client_example_test.go +++ b/optimization/apiv1/fleet_routing_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewFleetRoutingClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := optimization.NewFleetRoutingClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewFleetRoutingClient() { func ExampleFleetRoutingClient_OptimizeTours() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := optimization.NewFleetRoutingClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleFleetRoutingClient_OptimizeTours() { func ExampleFleetRoutingClient_BatchOptimizeTours() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := optimization.NewFleetRoutingClient(ctx) if err != nil { // TODO: Handle error. diff --git a/optimization/go.mod b/optimization/go.mod index be9e6a4fe59..9002241f43b 100644 --- a/optimization/go.mod +++ b/optimization/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 ) @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/optimization/go.sum b/optimization/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/optimization/go.sum +++ b/optimization/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/orchestration/airflow/service/apiv1/doc.go b/orchestration/airflow/service/apiv1/doc.go index 375c5b27c15..466d79f00e7 100644 --- a/orchestration/airflow/service/apiv1/doc.go +++ b/orchestration/airflow/service/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := service.NewEnvironmentsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := service.NewEnvironmentsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/orchestration/airflow/service/apiv1/environments_client.go b/orchestration/airflow/service/apiv1/environments_client.go index 9d5b34ae0cb..a53546275b8 100644 --- a/orchestration/airflow/service/apiv1/environments_client.go +++ b/orchestration/airflow/service/apiv1/environments_client.go @@ -119,7 +119,8 @@ func (c *EnvironmentsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EnvironmentsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,8 @@ func NewEnvironmentsClient(ctx context.Context, opts ...option.ClientOption) (*E // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *environmentsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/orchestration/airflow/service/apiv1/environments_client_example_test.go b/orchestration/airflow/service/apiv1/environments_client_example_test.go index ebdd63f244d..45281bb0ea1 100644 --- a/orchestration/airflow/service/apiv1/environments_client_example_test.go +++ b/orchestration/airflow/service/apiv1/environments_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewEnvironmentsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewEnvironmentsClient() { func ExampleEnvironmentsClient_CreateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleEnvironmentsClient_CreateEnvironment() { func ExampleEnvironmentsClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleEnvironmentsClient_GetEnvironment() { func ExampleEnvironmentsClient_ListEnvironments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleEnvironmentsClient_ListEnvironments() { func ExampleEnvironmentsClient_UpdateEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleEnvironmentsClient_UpdateEnvironment() { func ExampleEnvironmentsClient_DeleteEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/orchestration/airflow/service/apiv1/image_versions_client.go b/orchestration/airflow/service/apiv1/image_versions_client.go index a61ad92cf7a..fbb54ebad04 100644 --- a/orchestration/airflow/service/apiv1/image_versions_client.go +++ b/orchestration/airflow/service/apiv1/image_versions_client.go @@ -95,7 +95,8 @@ func (c *ImageVersionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ImageVersionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -165,7 +166,8 @@ func NewImageVersionsClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *imageVersionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/orchestration/airflow/service/apiv1/image_versions_client_example_test.go b/orchestration/airflow/service/apiv1/image_versions_client_example_test.go index 439d0304c5e..12f9a9ec4d7 100644 --- a/orchestration/airflow/service/apiv1/image_versions_client_example_test.go +++ b/orchestration/airflow/service/apiv1/image_versions_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewImageVersionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewImageVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewImageVersionsClient() { func ExampleImageVersionsClient_ListImageVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewImageVersionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/orchestration/go.mod b/orchestration/go.mod index ca74874e7d5..751c3ffed8d 100644 --- a/orchestration/go.mod +++ b/orchestration/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/orchestration/go.sum b/orchestration/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/orchestration/go.sum +++ b/orchestration/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/orgpolicy/apiv2/doc.go b/orgpolicy/apiv2/doc.go index 4df724c4e2e..0bb35264398 100644 --- a/orgpolicy/apiv2/doc.go +++ b/orgpolicy/apiv2/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := orgpolicy.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := orgpolicy.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/orgpolicy/apiv2/org_policy_client.go b/orgpolicy/apiv2/org_policy_client.go index 11f0d663409..d258d0007c0 100644 --- a/orgpolicy/apiv2/org_policy_client.go +++ b/orgpolicy/apiv2/org_policy_client.go @@ -211,7 +211,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -355,7 +356,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/orgpolicy/apiv2/org_policy_client_example_test.go b/orgpolicy/apiv2/org_policy_client_example_test.go index c78cfe0772e..41158beb6e4 100644 --- a/orgpolicy/apiv2/org_policy_client_example_test.go +++ b/orgpolicy/apiv2/org_policy_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListConstraints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListConstraints() { func ExampleClient_ListPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +105,11 @@ func ExampleClient_ListPolicies() { func ExampleClient_GetPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleClient_GetPolicy() { func ExampleClient_GetEffectivePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleClient_GetEffectivePolicy() { func ExampleClient_CreatePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleClient_CreatePolicy() { func ExampleClient_UpdatePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleClient_UpdatePolicy() { func ExampleClient_DeletePolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/orgpolicy/go.mod b/orgpolicy/go.mod index 8a0e2386024..a9d81c18a2c 100644 --- a/orgpolicy/go.mod +++ b/orgpolicy/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -17,9 +17,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/orgpolicy/go.sum b/orgpolicy/go.sum index 543863e1315..b56eeb96012 100644 --- a/orgpolicy/go.sum +++ b/orgpolicy/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/osconfig/agentendpoint/apiv1/agent_endpoint_client.go b/osconfig/agentendpoint/apiv1/agent_endpoint_client.go index 5819b26cae0..c0c0d33b9f9 100644 --- a/osconfig/agentendpoint/apiv1/agent_endpoint_client.go +++ b/osconfig/agentendpoint/apiv1/agent_endpoint_client.go @@ -172,7 +172,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -268,7 +269,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/osconfig/agentendpoint/apiv1/agent_endpoint_client_example_test.go b/osconfig/agentendpoint/apiv1/agent_endpoint_client_example_test.go index 7fc5d2f1bdd..46d11a3d18c 100644 --- a/osconfig/agentendpoint/apiv1/agent_endpoint_client_example_test.go +++ b/osconfig/agentendpoint/apiv1/agent_endpoint_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_StartNextTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleClient_StartNextTask() { func ExampleClient_ReportTaskProgress() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_ReportTaskProgress() { func ExampleClient_ReportTaskComplete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleClient_ReportTaskComplete() { func ExampleClient_RegisterAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleClient_RegisterAgent() { func ExampleClient_ReportInventory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/osconfig/agentendpoint/apiv1/doc.go b/osconfig/agentendpoint/apiv1/doc.go index 3dcb92b2da6..16ba892f633 100644 --- a/osconfig/agentendpoint/apiv1/doc.go +++ b/osconfig/agentendpoint/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := agentendpoint.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/osconfig/agentendpoint/apiv1beta/agent_endpoint_client.go b/osconfig/agentendpoint/apiv1beta/agent_endpoint_client.go index b76a4fcb548..fdcfe2d2e46 100644 --- a/osconfig/agentendpoint/apiv1beta/agent_endpoint_client.go +++ b/osconfig/agentendpoint/apiv1beta/agent_endpoint_client.go @@ -248,7 +248,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -345,7 +346,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -429,7 +431,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } diff --git a/osconfig/agentendpoint/apiv1beta/agent_endpoint_client_example_test.go b/osconfig/agentendpoint/apiv1beta/agent_endpoint_client_example_test.go index ead1a5d263e..be0894f7046 100644 --- a/osconfig/agentendpoint/apiv1beta/agent_endpoint_client_example_test.go +++ b/osconfig/agentendpoint/apiv1beta/agent_endpoint_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewRESTClient() { func ExampleClient_StartNextTask() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleClient_StartNextTask() { func ExampleClient_ReportTaskProgress() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +109,11 @@ func ExampleClient_ReportTaskProgress() { func ExampleClient_ReportTaskComplete() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +134,11 @@ func ExampleClient_ReportTaskComplete() { func ExampleClient_LookupEffectiveGuestPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +159,11 @@ func ExampleClient_LookupEffectiveGuestPolicy() { func ExampleClient_RegisterAgent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/osconfig/agentendpoint/apiv1beta/doc.go b/osconfig/agentendpoint/apiv1beta/doc.go index 46ccbf927ee..f3ccf3ea2a0 100644 --- a/osconfig/agentendpoint/apiv1beta/doc.go +++ b/osconfig/agentendpoint/apiv1beta/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := agentendpoint.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/osconfig/apiv1/doc.go b/osconfig/apiv1/doc.go index f93420a16e6..d04be6f598c 100644 --- a/osconfig/apiv1/doc.go +++ b/osconfig/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := osconfig.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := osconfig.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/osconfig/apiv1/os_config_client.go b/osconfig/apiv1/os_config_client.go index b4bc1d79706..82f8f662322 100644 --- a/osconfig/apiv1/os_config_client.go +++ b/osconfig/apiv1/os_config_client.go @@ -253,7 +253,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -385,7 +386,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/osconfig/apiv1/os_config_client_example_test.go b/osconfig/apiv1/os_config_client_example_test.go index 1acdf02a8fc..213d1d6ffc7 100644 --- a/osconfig/apiv1/os_config_client_example_test.go +++ b/osconfig/apiv1/os_config_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ExecutePatchJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_ExecutePatchJob() { func ExampleClient_GetPatchJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_GetPatchJob() { func ExampleClient_CancelPatchJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleClient_CancelPatchJob() { func ExampleClient_ListPatchJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleClient_ListPatchJobs() { func ExampleClient_ListPatchJobInstanceDetails() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleClient_ListPatchJobInstanceDetails() { func ExampleClient_CreatePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleClient_CreatePatchDeployment() { func ExampleClient_GetPatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleClient_GetPatchDeployment() { func ExampleClient_ListPatchDeployments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +261,11 @@ func ExampleClient_ListPatchDeployments() { func ExampleClient_DeletePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +284,11 @@ func ExampleClient_DeletePatchDeployment() { func ExampleClient_UpdatePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +309,11 @@ func ExampleClient_UpdatePatchDeployment() { func ExampleClient_PausePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +334,11 @@ func ExampleClient_PausePatchDeployment() { func ExampleClient_ResumePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/osconfig/apiv1/os_config_zonal_client.go b/osconfig/apiv1/os_config_zonal_client.go index 410bd3411ee..06913b391c9 100644 --- a/osconfig/apiv1/os_config_zonal_client.go +++ b/osconfig/apiv1/os_config_zonal_client.go @@ -264,7 +264,8 @@ func (c *OsConfigZonalClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *OsConfigZonalClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -463,7 +464,8 @@ func NewOsConfigZonalClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *osConfigZonalGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/osconfig/apiv1/os_config_zonal_client_example_test.go b/osconfig/apiv1/os_config_zonal_client_example_test.go index 7acddf72882..19057231525 100644 --- a/osconfig/apiv1/os_config_zonal_client_example_test.go +++ b/osconfig/apiv1/os_config_zonal_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewOsConfigZonalClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewOsConfigZonalClient() { func ExampleOsConfigZonalClient_CreateOSPolicyAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleOsConfigZonalClient_CreateOSPolicyAssignment() { func ExampleOsConfigZonalClient_UpdateOSPolicyAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -88,6 +103,11 @@ func ExampleOsConfigZonalClient_UpdateOSPolicyAssignment() { func ExampleOsConfigZonalClient_GetOSPolicyAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -108,6 +128,11 @@ func ExampleOsConfigZonalClient_GetOSPolicyAssignment() { func ExampleOsConfigZonalClient_ListOSPolicyAssignments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleOsConfigZonalClient_ListOSPolicyAssignments() { func ExampleOsConfigZonalClient_ListOSPolicyAssignmentRevisions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleOsConfigZonalClient_ListOSPolicyAssignmentRevisions() { func ExampleOsConfigZonalClient_DeleteOSPolicyAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleOsConfigZonalClient_DeleteOSPolicyAssignment() { func ExampleOsConfigZonalClient_GetOSPolicyAssignmentReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleOsConfigZonalClient_GetOSPolicyAssignmentReport() { func ExampleOsConfigZonalClient_ListOSPolicyAssignmentReports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -229,6 +274,11 @@ func ExampleOsConfigZonalClient_ListOSPolicyAssignmentReports() { func ExampleOsConfigZonalClient_GetInventory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +299,11 @@ func ExampleOsConfigZonalClient_GetInventory() { func ExampleOsConfigZonalClient_ListInventories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +330,11 @@ func ExampleOsConfigZonalClient_ListInventories() { func ExampleOsConfigZonalClient_GetVulnerabilityReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -295,6 +355,11 @@ func ExampleOsConfigZonalClient_GetVulnerabilityReport() { func ExampleOsConfigZonalClient_ListVulnerabilityReports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. diff --git a/osconfig/apiv1alpha/doc.go b/osconfig/apiv1alpha/doc.go index 89450292d47..78f4e0f64cd 100644 --- a/osconfig/apiv1alpha/doc.go +++ b/osconfig/apiv1alpha/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := osconfig.NewOsConfigZonalClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := osconfig.NewOsConfigZonalClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/osconfig/apiv1alpha/os_config_zonal_client.go b/osconfig/apiv1alpha/os_config_zonal_client.go index 1b771bc3c5e..3975f396f2a 100644 --- a/osconfig/apiv1alpha/os_config_zonal_client.go +++ b/osconfig/apiv1alpha/os_config_zonal_client.go @@ -441,7 +441,8 @@ func (c *OsConfigZonalClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *OsConfigZonalClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -656,7 +657,8 @@ func NewOsConfigZonalClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *osConfigZonalGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -758,7 +760,7 @@ func (c *osConfigZonalRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *osConfigZonalRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1315,8 +1317,12 @@ func (c *osConfigZonalRESTClient) UpdateOSPolicyAssignment(ctx context.Context, baseUrl.Path += fmt.Sprintf("/v1alpha/%v", req.GetOsPolicyAssignment().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/osconfig/apiv1alpha/os_config_zonal_client_example_test.go b/osconfig/apiv1alpha/os_config_zonal_client_example_test.go index d736a540bd0..6308b068995 100644 --- a/osconfig/apiv1alpha/os_config_zonal_client_example_test.go +++ b/osconfig/apiv1alpha/os_config_zonal_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewOsConfigZonalClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewOsConfigZonalClient() { func ExampleNewOsConfigZonalRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewOsConfigZonalRESTClient() { func ExampleOsConfigZonalClient_CreateOSPolicyAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -75,6 +90,11 @@ func ExampleOsConfigZonalClient_CreateOSPolicyAssignment() { func ExampleOsConfigZonalClient_UpdateOSPolicyAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -100,6 +120,11 @@ func ExampleOsConfigZonalClient_UpdateOSPolicyAssignment() { func ExampleOsConfigZonalClient_GetOSPolicyAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -120,6 +145,11 @@ func ExampleOsConfigZonalClient_GetOSPolicyAssignment() { func ExampleOsConfigZonalClient_ListOSPolicyAssignments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -146,6 +176,11 @@ func ExampleOsConfigZonalClient_ListOSPolicyAssignments() { func ExampleOsConfigZonalClient_ListOSPolicyAssignmentRevisions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleOsConfigZonalClient_ListOSPolicyAssignmentRevisions() { func ExampleOsConfigZonalClient_DeleteOSPolicyAssignment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -195,6 +235,11 @@ func ExampleOsConfigZonalClient_DeleteOSPolicyAssignment() { func ExampleOsConfigZonalClient_GetInstanceOSPoliciesCompliance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +260,11 @@ func ExampleOsConfigZonalClient_GetInstanceOSPoliciesCompliance() { func ExampleOsConfigZonalClient_ListInstanceOSPoliciesCompliances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +291,11 @@ func ExampleOsConfigZonalClient_ListInstanceOSPoliciesCompliances() { func ExampleOsConfigZonalClient_GetOSPolicyAssignmentReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -261,6 +316,11 @@ func ExampleOsConfigZonalClient_GetOSPolicyAssignmentReport() { func ExampleOsConfigZonalClient_ListOSPolicyAssignmentReports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -287,6 +347,11 @@ func ExampleOsConfigZonalClient_ListOSPolicyAssignmentReports() { func ExampleOsConfigZonalClient_GetInventory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +372,11 @@ func ExampleOsConfigZonalClient_GetInventory() { func ExampleOsConfigZonalClient_ListInventories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -333,6 +403,11 @@ func ExampleOsConfigZonalClient_ListInventories() { func ExampleOsConfigZonalClient_GetVulnerabilityReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -353,6 +428,11 @@ func ExampleOsConfigZonalClient_GetVulnerabilityReport() { func ExampleOsConfigZonalClient_ListVulnerabilityReports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. diff --git a/osconfig/apiv1beta/doc.go b/osconfig/apiv1beta/doc.go index 75e2ba0380d..e7552efde30 100644 --- a/osconfig/apiv1beta/doc.go +++ b/osconfig/apiv1beta/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := osconfig.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := osconfig.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/osconfig/apiv1beta/os_config_client.go b/osconfig/apiv1beta/os_config_client.go index 8872ffebd2e..f9446833d4a 100644 --- a/osconfig/apiv1beta/os_config_client.go +++ b/osconfig/apiv1beta/os_config_client.go @@ -522,7 +522,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -685,7 +686,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -772,7 +774,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1865,8 +1867,12 @@ func (c *restClient) UpdatePatchDeployment(ctx context.Context, req *osconfigpb. baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetPatchDeployment().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -2257,8 +2263,12 @@ func (c *restClient) UpdateGuestPolicy(ctx context.Context, req *osconfigpb.Upda baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetGuestPolicy().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/osconfig/apiv1beta/os_config_client_example_test.go b/osconfig/apiv1beta/os_config_client_example_test.go index 46c2bad1c90..9b90b63e554 100644 --- a/osconfig/apiv1beta/os_config_client_example_test.go +++ b/osconfig/apiv1beta/os_config_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_ExecutePatchJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleClient_ExecutePatchJob() { func ExampleClient_GetPatchJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +110,11 @@ func ExampleClient_GetPatchJob() { func ExampleClient_CancelPatchJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +135,11 @@ func ExampleClient_CancelPatchJob() { func ExampleClient_ListPatchJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleClient_ListPatchJobs() { func ExampleClient_ListPatchJobInstanceDetails() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_ListPatchJobInstanceDetails() { func ExampleClient_CreatePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleClient_CreatePatchDeployment() { func ExampleClient_GetPatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleClient_GetPatchDeployment() { func ExampleClient_ListPatchDeployments() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleClient_ListPatchDeployments() { func ExampleClient_DeletePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +301,11 @@ func ExampleClient_DeletePatchDeployment() { func ExampleClient_UpdatePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +326,11 @@ func ExampleClient_UpdatePatchDeployment() { func ExampleClient_PausePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +351,11 @@ func ExampleClient_PausePatchDeployment() { func ExampleClient_ResumePatchDeployment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -306,6 +376,11 @@ func ExampleClient_ResumePatchDeployment() { func ExampleClient_CreateGuestPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -326,6 +401,11 @@ func ExampleClient_CreateGuestPolicy() { func ExampleClient_GetGuestPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -346,6 +426,11 @@ func ExampleClient_GetGuestPolicy() { func ExampleClient_ListGuestPolicies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +457,11 @@ func ExampleClient_ListGuestPolicies() { func ExampleClient_UpdateGuestPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -392,6 +482,11 @@ func ExampleClient_UpdateGuestPolicy() { func ExampleClient_DeleteGuestPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -410,6 +505,11 @@ func ExampleClient_DeleteGuestPolicy() { func ExampleClient_LookupEffectiveGuestPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/osconfig/go.mod b/osconfig/go.mod index 7b02eb92124..0e09f787dcd 100644 --- a/osconfig/go.mod +++ b/osconfig/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/osconfig/go.sum b/osconfig/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/osconfig/go.sum +++ b/osconfig/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/oslogin/apiv1/doc.go b/oslogin/apiv1/doc.go index 15bd344703c..88b3830184c 100644 --- a/oslogin/apiv1/doc.go +++ b/oslogin/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := oslogin.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := oslogin.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/oslogin/apiv1/os_login_client.go b/oslogin/apiv1/os_login_client.go index 8f93d708e65..3beb5613d3e 100644 --- a/oslogin/apiv1/os_login_client.go +++ b/oslogin/apiv1/os_login_client.go @@ -180,7 +180,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -282,7 +283,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/oslogin/apiv1/os_login_client_example_test.go b/oslogin/apiv1/os_login_client_example_test.go index 2b664666332..f12f1d8ea96 100644 --- a/oslogin/apiv1/os_login_client_example_test.go +++ b/oslogin/apiv1/os_login_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_DeletePosixAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -55,6 +65,11 @@ func ExampleClient_DeletePosixAccount() { func ExampleClient_DeleteSshPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -73,6 +88,11 @@ func ExampleClient_DeleteSshPublicKey() { func ExampleClient_GetLoginProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -93,6 +113,11 @@ func ExampleClient_GetLoginProfile() { func ExampleClient_GetSshPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -113,6 +138,11 @@ func ExampleClient_GetSshPublicKey() { func ExampleClient_ImportSshPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -133,6 +163,11 @@ func ExampleClient_ImportSshPublicKey() { func ExampleClient_UpdateSshPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/oslogin/apiv1beta/doc.go b/oslogin/apiv1beta/doc.go index e269f0a2973..61229ad8eb4 100644 --- a/oslogin/apiv1beta/doc.go +++ b/oslogin/apiv1beta/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := oslogin.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := oslogin.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/oslogin/apiv1beta/os_login_client.go b/oslogin/apiv1beta/os_login_client.go index 1e3528983cc..e867b9e9c05 100644 --- a/oslogin/apiv1beta/os_login_client.go +++ b/oslogin/apiv1beta/os_login_client.go @@ -257,7 +257,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -359,7 +360,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -446,7 +448,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -847,8 +849,12 @@ func (c *restClient) UpdateSshPublicKey(ctx context.Context, req *osloginpb.Upda baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/oslogin/apiv1beta/os_login_client_example_test.go b/oslogin/apiv1beta/os_login_client_example_test.go index e8ac42ef9ba..90ec0a5d86c 100644 --- a/oslogin/apiv1beta/os_login_client_example_test.go +++ b/oslogin/apiv1beta/os_login_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewRESTClient() { func ExampleClient_DeletePosixAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -67,6 +82,11 @@ func ExampleClient_DeletePosixAccount() { func ExampleClient_DeleteSshPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +105,11 @@ func ExampleClient_DeleteSshPublicKey() { func ExampleClient_GetLoginProfile() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +130,11 @@ func ExampleClient_GetLoginProfile() { func ExampleClient_GetSshPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +155,11 @@ func ExampleClient_GetSshPublicKey() { func ExampleClient_ImportSshPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +180,11 @@ func ExampleClient_ImportSshPublicKey() { func ExampleClient_UpdateSshPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/oslogin/go.mod b/oslogin/go.mod index 12c140bc73d..7be39b3eefa 100644 --- a/oslogin/go.mod +++ b/oslogin/go.mod @@ -3,10 +3,9 @@ module cloud.google.com/go/oslogin go 1.17 require ( - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -14,12 +13,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/oslogin/go.sum b/oslogin/go.sum index 543863e1315..f600310a011 100644 --- a/oslogin/go.sum +++ b/oslogin/go.sum @@ -27,8 +27,10 @@ cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= -cloud.google.com/go v0.102.0 h1:DAq3r8y4mDgyB/ZPJ9v/5VJNqjgJAxTn6ZYLlUywOu8= cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -49,6 +51,7 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -161,6 +164,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +293,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +314,11 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +389,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +503,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +592,11 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/phishingprotection/apiv1beta1/doc.go b/phishingprotection/apiv1beta1/doc.go index e660222da2c..54f5799b819 100644 --- a/phishingprotection/apiv1beta1/doc.go +++ b/phishingprotection/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := phishingprotection.NewPhishingProtectionServiceV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := phishingprotection.NewPhishingProtectionServiceV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. diff --git a/phishingprotection/apiv1beta1/phishing_protection_service_v1_beta1_client.go b/phishingprotection/apiv1beta1/phishing_protection_service_v1_beta1_client.go index 60cf1013cbb..25f4503d5e6 100644 --- a/phishingprotection/apiv1beta1/phishing_protection_service_v1_beta1_client.go +++ b/phishingprotection/apiv1beta1/phishing_protection_service_v1_beta1_client.go @@ -106,7 +106,8 @@ func (c *PhishingProtectionServiceV1Beta1Client) setGoogleClientInfo(keyval ...s // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PhishingProtectionServiceV1Beta1Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -182,7 +183,8 @@ func NewPhishingProtectionServiceV1Beta1Client(ctx context.Context, opts ...opti // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *phishingProtectionServiceV1Beta1GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -266,7 +268,7 @@ func (c *phishingProtectionServiceV1Beta1RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *phishingProtectionServiceV1Beta1RESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/phishingprotection/apiv1beta1/phishing_protection_service_v1_beta1_client_example_test.go b/phishingprotection/apiv1beta1/phishing_protection_service_v1_beta1_client_example_test.go index 9161ab6cf6f..19be0e8a925 100644 --- a/phishingprotection/apiv1beta1/phishing_protection_service_v1_beta1_client_example_test.go +++ b/phishingprotection/apiv1beta1/phishing_protection_service_v1_beta1_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewPhishingProtectionServiceV1Beta1Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := phishingprotection.NewPhishingProtectionServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewPhishingProtectionServiceV1Beta1Client() { func ExampleNewPhishingProtectionServiceV1Beta1RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := phishingprotection.NewPhishingProtectionServiceV1Beta1RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewPhishingProtectionServiceV1Beta1RESTClient() { func ExamplePhishingProtectionServiceV1Beta1Client_ReportPhishing() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := phishingprotection.NewPhishingProtectionServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/phishingprotection/go.mod b/phishingprotection/go.mod index 4b24cf70d72..6eaeacc319f 100644 --- a/phishingprotection/go.mod +++ b/phishingprotection/go.mod @@ -3,9 +3,8 @@ module cloud.google.com/go/phishingprotection go 1.17 require ( - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -14,11 +13,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/phishingprotection/go.sum b/phishingprotection/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/phishingprotection/go.sum +++ b/phishingprotection/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/policytroubleshooter/apiv1/doc.go b/policytroubleshooter/apiv1/doc.go index c7d80e8a8cf..be1f2d87dcc 100644 --- a/policytroubleshooter/apiv1/doc.go +++ b/policytroubleshooter/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := policytroubleshooter.NewIamCheckerClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := policytroubleshooter.NewIamCheckerClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/policytroubleshooter/apiv1/iam_checker_client.go b/policytroubleshooter/apiv1/iam_checker_client.go index fe8439a27ad..6ef8113b104 100644 --- a/policytroubleshooter/apiv1/iam_checker_client.go +++ b/policytroubleshooter/apiv1/iam_checker_client.go @@ -94,7 +94,8 @@ func (c *IamCheckerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *IamCheckerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -167,7 +168,8 @@ func NewIamCheckerClient(ctx context.Context, opts ...option.ClientOption) (*Iam // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *iamCheckerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/policytroubleshooter/apiv1/iam_checker_client_example_test.go b/policytroubleshooter/apiv1/iam_checker_client_example_test.go index 21e78c2fe3a..c6e092bc88c 100644 --- a/policytroubleshooter/apiv1/iam_checker_client_example_test.go +++ b/policytroubleshooter/apiv1/iam_checker_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewIamCheckerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := policytroubleshooter.NewIamCheckerClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewIamCheckerClient() { func ExampleIamCheckerClient_TroubleshootIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := policytroubleshooter.NewIamCheckerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/policytroubleshooter/go.mod b/policytroubleshooter/go.mod index 1afa0c4e606..f30d3b95a9c 100644 --- a/policytroubleshooter/go.mod +++ b/policytroubleshooter/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 ) @@ -17,7 +17,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/policytroubleshooter/go.sum b/policytroubleshooter/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/policytroubleshooter/go.sum +++ b/policytroubleshooter/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/privatecatalog/apiv1beta1/doc.go b/privatecatalog/apiv1beta1/doc.go index 47601b86548..1d8dc916aab 100644 --- a/privatecatalog/apiv1beta1/doc.go +++ b/privatecatalog/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := privatecatalog.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := privatecatalog.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/privatecatalog/apiv1beta1/private_catalog_client.go b/privatecatalog/apiv1beta1/private_catalog_client.go index 5c2b5fee9f9..cf2ea6e111d 100644 --- a/privatecatalog/apiv1beta1/private_catalog_client.go +++ b/privatecatalog/apiv1beta1/private_catalog_client.go @@ -134,7 +134,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -237,7 +238,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -341,7 +343,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } diff --git a/privatecatalog/apiv1beta1/private_catalog_client_example_test.go b/privatecatalog/apiv1beta1/private_catalog_client_example_test.go index 6e53cde9b0a..2f598f200e7 100644 --- a/privatecatalog/apiv1beta1/private_catalog_client_example_test.go +++ b/privatecatalog/apiv1beta1/private_catalog_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privatecatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privatecatalog.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_SearchCatalogs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privatecatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleClient_SearchCatalogs() { func ExampleClient_SearchProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privatecatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -102,6 +122,11 @@ func ExampleClient_SearchProducts() { func ExampleClient_SearchVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privatecatalog.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/privatecatalog/go.mod b/privatecatalog/go.mod index d1b70b18095..1c8cdb143dd 100644 --- a/privatecatalog/go.mod +++ b/privatecatalog/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -17,9 +17,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/privatecatalog/go.sum b/privatecatalog/go.sum index 543863e1315..b56eeb96012 100644 --- a/privatecatalog/go.sum +++ b/privatecatalog/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/profiler/go.mod b/profiler/go.mod index 4f59ff5cbb1..d944a3103a0 100644 --- a/profiler/go.mod +++ b/profiler/go.mod @@ -10,9 +10,9 @@ require ( github.com/golang/protobuf v1.5.2 github.com/google/pprof v0.0.0-20220608213341-c488b8fa1db3 github.com/googleapis/gax-go/v2 v2.4.0 - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 ) @@ -24,8 +24,8 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect github.com/googleapis/go-type-adapters v1.0.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/profiler/go.sum b/profiler/go.sum index 144eb0a4ab0..c2795223161 100644 --- a/profiler/go.sum +++ b/profiler/go.sum @@ -305,8 +305,9 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -327,8 +328,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -400,8 +402,9 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -515,8 +518,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -603,8 +607,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/pubsub/apiv1/doc.go b/pubsub/apiv1/doc.go index e5b5d2e8691..e7a00c124e1 100644 --- a/pubsub/apiv1/doc.go +++ b/pubsub/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := pubsub.NewSchemaClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := pubsub.NewSchemaClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/pubsub/apiv1/publisher_client.go b/pubsub/apiv1/publisher_client.go index 14e5f1b817e..11b1298de1c 100644 --- a/pubsub/apiv1/publisher_client.go +++ b/pubsub/apiv1/publisher_client.go @@ -236,7 +236,8 @@ func (c *PublisherClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PublisherClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -390,7 +391,8 @@ func NewPublisherClient(ctx context.Context, opts ...option.ClientOption) (*Publ // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *publisherGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsub/apiv1/publisher_client_example_test.go b/pubsub/apiv1/publisher_client_example_test.go index 1892c9a9d77..23c6e59bdb4 100644 --- a/pubsub/apiv1/publisher_client_example_test.go +++ b/pubsub/apiv1/publisher_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewPublisherClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewPublisherClient() { func ExamplePublisherClient_CreateTopic() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExamplePublisherClient_CreateTopic() { func ExamplePublisherClient_UpdateTopic() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExamplePublisherClient_UpdateTopic() { func ExamplePublisherClient_Publish() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExamplePublisherClient_Publish() { func ExamplePublisherClient_GetTopic() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -119,6 +144,11 @@ func ExamplePublisherClient_GetTopic() { func ExamplePublisherClient_ListTopics() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExamplePublisherClient_ListTopics() { func ExamplePublisherClient_ListTopicSubscriptions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -171,6 +206,11 @@ func ExamplePublisherClient_ListTopicSubscriptions() { func ExamplePublisherClient_ListTopicSnapshots() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -197,6 +237,11 @@ func ExamplePublisherClient_ListTopicSnapshots() { func ExamplePublisherClient_DeleteTopic() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -215,6 +260,11 @@ func ExamplePublisherClient_DeleteTopic() { func ExamplePublisherClient_DetachSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -235,6 +285,11 @@ func ExamplePublisherClient_DetachSubscription() { func ExamplePublisherClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +310,11 @@ func ExamplePublisherClient_GetIamPolicy() { func ExamplePublisherClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +335,11 @@ func ExamplePublisherClient_SetIamPolicy() { func ExamplePublisherClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsub/apiv1/schema_client.go b/pubsub/apiv1/schema_client.go index 0032d951611..b905d25d4a5 100644 --- a/pubsub/apiv1/schema_client.go +++ b/pubsub/apiv1/schema_client.go @@ -120,7 +120,8 @@ func (c *SchemaClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SchemaClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -244,7 +245,8 @@ func NewSchemaClient(ctx context.Context, opts ...option.ClientOption) (*SchemaC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *schemaGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsub/apiv1/schema_client_example_test.go b/pubsub/apiv1/schema_client_example_test.go index e13903ca6c0..ccdd3e7b7d4 100644 --- a/pubsub/apiv1/schema_client_example_test.go +++ b/pubsub/apiv1/schema_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewSchemaClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewSchemaClient() { func ExampleSchemaClient_CreateSchema() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleSchemaClient_CreateSchema() { func ExampleSchemaClient_GetSchema() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleSchemaClient_GetSchema() { func ExampleSchemaClient_ListSchemas() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleSchemaClient_ListSchemas() { func ExampleSchemaClient_DeleteSchema() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExampleSchemaClient_DeleteSchema() { func ExampleSchemaClient_ValidateSchema() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleSchemaClient_ValidateSchema() { func ExampleSchemaClient_ValidateMessage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleSchemaClient_ValidateMessage() { func ExampleSchemaClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleSchemaClient_GetIamPolicy() { func ExampleSchemaClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleSchemaClient_SetIamPolicy() { func ExampleSchemaClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsub/apiv1/subscriber_client.go b/pubsub/apiv1/subscriber_client.go index 168871d8506..e5ea42364a7 100644 --- a/pubsub/apiv1/subscriber_client.go +++ b/pubsub/apiv1/subscriber_client.go @@ -332,7 +332,8 @@ func (c *SubscriberClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SubscriberClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -587,7 +588,8 @@ func NewSubscriberClient(ctx context.Context, opts ...option.ClientOption) (*Sub // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *subscriberGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsub/apiv1/subscriber_client_example_test.go b/pubsub/apiv1/subscriber_client_example_test.go index a20a2d06e94..5459765984d 100644 --- a/pubsub/apiv1/subscriber_client_example_test.go +++ b/pubsub/apiv1/subscriber_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewSubscriberClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewSubscriberClient() { func ExampleSubscriberClient_CreateSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleSubscriberClient_CreateSubscription() { func ExampleSubscriberClient_GetSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleSubscriberClient_GetSubscription() { func ExampleSubscriberClient_UpdateSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -100,6 +120,11 @@ func ExampleSubscriberClient_UpdateSubscription() { func ExampleSubscriberClient_ListSubscriptions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleSubscriberClient_ListSubscriptions() { func ExampleSubscriberClient_DeleteSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleSubscriberClient_DeleteSubscription() { func ExampleSubscriberClient_ModifyAckDeadline() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleSubscriberClient_ModifyAckDeadline() { func ExampleSubscriberClient_Acknowledge() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +220,11 @@ func ExampleSubscriberClient_Acknowledge() { func ExampleSubscriberClient_Pull() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +245,11 @@ func ExampleSubscriberClient_Pull() { func ExampleSubscriberClient_StreamingPull() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -235,6 +285,11 @@ func ExampleSubscriberClient_StreamingPull() { func ExampleSubscriberClient_ModifyPushConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -253,6 +308,11 @@ func ExampleSubscriberClient_ModifyPushConfig() { func ExampleSubscriberClient_GetSnapshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -273,6 +333,11 @@ func ExampleSubscriberClient_GetSnapshot() { func ExampleSubscriberClient_ListSnapshots() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -299,6 +364,11 @@ func ExampleSubscriberClient_ListSnapshots() { func ExampleSubscriberClient_CreateSnapshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -319,6 +389,11 @@ func ExampleSubscriberClient_CreateSnapshot() { func ExampleSubscriberClient_UpdateSnapshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -339,6 +414,11 @@ func ExampleSubscriberClient_UpdateSnapshot() { func ExampleSubscriberClient_DeleteSnapshot() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -357,6 +437,11 @@ func ExampleSubscriberClient_DeleteSnapshot() { func ExampleSubscriberClient_Seek() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -377,6 +462,11 @@ func ExampleSubscriberClient_Seek() { func ExampleSubscriberClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -397,6 +487,11 @@ func ExampleSubscriberClient_GetIamPolicy() { func ExampleSubscriberClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -417,6 +512,11 @@ func ExampleSubscriberClient_SetIamPolicy() { func ExampleSubscriberClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsub/go.mod b/pubsub/go.mod index baefbde9d81..1942170ecb2 100644 --- a/pubsub/go.mod +++ b/pubsub/go.mod @@ -10,10 +10,10 @@ require ( github.com/google/go-cmp v0.5.8 github.com/googleapis/gax-go/v2 v2.4.0 go.opencensus.io v0.23.0 - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f golang.org/x/time v0.0.0-20220609170525-579cf78fd858 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 diff --git a/pubsub/go.sum b/pubsub/go.sum index 4c0d093a7ab..1be0da3ecfe 100644 --- a/pubsub/go.sum +++ b/pubsub/go.sum @@ -321,8 +321,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -512,8 +514,9 @@ google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6r google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/pubsublite/apiv1/admin_client.go b/pubsublite/apiv1/admin_client.go index 62639fb1042..0f87ac0f1a6 100644 --- a/pubsublite/apiv1/admin_client.go +++ b/pubsublite/apiv1/admin_client.go @@ -467,7 +467,8 @@ func (c *AdminClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AdminClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -693,7 +694,8 @@ func NewAdminClient(ctx context.Context, opts ...option.ClientOption) (*AdminCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *adminGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsublite/apiv1/admin_client_example_test.go b/pubsublite/apiv1/admin_client_example_test.go index 7576ddb3280..8a54b5fedcd 100644 --- a/pubsublite/apiv1/admin_client_example_test.go +++ b/pubsublite/apiv1/admin_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewAdminClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewAdminClient() { func ExampleAdminClient_CreateTopic() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleAdminClient_CreateTopic() { func ExampleAdminClient_GetTopic() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleAdminClient_GetTopic() { func ExampleAdminClient_GetTopicPartitions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleAdminClient_GetTopicPartitions() { func ExampleAdminClient_ListTopics() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleAdminClient_ListTopics() { func ExampleAdminClient_UpdateTopic() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleAdminClient_UpdateTopic() { func ExampleAdminClient_DeleteTopic() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleAdminClient_DeleteTopic() { func ExampleAdminClient_ListTopicSubscriptions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -189,6 +229,11 @@ func ExampleAdminClient_ListTopicSubscriptions() { func ExampleAdminClient_CreateSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +254,11 @@ func ExampleAdminClient_CreateSubscription() { func ExampleAdminClient_GetSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -229,6 +279,11 @@ func ExampleAdminClient_GetSubscription() { func ExampleAdminClient_ListSubscriptions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +310,11 @@ func ExampleAdminClient_ListSubscriptions() { func ExampleAdminClient_UpdateSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +335,11 @@ func ExampleAdminClient_UpdateSubscription() { func ExampleAdminClient_DeleteSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -293,6 +358,11 @@ func ExampleAdminClient_DeleteSubscription() { func ExampleAdminClient_SeekSubscription() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +388,11 @@ func ExampleAdminClient_SeekSubscription() { func ExampleAdminClient_CreateReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -338,6 +413,11 @@ func ExampleAdminClient_CreateReservation() { func ExampleAdminClient_GetReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -358,6 +438,11 @@ func ExampleAdminClient_GetReservation() { func ExampleAdminClient_ListReservations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -384,6 +469,11 @@ func ExampleAdminClient_ListReservations() { func ExampleAdminClient_UpdateReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -404,6 +494,11 @@ func ExampleAdminClient_UpdateReservation() { func ExampleAdminClient_DeleteReservation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -422,6 +517,11 @@ func ExampleAdminClient_DeleteReservation() { func ExampleAdminClient_ListReservationTopics() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -448,6 +548,11 @@ func ExampleAdminClient_ListReservationTopics() { func ExampleAdminClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -466,6 +571,11 @@ func ExampleAdminClient_CancelOperation() { func ExampleAdminClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -484,6 +594,11 @@ func ExampleAdminClient_DeleteOperation() { func ExampleAdminClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -504,6 +619,11 @@ func ExampleAdminClient_GetOperation() { func ExampleAdminClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsublite/apiv1/cursor_client.go b/pubsublite/apiv1/cursor_client.go index c3c3b30dd66..dfb914e733c 100644 --- a/pubsublite/apiv1/cursor_client.go +++ b/pubsublite/apiv1/cursor_client.go @@ -174,7 +174,8 @@ func (c *CursorClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CursorClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -279,7 +280,8 @@ func NewCursorClient(ctx context.Context, opts ...option.ClientOption) (*CursorC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cursorGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsublite/apiv1/cursor_client_example_test.go b/pubsublite/apiv1/cursor_client_example_test.go index 8e0b257191d..b61801bf23c 100644 --- a/pubsublite/apiv1/cursor_client_example_test.go +++ b/pubsublite/apiv1/cursor_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewCursorClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewCursorClient() { func ExampleCursorClient_StreamingCommitCursor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -75,6 +85,11 @@ func ExampleCursorClient_StreamingCommitCursor() { func ExampleCursorClient_CommitCursor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -95,6 +110,11 @@ func ExampleCursorClient_CommitCursor() { func ExampleCursorClient_ListPartitionCursors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -121,6 +141,11 @@ func ExampleCursorClient_ListPartitionCursors() { func ExampleCursorClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -139,6 +164,11 @@ func ExampleCursorClient_CancelOperation() { func ExampleCursorClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleCursorClient_DeleteOperation() { func ExampleCursorClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +212,11 @@ func ExampleCursorClient_GetOperation() { func ExampleCursorClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsublite/apiv1/doc.go b/pubsublite/apiv1/doc.go index 59032733cce..73b22c1c07a 100644 --- a/pubsublite/apiv1/doc.go +++ b/pubsublite/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := pubsublite.NewAdminClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := pubsublite.NewAdminClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/pubsublite/apiv1/partition_assignment_client.go b/pubsublite/apiv1/partition_assignment_client.go index ba2d36df395..b30693131d0 100644 --- a/pubsublite/apiv1/partition_assignment_client.go +++ b/pubsublite/apiv1/partition_assignment_client.go @@ -139,7 +139,8 @@ func (c *PartitionAssignmentClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PartitionAssignmentClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -239,7 +240,8 @@ func NewPartitionAssignmentClient(ctx context.Context, opts ...option.ClientOpti // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *partitionAssignmentGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsublite/apiv1/partition_assignment_client_example_test.go b/pubsublite/apiv1/partition_assignment_client_example_test.go index 36214d54438..1ea704814ce 100644 --- a/pubsublite/apiv1/partition_assignment_client_example_test.go +++ b/pubsublite/apiv1/partition_assignment_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewPartitionAssignmentClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPartitionAssignmentClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewPartitionAssignmentClient() { func ExamplePartitionAssignmentClient_AssignPartitions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPartitionAssignmentClient(ctx) if err != nil { // TODO: Handle error. @@ -75,6 +85,11 @@ func ExamplePartitionAssignmentClient_AssignPartitions() { func ExamplePartitionAssignmentClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPartitionAssignmentClient(ctx) if err != nil { // TODO: Handle error. @@ -93,6 +108,11 @@ func ExamplePartitionAssignmentClient_CancelOperation() { func ExamplePartitionAssignmentClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPartitionAssignmentClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExamplePartitionAssignmentClient_DeleteOperation() { func ExamplePartitionAssignmentClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPartitionAssignmentClient(ctx) if err != nil { // TODO: Handle error. @@ -131,6 +156,11 @@ func ExamplePartitionAssignmentClient_GetOperation() { func ExamplePartitionAssignmentClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPartitionAssignmentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsublite/apiv1/publisher_client.go b/pubsublite/apiv1/publisher_client.go index 18eeca043b7..0a40a8ed41a 100644 --- a/pubsublite/apiv1/publisher_client.go +++ b/pubsublite/apiv1/publisher_client.go @@ -141,7 +141,8 @@ func (c *PublisherClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PublisherClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,7 +244,8 @@ func NewPublisherClient(ctx context.Context, opts ...option.ClientOption) (*Publ // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *publisherGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsublite/apiv1/publisher_client_example_test.go b/pubsublite/apiv1/publisher_client_example_test.go index 0fd4f7b14f1..a4b7b6a665d 100644 --- a/pubsublite/apiv1/publisher_client_example_test.go +++ b/pubsublite/apiv1/publisher_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewPublisherClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewPublisherClient() { func ExamplePublisherClient_Publish() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -75,6 +85,11 @@ func ExamplePublisherClient_Publish() { func ExamplePublisherClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -93,6 +108,11 @@ func ExamplePublisherClient_CancelOperation() { func ExamplePublisherClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExamplePublisherClient_DeleteOperation() { func ExamplePublisherClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -131,6 +156,11 @@ func ExamplePublisherClient_GetOperation() { func ExamplePublisherClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsublite/apiv1/subscriber_client.go b/pubsublite/apiv1/subscriber_client.go index 4a0c2bcc7e1..4bccbd17c78 100644 --- a/pubsublite/apiv1/subscriber_client.go +++ b/pubsublite/apiv1/subscriber_client.go @@ -139,7 +139,8 @@ func (c *SubscriberClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SubscriberClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -233,7 +234,8 @@ func NewSubscriberClient(ctx context.Context, opts ...option.ClientOption) (*Sub // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *subscriberGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsublite/apiv1/subscriber_client_example_test.go b/pubsublite/apiv1/subscriber_client_example_test.go index de92fb7bc3a..b10b6d49830 100644 --- a/pubsublite/apiv1/subscriber_client_example_test.go +++ b/pubsublite/apiv1/subscriber_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewSubscriberClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewSubscriberClient() { func ExampleSubscriberClient_Subscribe() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -75,6 +85,11 @@ func ExampleSubscriberClient_Subscribe() { func ExampleSubscriberClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -93,6 +108,11 @@ func ExampleSubscriberClient_CancelOperation() { func ExampleSubscriberClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleSubscriberClient_DeleteOperation() { func ExampleSubscriberClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -131,6 +156,11 @@ func ExampleSubscriberClient_GetOperation() { func ExampleSubscriberClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsublite/apiv1/topic_stats_client.go b/pubsublite/apiv1/topic_stats_client.go index 05fd8d2c903..5cf646ec715 100644 --- a/pubsublite/apiv1/topic_stats_client.go +++ b/pubsublite/apiv1/topic_stats_client.go @@ -186,7 +186,8 @@ func (c *TopicStatsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TopicStatsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -296,7 +297,8 @@ func NewTopicStatsClient(ctx context.Context, opts ...option.ClientOption) (*Top // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *topicStatsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/pubsublite/apiv1/topic_stats_client_example_test.go b/pubsublite/apiv1/topic_stats_client_example_test.go index 6d84debff9f..a1d58929f0b 100644 --- a/pubsublite/apiv1/topic_stats_client_example_test.go +++ b/pubsublite/apiv1/topic_stats_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewTopicStatsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewTopicStatsClient() { func ExampleTopicStatsClient_ComputeMessageStats() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleTopicStatsClient_ComputeMessageStats() { func ExampleTopicStatsClient_ComputeHeadCursor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleTopicStatsClient_ComputeHeadCursor() { func ExampleTopicStatsClient_ComputeTimeCursor() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleTopicStatsClient_ComputeTimeCursor() { func ExampleTopicStatsClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleTopicStatsClient_CancelOperation() { func ExampleTopicStatsClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +165,11 @@ func ExampleTopicStatsClient_DeleteOperation() { func ExampleTopicStatsClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +190,11 @@ func ExampleTopicStatsClient_GetOperation() { func ExampleTopicStatsClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/pubsublite/go.mod b/pubsublite/go.mod index 06d7937d585..2506b654c70 100644 --- a/pubsublite/go.mod +++ b/pubsublite/go.mod @@ -10,7 +10,7 @@ require ( github.com/google/uuid v1.3.0 github.com/googleapis/gax-go/v2 v2.4.0 golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -23,7 +23,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/pubsublite/go.sum b/pubsublite/go.sum index 86bf63d73af..c65d52b95dc 100644 --- a/pubsublite/go.sum +++ b/pubsublite/go.sum @@ -325,8 +325,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -516,8 +518,9 @@ google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6r google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/recaptchaenterprise/apiv1beta1/doc.go b/recaptchaenterprise/apiv1beta1/doc.go index 3ab93974a71..bf19cfc55a0 100644 --- a/recaptchaenterprise/apiv1beta1/doc.go +++ b/recaptchaenterprise/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. diff --git a/recaptchaenterprise/apiv1beta1/recaptcha_enterprise_service_v1_beta1_client.go b/recaptchaenterprise/apiv1beta1/recaptcha_enterprise_service_v1_beta1_client.go index d4f7c913448..2e653c056f2 100644 --- a/recaptchaenterprise/apiv1beta1/recaptcha_enterprise_service_v1_beta1_client.go +++ b/recaptchaenterprise/apiv1beta1/recaptcha_enterprise_service_v1_beta1_client.go @@ -110,7 +110,8 @@ func (c *RecaptchaEnterpriseServiceV1Beta1Client) setGoogleClientInfo(keyval ... // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RecaptchaEnterpriseServiceV1Beta1Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -186,7 +187,8 @@ func NewRecaptchaEnterpriseServiceV1Beta1Client(ctx context.Context, opts ...opt // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *recaptchaEnterpriseServiceV1Beta1GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -270,7 +272,7 @@ func (c *recaptchaEnterpriseServiceV1Beta1RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *recaptchaEnterpriseServiceV1Beta1RESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/recaptchaenterprise/apiv1beta1/recaptcha_enterprise_service_v1_beta1_client_example_test.go b/recaptchaenterprise/apiv1beta1/recaptcha_enterprise_service_v1_beta1_client_example_test.go index ef75ec7f9c2..09e1b55d1f1 100644 --- a/recaptchaenterprise/apiv1beta1/recaptcha_enterprise_service_v1_beta1_client_example_test.go +++ b/recaptchaenterprise/apiv1beta1/recaptcha_enterprise_service_v1_beta1_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewRecaptchaEnterpriseServiceV1Beta1Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewRecaptchaEnterpriseServiceV1Beta1Client() { func ExampleNewRecaptchaEnterpriseServiceV1Beta1RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewRecaptchaEnterpriseServiceV1Beta1RESTClient() { func ExampleRecaptchaEnterpriseServiceV1Beta1Client_CreateAssessment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleRecaptchaEnterpriseServiceV1Beta1Client_CreateAssessment() { func ExampleRecaptchaEnterpriseServiceV1Beta1Client_AnnotateAssessment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/recaptchaenterprise/go.mod b/recaptchaenterprise/go.mod index 80b1ded6efb..0cc365dade8 100644 --- a/recaptchaenterprise/go.mod +++ b/recaptchaenterprise/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/recaptchaenterprise/go.sum b/recaptchaenterprise/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/recaptchaenterprise/go.sum +++ b/recaptchaenterprise/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/recaptchaenterprise/v2/apiv1/doc.go b/recaptchaenterprise/v2/apiv1/doc.go index 6dfd05bf19c..804b3343c63 100644 --- a/recaptchaenterprise/v2/apiv1/doc.go +++ b/recaptchaenterprise/v2/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recaptchaenterprise.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recaptchaenterprise.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/recaptchaenterprise/v2/apiv1/recaptcha_enterprise_client.go b/recaptchaenterprise/v2/apiv1/recaptcha_enterprise_client.go index 8a738bbc3ef..f16b09134e1 100644 --- a/recaptchaenterprise/v2/apiv1/recaptcha_enterprise_client.go +++ b/recaptchaenterprise/v2/apiv1/recaptcha_enterprise_client.go @@ -129,7 +129,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -261,7 +262,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/recaptchaenterprise/v2/apiv1/recaptcha_enterprise_client_example_test.go b/recaptchaenterprise/v2/apiv1/recaptcha_enterprise_client_example_test.go index 38589fbee41..e28599d13d5 100644 --- a/recaptchaenterprise/v2/apiv1/recaptcha_enterprise_client_example_test.go +++ b/recaptchaenterprise/v2/apiv1/recaptcha_enterprise_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateAssessment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateAssessment() { func ExampleClient_AnnotateAssessment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_AnnotateAssessment() { func ExampleClient_CreateKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleClient_CreateKey() { func ExampleClient_ListKeys() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleClient_ListKeys() { func ExampleClient_GetKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleClient_GetKey() { func ExampleClient_UpdateKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -164,6 +199,11 @@ func ExampleClient_UpdateKey() { func ExampleClient_DeleteKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleClient_DeleteKey() { func ExampleClient_MigrateKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleClient_MigrateKey() { func ExampleClient_GetMetrics() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +272,11 @@ func ExampleClient_GetMetrics() { func ExampleClient_ListRelatedAccountGroups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +303,11 @@ func ExampleClient_ListRelatedAccountGroups() { func ExampleClient_ListRelatedAccountGroupMemberships() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +334,11 @@ func ExampleClient_ListRelatedAccountGroupMemberships() { func ExampleClient_SearchRelatedAccountGroupMemberships() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recaptchaenterprise.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/recaptchaenterprise/v2/go.mod b/recaptchaenterprise/v2/go.mod index 28abe3a62f2..d276d665e83 100644 --- a/recaptchaenterprise/v2/go.mod +++ b/recaptchaenterprise/v2/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go/recaptchaenterprise v1.3.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/recaptchaenterprise/v2/go.sum b/recaptchaenterprise/v2/go.sum index cc34776c9d3..c7d4aa26b9d 100644 --- a/recaptchaenterprise/v2/go.sum +++ b/recaptchaenterprise/v2/go.sum @@ -163,6 +163,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -291,8 +292,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -312,8 +313,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -384,8 +387,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -499,8 +502,8 @@ google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -588,8 +591,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/recommendationengine/apiv1beta1/catalog_client.go b/recommendationengine/apiv1beta1/catalog_client.go index c27dc130ac2..996fcbc8848 100644 --- a/recommendationengine/apiv1beta1/catalog_client.go +++ b/recommendationengine/apiv1beta1/catalog_client.go @@ -187,7 +187,8 @@ func (c *CatalogClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CatalogClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -310,7 +311,8 @@ func NewCatalogClient(ctx context.Context, opts ...option.ClientOption) (*Catalo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *catalogGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/recommendationengine/apiv1beta1/catalog_client_example_test.go b/recommendationengine/apiv1beta1/catalog_client_example_test.go index 10871f20e0b..2ce48b9b5d9 100644 --- a/recommendationengine/apiv1beta1/catalog_client_example_test.go +++ b/recommendationengine/apiv1beta1/catalog_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCatalogClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCatalogClient() { func ExampleCatalogClient_CreateCatalogItem() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleCatalogClient_CreateCatalogItem() { func ExampleCatalogClient_GetCatalogItem() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleCatalogClient_GetCatalogItem() { func ExampleCatalogClient_ListCatalogItems() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleCatalogClient_ListCatalogItems() { func ExampleCatalogClient_UpdateCatalogItem() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleCatalogClient_UpdateCatalogItem() { func ExampleCatalogClient_DeleteCatalogItem() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleCatalogClient_DeleteCatalogItem() { func ExampleCatalogClient_ImportCatalogItems() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. diff --git a/recommendationengine/apiv1beta1/doc.go b/recommendationengine/apiv1beta1/doc.go index 171cc4de1ba..d9154a9205d 100644 --- a/recommendationengine/apiv1beta1/doc.go +++ b/recommendationengine/apiv1beta1/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recommendationengine.NewCatalogClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recommendationengine.NewCatalogClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/recommendationengine/apiv1beta1/prediction_api_key_registry_client.go b/recommendationengine/apiv1beta1/prediction_api_key_registry_client.go index 7a5849220a1..d9d473ceb51 100644 --- a/recommendationengine/apiv1beta1/prediction_api_key_registry_client.go +++ b/recommendationengine/apiv1beta1/prediction_api_key_registry_client.go @@ -140,7 +140,8 @@ func (c *PredictionApiKeyRegistryClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionApiKeyRegistryClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -224,7 +225,8 @@ func NewPredictionApiKeyRegistryClient(ctx context.Context, opts ...option.Clien // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionApiKeyRegistryGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/recommendationengine/apiv1beta1/prediction_api_key_registry_client_example_test.go b/recommendationengine/apiv1beta1/prediction_api_key_registry_client_example_test.go index 415d7221056..bdae804916b 100644 --- a/recommendationengine/apiv1beta1/prediction_api_key_registry_client_example_test.go +++ b/recommendationengine/apiv1beta1/prediction_api_key_registry_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewPredictionApiKeyRegistryClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionApiKeyRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewPredictionApiKeyRegistryClient() { func ExamplePredictionApiKeyRegistryClient_CreatePredictionApiKeyRegistration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionApiKeyRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExamplePredictionApiKeyRegistryClient_CreatePredictionApiKeyRegistration() func ExamplePredictionApiKeyRegistryClient_ListPredictionApiKeyRegistrations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionApiKeyRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExamplePredictionApiKeyRegistryClient_ListPredictionApiKeyRegistrations() { func ExamplePredictionApiKeyRegistryClient_DeletePredictionApiKeyRegistration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionApiKeyRegistryClient(ctx) if err != nil { // TODO: Handle error. diff --git a/recommendationengine/apiv1beta1/prediction_client.go b/recommendationengine/apiv1beta1/prediction_client.go index d5976f24d42..a9916d4ac2b 100644 --- a/recommendationengine/apiv1beta1/prediction_client.go +++ b/recommendationengine/apiv1beta1/prediction_client.go @@ -108,7 +108,8 @@ func (c *PredictionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -181,7 +182,8 @@ func NewPredictionClient(ctx context.Context, opts ...option.ClientOption) (*Pre // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/recommendationengine/apiv1beta1/prediction_client_example_test.go b/recommendationengine/apiv1beta1/prediction_client_example_test.go index 4c11e252af1..18ab798c64a 100644 --- a/recommendationengine/apiv1beta1/prediction_client_example_test.go +++ b/recommendationengine/apiv1beta1/prediction_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewPredictionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewPredictionClient() { func ExamplePredictionClient_Predict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/recommendationengine/apiv1beta1/user_event_client.go b/recommendationengine/apiv1beta1/user_event_client.go index ddce998c07f..17f78938ce4 100644 --- a/recommendationengine/apiv1beta1/user_event_client.go +++ b/recommendationengine/apiv1beta1/user_event_client.go @@ -175,7 +175,8 @@ func (c *UserEventClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *UserEventClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -306,7 +307,8 @@ func NewUserEventClient(ctx context.Context, opts ...option.ClientOption) (*User // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *userEventGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/recommendationengine/apiv1beta1/user_event_client_example_test.go b/recommendationengine/apiv1beta1/user_event_client_example_test.go index bcd3a55a73a..b6a48dccd95 100644 --- a/recommendationengine/apiv1beta1/user_event_client_example_test.go +++ b/recommendationengine/apiv1beta1/user_event_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewUserEventClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewUserEventClient() { func ExampleUserEventClient_WriteUserEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleUserEventClient_WriteUserEvent() { func ExampleUserEventClient_CollectUserEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleUserEventClient_CollectUserEvent() { func ExampleUserEventClient_ListUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleUserEventClient_ListUserEvents() { func ExampleUserEventClient_PurgeUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleUserEventClient_PurgeUserEvents() { func ExampleUserEventClient_ImportUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. diff --git a/recommendationengine/go.mod b/recommendationengine/go.mod index ca5bc158cff..0e7a51ac748 100644 --- a/recommendationengine/go.mod +++ b/recommendationengine/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/recommendationengine/go.sum b/recommendationengine/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/recommendationengine/go.sum +++ b/recommendationengine/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/recommender/apiv1/doc.go b/recommender/apiv1/doc.go index ae209fab475..a3accfd443d 100644 --- a/recommender/apiv1/doc.go +++ b/recommender/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recommender.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recommender.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/recommender/apiv1/recommender_client.go b/recommender/apiv1/recommender_client.go index 1662b4aaac3..af64bdeac95 100644 --- a/recommender/apiv1/recommender_client.go +++ b/recommender/apiv1/recommender_client.go @@ -177,7 +177,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -347,7 +348,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/recommender/apiv1/recommender_client_example_test.go b/recommender/apiv1/recommender_client_example_test.go index 51453aca378..9350f85b521 100644 --- a/recommender/apiv1/recommender_client_example_test.go +++ b/recommender/apiv1/recommender_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListInsights() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListInsights() { func ExampleClient_GetInsight() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetInsight() { func ExampleClient_MarkInsightAccepted() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_MarkInsightAccepted() { func ExampleClient_ListRecommendations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -130,6 +155,11 @@ func ExampleClient_ListRecommendations() { func ExampleClient_GetRecommendation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -150,6 +180,11 @@ func ExampleClient_GetRecommendation() { func ExampleClient_MarkRecommendationClaimed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -170,6 +205,11 @@ func ExampleClient_MarkRecommendationClaimed() { func ExampleClient_MarkRecommendationSucceeded() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -190,6 +230,11 @@ func ExampleClient_MarkRecommendationSucceeded() { func ExampleClient_MarkRecommendationFailed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -210,6 +255,11 @@ func ExampleClient_MarkRecommendationFailed() { func ExampleClient_GetRecommenderConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -230,6 +280,11 @@ func ExampleClient_GetRecommenderConfig() { func ExampleClient_UpdateRecommenderConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -250,6 +305,11 @@ func ExampleClient_UpdateRecommenderConfig() { func ExampleClient_GetInsightTypeConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -270,6 +330,11 @@ func ExampleClient_GetInsightTypeConfig() { func ExampleClient_UpdateInsightTypeConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/recommender/apiv1beta1/doc.go b/recommender/apiv1beta1/doc.go index e8efeace373..3eb76225697 100644 --- a/recommender/apiv1beta1/doc.go +++ b/recommender/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recommender.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := recommender.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/recommender/apiv1beta1/recommender_client.go b/recommender/apiv1beta1/recommender_client.go index cb27364efef..633e17d867b 100644 --- a/recommender/apiv1beta1/recommender_client.go +++ b/recommender/apiv1beta1/recommender_client.go @@ -240,7 +240,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -410,7 +411,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -497,7 +499,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1422,8 +1424,12 @@ func (c *restClient) UpdateRecommenderConfig(ctx context.Context, req *recommend baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetRecommenderConfig().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } if req.GetValidateOnly() { params.Add("validateOnly", fmt.Sprintf("%v", req.GetValidateOnly())) @@ -1547,8 +1553,12 @@ func (c *restClient) UpdateInsightTypeConfig(ctx context.Context, req *recommend baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetInsightTypeConfig().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } if req.GetValidateOnly() { params.Add("validateOnly", fmt.Sprintf("%v", req.GetValidateOnly())) diff --git a/recommender/apiv1beta1/recommender_client_example_test.go b/recommender/apiv1beta1/recommender_client_example_test.go index e246b5319b1..54e5eab8447 100644 --- a/recommender/apiv1beta1/recommender_client_example_test.go +++ b/recommender/apiv1beta1/recommender_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListInsights() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleClient_ListInsights() { func ExampleClient_GetInsight() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleClient_GetInsight() { func ExampleClient_MarkInsightAccepted() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleClient_MarkInsightAccepted() { func ExampleClient_ListRecommendations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_ListRecommendations() { func ExampleClient_GetRecommendation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_GetRecommendation() { func ExampleClient_MarkRecommendationClaimed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleClient_MarkRecommendationClaimed() { func ExampleClient_MarkRecommendationSucceeded() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleClient_MarkRecommendationSucceeded() { func ExampleClient_MarkRecommendationFailed() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +272,11 @@ func ExampleClient_MarkRecommendationFailed() { func ExampleClient_GetRecommenderConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +297,11 @@ func ExampleClient_GetRecommenderConfig() { func ExampleClient_UpdateRecommenderConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -262,6 +322,11 @@ func ExampleClient_UpdateRecommenderConfig() { func ExampleClient_GetInsightTypeConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +347,11 @@ func ExampleClient_GetInsightTypeConfig() { func ExampleClient_UpdateInsightTypeConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/recommender/go.mod b/recommender/go.mod index 8cfe2af8f78..1eeee94f88e 100644 --- a/recommender/go.mod +++ b/recommender/go.mod @@ -3,9 +3,8 @@ module cloud.google.com/go/recommender go 1.17 require ( - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.86.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -14,11 +13,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/recommender/go.sum b/recommender/go.sum index d7871ec5527..2ef5a9ffe89 100644 --- a/recommender/go.sum +++ b/recommender/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.86.0 h1:ZAnyOHQFIuWso1BodVfSaRyffD74T9ERGFa3k1fNk/U= -google.golang.org/api v0.86.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/redis/apiv1/cloud_redis_client.go b/redis/apiv1/cloud_redis_client.go index 915904cb71f..02f2c43f147 100644 --- a/redis/apiv1/cloud_redis_client.go +++ b/redis/apiv1/cloud_redis_client.go @@ -161,7 +161,8 @@ func (c *CloudRedisClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudRedisClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -405,7 +406,8 @@ func NewCloudRedisClient(ctx context.Context, opts ...option.ClientOption) (*Clo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudRedisGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/redis/apiv1/cloud_redis_client_example_test.go b/redis/apiv1/cloud_redis_client_example_test.go index 46072e87837..a0bb9b95c75 100644 --- a/redis/apiv1/cloud_redis_client_example_test.go +++ b/redis/apiv1/cloud_redis_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudRedisClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudRedisClient() { func ExampleCloudRedisClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleCloudRedisClient_ListInstances() { func ExampleCloudRedisClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleCloudRedisClient_GetInstance() { func ExampleCloudRedisClient_GetInstanceAuthString() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleCloudRedisClient_GetInstanceAuthString() { func ExampleCloudRedisClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleCloudRedisClient_CreateInstance() { func ExampleCloudRedisClient_UpdateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +184,11 @@ func ExampleCloudRedisClient_UpdateInstance() { func ExampleCloudRedisClient_UpgradeInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +214,11 @@ func ExampleCloudRedisClient_UpgradeInstance() { func ExampleCloudRedisClient_ImportInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -204,6 +244,11 @@ func ExampleCloudRedisClient_ImportInstance() { func ExampleCloudRedisClient_ExportInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -229,6 +274,11 @@ func ExampleCloudRedisClient_ExportInstance() { func ExampleCloudRedisClient_FailoverInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +304,11 @@ func ExampleCloudRedisClient_FailoverInstance() { func ExampleCloudRedisClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -277,6 +332,11 @@ func ExampleCloudRedisClient_DeleteInstance() { func ExampleCloudRedisClient_RescheduleMaintenance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. diff --git a/redis/apiv1/doc.go b/redis/apiv1/doc.go index e82db90ce4e..1ba6b360141 100644 --- a/redis/apiv1/doc.go +++ b/redis/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := redis.NewCloudRedisClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := redis.NewCloudRedisClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/redis/apiv1beta1/cloud_redis_client.go b/redis/apiv1beta1/cloud_redis_client.go index b5e8b77fd9d..f793a08e957 100644 --- a/redis/apiv1beta1/cloud_redis_client.go +++ b/redis/apiv1beta1/cloud_redis_client.go @@ -184,7 +184,8 @@ func (c *CloudRedisClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudRedisClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -428,7 +429,8 @@ func NewCloudRedisClient(ctx context.Context, opts ...option.ClientOption) (*Clo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudRedisGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -546,7 +548,7 @@ func (c *cloudRedisRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *cloudRedisRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1129,8 +1131,12 @@ func (c *cloudRedisRESTClient) UpdateInstance(ctx context.Context, req *redispb. baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetInstance().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/redis/apiv1beta1/cloud_redis_client_example_test.go b/redis/apiv1beta1/cloud_redis_client_example_test.go index ab50d409890..6204e153517 100644 --- a/redis/apiv1beta1/cloud_redis_client_example_test.go +++ b/redis/apiv1beta1/cloud_redis_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudRedisClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudRedisClient() { func ExampleNewCloudRedisRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewCloudRedisRESTClient() { func ExampleCloudRedisClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleCloudRedisClient_ListInstances() { func ExampleCloudRedisClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleCloudRedisClient_GetInstance() { func ExampleCloudRedisClient_GetInstanceAuthString() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleCloudRedisClient_GetInstanceAuthString() { func ExampleCloudRedisClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -141,6 +171,11 @@ func ExampleCloudRedisClient_CreateInstance() { func ExampleCloudRedisClient_UpdateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -166,6 +201,11 @@ func ExampleCloudRedisClient_UpdateInstance() { func ExampleCloudRedisClient_UpgradeInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -191,6 +231,11 @@ func ExampleCloudRedisClient_UpgradeInstance() { func ExampleCloudRedisClient_ImportInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +261,11 @@ func ExampleCloudRedisClient_ImportInstance() { func ExampleCloudRedisClient_ExportInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +291,11 @@ func ExampleCloudRedisClient_ExportInstance() { func ExampleCloudRedisClient_FailoverInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +321,11 @@ func ExampleCloudRedisClient_FailoverInstance() { func ExampleCloudRedisClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +349,11 @@ func ExampleCloudRedisClient_DeleteInstance() { func ExampleCloudRedisClient_RescheduleMaintenance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. diff --git a/redis/apiv1beta1/doc.go b/redis/apiv1beta1/doc.go index 1f0b2d7a61e..75cd8fdede5 100644 --- a/redis/apiv1beta1/doc.go +++ b/redis/apiv1beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := redis.NewCloudRedisClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := redis.NewCloudRedisClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/redis/go.mod b/redis/go.mod index 740e9575966..9c0e90e14b8 100644 --- a/redis/go.mod +++ b/redis/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/redis/go.sum b/redis/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/redis/go.sum +++ b/redis/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/resourcemanager/apiv2/doc.go b/resourcemanager/apiv2/doc.go index 351ab30df5d..8a7928a8af3 100644 --- a/resourcemanager/apiv2/doc.go +++ b/resourcemanager/apiv2/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := resourcemanager.NewFoldersClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := resourcemanager.NewFoldersClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/resourcemanager/apiv2/folders_client.go b/resourcemanager/apiv2/folders_client.go index ffa9a608f2a..8ef05f5fe20 100644 --- a/resourcemanager/apiv2/folders_client.go +++ b/resourcemanager/apiv2/folders_client.go @@ -139,7 +139,8 @@ func (c *FoldersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FoldersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -391,7 +392,8 @@ func NewFoldersClient(ctx context.Context, opts ...option.ClientOption) (*Folder // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *foldersGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/resourcemanager/apiv2/folders_client_example_test.go b/resourcemanager/apiv2/folders_client_example_test.go index 711c8a9793c..c4d276cec6f 100644 --- a/resourcemanager/apiv2/folders_client_example_test.go +++ b/resourcemanager/apiv2/folders_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewFoldersClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewFoldersClient() { func ExampleFoldersClient_ListFolders() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleFoldersClient_ListFolders() { func ExampleFoldersClient_SearchFolders() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -91,6 +106,11 @@ func ExampleFoldersClient_SearchFolders() { func ExampleFoldersClient_GetFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleFoldersClient_GetFolder() { func ExampleFoldersClient_CreateFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleFoldersClient_CreateFolder() { func ExampleFoldersClient_UpdateFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleFoldersClient_UpdateFolder() { func ExampleFoldersClient_MoveFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +216,11 @@ func ExampleFoldersClient_MoveFolder() { func ExampleFoldersClient_DeleteFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +241,11 @@ func ExampleFoldersClient_DeleteFolder() { func ExampleFoldersClient_UndeleteFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +266,11 @@ func ExampleFoldersClient_UndeleteFolder() { func ExampleFoldersClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +291,11 @@ func ExampleFoldersClient_GetIamPolicy() { func ExampleFoldersClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -261,6 +316,11 @@ func ExampleFoldersClient_SetIamPolicy() { func ExampleFoldersClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/resourcemanager/apiv3/doc.go b/resourcemanager/apiv3/doc.go index b60a70bf33d..451d0b197f7 100644 --- a/resourcemanager/apiv3/doc.go +++ b/resourcemanager/apiv3/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := resourcemanager.NewFoldersClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := resourcemanager.NewFoldersClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/resourcemanager/apiv3/folders_client.go b/resourcemanager/apiv3/folders_client.go index 42201896d23..1886de7d503 100644 --- a/resourcemanager/apiv3/folders_client.go +++ b/resourcemanager/apiv3/folders_client.go @@ -173,7 +173,8 @@ func (c *FoldersClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *FoldersClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -442,7 +443,8 @@ func NewFoldersClient(ctx context.Context, opts ...option.ClientOption) (*Folder // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *foldersGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/resourcemanager/apiv3/folders_client_example_test.go b/resourcemanager/apiv3/folders_client_example_test.go index e11515c869f..b842b74817c 100644 --- a/resourcemanager/apiv3/folders_client_example_test.go +++ b/resourcemanager/apiv3/folders_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewFoldersClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewFoldersClient() { func ExampleFoldersClient_GetFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleFoldersClient_GetFolder() { func ExampleFoldersClient_ListFolders() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleFoldersClient_ListFolders() { func ExampleFoldersClient_SearchFolders() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleFoldersClient_SearchFolders() { func ExampleFoldersClient_CreateFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleFoldersClient_CreateFolder() { func ExampleFoldersClient_UpdateFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -161,6 +191,11 @@ func ExampleFoldersClient_UpdateFolder() { func ExampleFoldersClient_MoveFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +221,11 @@ func ExampleFoldersClient_MoveFolder() { func ExampleFoldersClient_DeleteFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -211,6 +251,11 @@ func ExampleFoldersClient_DeleteFolder() { func ExampleFoldersClient_UndeleteFolder() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -236,6 +281,11 @@ func ExampleFoldersClient_UndeleteFolder() { func ExampleFoldersClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +306,11 @@ func ExampleFoldersClient_GetIamPolicy() { func ExampleFoldersClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleFoldersClient_SetIamPolicy() { func ExampleFoldersClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/resourcemanager/apiv3/organizations_client.go b/resourcemanager/apiv3/organizations_client.go index ed1ac8d1996..06dcffa8a19 100644 --- a/resourcemanager/apiv3/organizations_client.go +++ b/resourcemanager/apiv3/organizations_client.go @@ -130,7 +130,8 @@ func (c *OrganizationsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *OrganizationsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -240,7 +241,8 @@ func NewOrganizationsClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *organizationsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/resourcemanager/apiv3/organizations_client_example_test.go b/resourcemanager/apiv3/organizations_client_example_test.go index 1b5924272cd..656411f21ae 100644 --- a/resourcemanager/apiv3/organizations_client_example_test.go +++ b/resourcemanager/apiv3/organizations_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewOrganizationsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewOrganizationsClient() { func ExampleOrganizationsClient_GetOrganization() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleOrganizationsClient_GetOrganization() { func ExampleOrganizationsClient_SearchOrganizations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleOrganizationsClient_SearchOrganizations() { func ExampleOrganizationsClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleOrganizationsClient_GetIamPolicy() { func ExampleOrganizationsClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleOrganizationsClient_SetIamPolicy() { func ExampleOrganizationsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/resourcemanager/apiv3/projects_client.go b/resourcemanager/apiv3/projects_client.go index 6bfdf0c30d0..a94b3f66393 100644 --- a/resourcemanager/apiv3/projects_client.go +++ b/resourcemanager/apiv3/projects_client.go @@ -171,7 +171,8 @@ func (c *ProjectsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ProjectsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -457,7 +458,8 @@ func NewProjectsClient(ctx context.Context, opts ...option.ClientOption) (*Proje // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *projectsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/resourcemanager/apiv3/projects_client_example_test.go b/resourcemanager/apiv3/projects_client_example_test.go index b3fcefdf49e..b3929df96d3 100644 --- a/resourcemanager/apiv3/projects_client_example_test.go +++ b/resourcemanager/apiv3/projects_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewProjectsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewProjectsClient() { func ExampleProjectsClient_GetProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleProjectsClient_GetProject() { func ExampleProjectsClient_ListProjects() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleProjectsClient_ListProjects() { func ExampleProjectsClient_SearchProjects() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleProjectsClient_SearchProjects() { func ExampleProjectsClient_CreateProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +161,11 @@ func ExampleProjectsClient_CreateProject() { func ExampleProjectsClient_UpdateProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -161,6 +191,11 @@ func ExampleProjectsClient_UpdateProject() { func ExampleProjectsClient_MoveProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -186,6 +221,11 @@ func ExampleProjectsClient_MoveProject() { func ExampleProjectsClient_DeleteProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -211,6 +251,11 @@ func ExampleProjectsClient_DeleteProject() { func ExampleProjectsClient_UndeleteProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -236,6 +281,11 @@ func ExampleProjectsClient_UndeleteProject() { func ExampleProjectsClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -256,6 +306,11 @@ func ExampleProjectsClient_GetIamPolicy() { func ExampleProjectsClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -276,6 +331,11 @@ func ExampleProjectsClient_SetIamPolicy() { func ExampleProjectsClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/resourcemanager/apiv3/tag_bindings_client.go b/resourcemanager/apiv3/tag_bindings_client.go index 263820e4bf7..aa4a6ffdbbd 100644 --- a/resourcemanager/apiv3/tag_bindings_client.go +++ b/resourcemanager/apiv3/tag_bindings_client.go @@ -124,7 +124,8 @@ func (c *TagBindingsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TagBindingsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -238,7 +239,8 @@ func NewTagBindingsClient(ctx context.Context, opts ...option.ClientOption) (*Ta // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *tagBindingsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/resourcemanager/apiv3/tag_bindings_client_example_test.go b/resourcemanager/apiv3/tag_bindings_client_example_test.go index 33d4f1476f4..0cf09e1ecaf 100644 --- a/resourcemanager/apiv3/tag_bindings_client_example_test.go +++ b/resourcemanager/apiv3/tag_bindings_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTagBindingsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagBindingsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTagBindingsClient() { func ExampleTagBindingsClient_ListTagBindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagBindingsClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleTagBindingsClient_ListTagBindings() { func ExampleTagBindingsClient_CreateTagBinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagBindingsClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +104,11 @@ func ExampleTagBindingsClient_CreateTagBinding() { func ExampleTagBindingsClient_DeleteTagBinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagBindingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/resourcemanager/apiv3/tag_keys_client.go b/resourcemanager/apiv3/tag_keys_client.go index 3c51eb36758..f4458c6dac4 100644 --- a/resourcemanager/apiv3/tag_keys_client.go +++ b/resourcemanager/apiv3/tag_keys_client.go @@ -160,7 +160,8 @@ func (c *TagKeysClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TagKeysClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -317,7 +318,8 @@ func NewTagKeysClient(ctx context.Context, opts ...option.ClientOption) (*TagKey // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *tagKeysGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/resourcemanager/apiv3/tag_keys_client_example_test.go b/resourcemanager/apiv3/tag_keys_client_example_test.go index b7cab32f05e..f7dd1dac518 100644 --- a/resourcemanager/apiv3/tag_keys_client_example_test.go +++ b/resourcemanager/apiv3/tag_keys_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewTagKeysClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewTagKeysClient() { func ExampleTagKeysClient_ListTagKeys() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleTagKeysClient_ListTagKeys() { func ExampleTagKeysClient_GetTagKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleTagKeysClient_GetTagKey() { func ExampleTagKeysClient_CreateTagKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleTagKeysClient_CreateTagKey() { func ExampleTagKeysClient_UpdateTagKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleTagKeysClient_UpdateTagKey() { func ExampleTagKeysClient_DeleteTagKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleTagKeysClient_DeleteTagKey() { func ExampleTagKeysClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleTagKeysClient_GetIamPolicy() { func ExampleTagKeysClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleTagKeysClient_SetIamPolicy() { func ExampleTagKeysClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. diff --git a/resourcemanager/apiv3/tag_values_client.go b/resourcemanager/apiv3/tag_values_client.go index 9947887cc7a..fadf1cc1eb3 100644 --- a/resourcemanager/apiv3/tag_values_client.go +++ b/resourcemanager/apiv3/tag_values_client.go @@ -160,7 +160,8 @@ func (c *TagValuesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TagValuesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -318,7 +319,8 @@ func NewTagValuesClient(ctx context.Context, opts ...option.ClientOption) (*TagV // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *tagValuesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/resourcemanager/apiv3/tag_values_client_example_test.go b/resourcemanager/apiv3/tag_values_client_example_test.go index a1a879d1d18..6a4b30f77bb 100644 --- a/resourcemanager/apiv3/tag_values_client_example_test.go +++ b/resourcemanager/apiv3/tag_values_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewTagValuesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewTagValuesClient() { func ExampleTagValuesClient_ListTagValues() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleTagValuesClient_ListTagValues() { func ExampleTagValuesClient_GetTagValue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleTagValuesClient_GetTagValue() { func ExampleTagValuesClient_CreateTagValue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleTagValuesClient_CreateTagValue() { func ExampleTagValuesClient_UpdateTagValue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleTagValuesClient_UpdateTagValue() { func ExampleTagValuesClient_DeleteTagValue() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleTagValuesClient_DeleteTagValue() { func ExampleTagValuesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleTagValuesClient_GetIamPolicy() { func ExampleTagValuesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleTagValuesClient_SetIamPolicy() { func ExampleTagValuesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/resourcemanager/go.mod b/resourcemanager/go.mod index c7e5533d394..1364b79cd9c 100644 --- a/resourcemanager/go.mod +++ b/resourcemanager/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/resourcemanager/go.sum b/resourcemanager/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/resourcemanager/go.sum +++ b/resourcemanager/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/resourcesettings/apiv1/doc.go b/resourcesettings/apiv1/doc.go index 7298736ece3..0a88bf56d42 100644 --- a/resourcesettings/apiv1/doc.go +++ b/resourcesettings/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := resourcesettings.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := resourcesettings.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/resourcesettings/apiv1/resource_settings_client.go b/resourcesettings/apiv1/resource_settings_client.go index 55fe3084b47..5585cf4b677 100644 --- a/resourcesettings/apiv1/resource_settings_client.go +++ b/resourcesettings/apiv1/resource_settings_client.go @@ -147,7 +147,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -256,7 +257,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/resourcesettings/apiv1/resource_settings_client_example_test.go b/resourcesettings/apiv1/resource_settings_client_example_test.go index ea8cf26066a..ac0412a6599 100644 --- a/resourcesettings/apiv1/resource_settings_client_example_test.go +++ b/resourcesettings/apiv1/resource_settings_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcesettings.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcesettings.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListSettings() { func ExampleClient_GetSetting() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcesettings.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetSetting() { func ExampleClient_UpdateSetting() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcesettings.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/resourcesettings/go.mod b/resourcesettings/go.mod index 2c957f65c12..5c864023369 100644 --- a/resourcesettings/go.mod +++ b/resourcesettings/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -17,9 +17,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/resourcesettings/go.sum b/resourcesettings/go.sum index 543863e1315..b56eeb96012 100644 --- a/resourcesettings/go.sum +++ b/resourcesettings/go.sum @@ -161,6 +161,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -289,8 +290,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -310,8 +311,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -382,8 +385,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -496,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -584,8 +587,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/retail/apiv2/catalog_client.go b/retail/apiv2/catalog_client.go index 6bf67120a53..9aef99b05c5 100644 --- a/retail/apiv2/catalog_client.go +++ b/retail/apiv2/catalog_client.go @@ -266,7 +266,8 @@ func (c *CatalogClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CatalogClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -460,7 +461,8 @@ func NewCatalogClient(ctx context.Context, opts ...option.ClientOption) (*Catalo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *catalogGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2/catalog_client_example_test.go b/retail/apiv2/catalog_client_example_test.go index ef0faee6f86..0c91b5c069c 100644 --- a/retail/apiv2/catalog_client_example_test.go +++ b/retail/apiv2/catalog_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCatalogClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCatalogClient() { func ExampleCatalogClient_ListCatalogs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleCatalogClient_ListCatalogs() { func ExampleCatalogClient_UpdateCatalog() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleCatalogClient_UpdateCatalog() { func ExampleCatalogClient_SetDefaultBranch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -103,6 +123,11 @@ func ExampleCatalogClient_SetDefaultBranch() { func ExampleCatalogClient_GetDefaultBranch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExampleCatalogClient_GetDefaultBranch() { func ExampleCatalogClient_GetCompletionConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleCatalogClient_GetCompletionConfig() { func ExampleCatalogClient_UpdateCompletionConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleCatalogClient_UpdateCompletionConfig() { func ExampleCatalogClient_GetAttributesConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleCatalogClient_GetAttributesConfig() { func ExampleCatalogClient_UpdateAttributesConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleCatalogClient_UpdateAttributesConfig() { func ExampleCatalogClient_AddCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleCatalogClient_AddCatalogAttribute() { func ExampleCatalogClient_RemoveCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +298,11 @@ func ExampleCatalogClient_RemoveCatalogAttribute() { func ExampleCatalogClient_ReplaceCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +323,11 @@ func ExampleCatalogClient_ReplaceCatalogAttribute() { func ExampleCatalogClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -283,6 +348,11 @@ func ExampleCatalogClient_GetOperation() { func ExampleCatalogClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2/completion_client.go b/retail/apiv2/completion_client.go index c0b8ddb8880..3f1a2d256ca 100644 --- a/retail/apiv2/completion_client.go +++ b/retail/apiv2/completion_client.go @@ -151,7 +151,8 @@ func (c *CompletionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CompletionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -275,7 +276,8 @@ func NewCompletionClient(ctx context.Context, opts ...option.ClientOption) (*Com // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *completionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2/completion_client_example_test.go b/retail/apiv2/completion_client_example_test.go index 8061e20e05d..b2b92a6da55 100644 --- a/retail/apiv2/completion_client_example_test.go +++ b/retail/apiv2/completion_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCompletionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCompletionClient() { func ExampleCompletionClient_CompleteQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleCompletionClient_CompleteQuery() { func ExampleCompletionClient_ImportCompletionData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleCompletionClient_ImportCompletionData() { func ExampleCompletionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleCompletionClient_GetOperation() { func ExampleCompletionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2/control_client.go b/retail/apiv2/control_client.go index ef0a5eb18f8..03bdb5c8772 100644 --- a/retail/apiv2/control_client.go +++ b/retail/apiv2/control_client.go @@ -127,7 +127,8 @@ func (c *ControlClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ControlClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -242,7 +243,8 @@ func NewControlClient(ctx context.Context, opts ...option.ClientOption) (*Contro // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *controlGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2/control_client_example_test.go b/retail/apiv2/control_client_example_test.go index 76cd04d98e3..56fa9bbfc0a 100644 --- a/retail/apiv2/control_client_example_test.go +++ b/retail/apiv2/control_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewControlClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewControlClient() { func ExampleControlClient_CreateControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleControlClient_CreateControl() { func ExampleControlClient_DeleteControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleControlClient_DeleteControl() { func ExampleControlClient_UpdateControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleControlClient_UpdateControl() { func ExampleControlClient_GetControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleControlClient_GetControl() { func ExampleControlClient_ListControls() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleControlClient_ListControls() { func ExampleControlClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleControlClient_GetOperation() { func ExampleControlClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2/doc.go b/retail/apiv2/doc.go index e6a908f6709..619d89191a3 100644 --- a/retail/apiv2/doc.go +++ b/retail/apiv2/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := retail.NewCatalogClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := retail.NewCatalogClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/retail/apiv2/prediction_client.go b/retail/apiv2/prediction_client.go index 89c118a64d1..18850dc9eb9 100644 --- a/retail/apiv2/prediction_client.go +++ b/retail/apiv2/prediction_client.go @@ -126,7 +126,8 @@ func (c *PredictionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -209,7 +210,8 @@ func NewPredictionClient(ctx context.Context, opts ...option.ClientOption) (*Pre // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2/prediction_client_example_test.go b/retail/apiv2/prediction_client_example_test.go index d049e3cb12f..c1bf1e9c512 100644 --- a/retail/apiv2/prediction_client_example_test.go +++ b/retail/apiv2/prediction_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewPredictionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewPredictionClient() { func ExamplePredictionClient_Predict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExamplePredictionClient_Predict() { func ExamplePredictionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExamplePredictionClient_GetOperation() { func ExamplePredictionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2/product_client.go b/retail/apiv2/product_client.go index b47a518ecef..67cd64a141e 100644 --- a/retail/apiv2/product_client.go +++ b/retail/apiv2/product_client.go @@ -280,7 +280,8 @@ func (c *ProductClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ProductClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -617,7 +618,8 @@ func NewProductClient(ctx context.Context, opts ...option.ClientOption) (*Produc // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *productGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2/product_client_example_test.go b/retail/apiv2/product_client_example_test.go index 30a74c4adb3..302ce3e3bbc 100644 --- a/retail/apiv2/product_client_example_test.go +++ b/retail/apiv2/product_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewProductClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewProductClient() { func ExampleProductClient_CreateProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleProductClient_CreateProduct() { func ExampleProductClient_GetProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleProductClient_GetProduct() { func ExampleProductClient_ListProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleProductClient_ListProducts() { func ExampleProductClient_UpdateProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleProductClient_UpdateProduct() { func ExampleProductClient_DeleteProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleProductClient_DeleteProduct() { func ExampleProductClient_ImportProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleProductClient_ImportProducts() { func ExampleProductClient_SetInventory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -193,6 +233,11 @@ func ExampleProductClient_SetInventory() { func ExampleProductClient_AddFulfillmentPlaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleProductClient_AddFulfillmentPlaces() { func ExampleProductClient_RemoveFulfillmentPlaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleProductClient_RemoveFulfillmentPlaces() { func ExampleProductClient_AddLocalInventories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleProductClient_AddLocalInventories() { func ExampleProductClient_RemoveLocalInventories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -293,6 +353,11 @@ func ExampleProductClient_RemoveLocalInventories() { func ExampleProductClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -313,6 +378,11 @@ func ExampleProductClient_GetOperation() { func ExampleProductClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2/search_client.go b/retail/apiv2/search_client.go index 13124c5d2f4..351a4f393de 100644 --- a/retail/apiv2/search_client.go +++ b/retail/apiv2/search_client.go @@ -129,7 +129,8 @@ func (c *SearchClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SearchClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,8 @@ func NewSearchClient(ctx context.Context, opts ...option.ClientOption) (*SearchC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *searchGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2/search_client_example_test.go b/retail/apiv2/search_client_example_test.go index 8c7841a35e9..7aad6356d1f 100644 --- a/retail/apiv2/search_client_example_test.go +++ b/retail/apiv2/search_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewSearchClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewSearchClient() { func ExampleSearchClient_Search() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleSearchClient_Search() { func ExampleSearchClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleSearchClient_GetOperation() { func ExampleSearchClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2/serving_config_client.go b/retail/apiv2/serving_config_client.go index c077db76f45..06c6fa1819f 100644 --- a/retail/apiv2/serving_config_client.go +++ b/retail/apiv2/serving_config_client.go @@ -133,7 +133,8 @@ func (c *ServingConfigClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServingConfigClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -263,7 +264,8 @@ func NewServingConfigClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *servingConfigGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2/serving_config_client_example_test.go b/retail/apiv2/serving_config_client_example_test.go index bb7bdbec7c3..70f4209ba19 100644 --- a/retail/apiv2/serving_config_client_example_test.go +++ b/retail/apiv2/serving_config_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewServingConfigClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewServingConfigClient() { func ExampleServingConfigClient_CreateServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleServingConfigClient_CreateServingConfig() { func ExampleServingConfigClient_DeleteServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleServingConfigClient_DeleteServingConfig() { func ExampleServingConfigClient_UpdateServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleServingConfigClient_UpdateServingConfig() { func ExampleServingConfigClient_GetServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleServingConfigClient_GetServingConfig() { func ExampleServingConfigClient_ListServingConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleServingConfigClient_ListServingConfigs() { func ExampleServingConfigClient_AddControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleServingConfigClient_AddControl() { func ExampleServingConfigClient_RemoveControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleServingConfigClient_RemoveControl() { func ExampleServingConfigClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleServingConfigClient_GetOperation() { func ExampleServingConfigClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2/user_event_client.go b/retail/apiv2/user_event_client.go index 73d2330d05f..56bc474e09b 100644 --- a/retail/apiv2/user_event_client.go +++ b/retail/apiv2/user_event_client.go @@ -193,7 +193,8 @@ func (c *UserEventClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *UserEventClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -350,7 +351,8 @@ func NewUserEventClient(ctx context.Context, opts ...option.ClientOption) (*User // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *userEventGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2/user_event_client_example_test.go b/retail/apiv2/user_event_client_example_test.go index c5fd26a008d..9bc5aa59f08 100644 --- a/retail/apiv2/user_event_client_example_test.go +++ b/retail/apiv2/user_event_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewUserEventClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewUserEventClient() { func ExampleUserEventClient_WriteUserEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleUserEventClient_WriteUserEvent() { func ExampleUserEventClient_CollectUserEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleUserEventClient_CollectUserEvent() { func ExampleUserEventClient_PurgeUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleUserEventClient_PurgeUserEvents() { func ExampleUserEventClient_ImportUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleUserEventClient_ImportUserEvents() { func ExampleUserEventClient_RejoinUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +184,11 @@ func ExampleUserEventClient_RejoinUserEvents() { func ExampleUserEventClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -174,6 +209,11 @@ func ExampleUserEventClient_GetOperation() { func ExampleUserEventClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/catalog_client.go b/retail/apiv2alpha/catalog_client.go index f4b52facc60..01ad22c7913 100644 --- a/retail/apiv2alpha/catalog_client.go +++ b/retail/apiv2alpha/catalog_client.go @@ -266,7 +266,8 @@ func (c *CatalogClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CatalogClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -462,7 +463,8 @@ func NewCatalogClient(ctx context.Context, opts ...option.ClientOption) (*Catalo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *catalogGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/catalog_client_example_test.go b/retail/apiv2alpha/catalog_client_example_test.go index 27dbb173229..4375d4611eb 100644 --- a/retail/apiv2alpha/catalog_client_example_test.go +++ b/retail/apiv2alpha/catalog_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCatalogClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCatalogClient() { func ExampleCatalogClient_ListCatalogs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleCatalogClient_ListCatalogs() { func ExampleCatalogClient_UpdateCatalog() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleCatalogClient_UpdateCatalog() { func ExampleCatalogClient_SetDefaultBranch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -103,6 +123,11 @@ func ExampleCatalogClient_SetDefaultBranch() { func ExampleCatalogClient_GetDefaultBranch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExampleCatalogClient_GetDefaultBranch() { func ExampleCatalogClient_GetCompletionConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleCatalogClient_GetCompletionConfig() { func ExampleCatalogClient_UpdateCompletionConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleCatalogClient_UpdateCompletionConfig() { func ExampleCatalogClient_GetAttributesConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleCatalogClient_GetAttributesConfig() { func ExampleCatalogClient_UpdateAttributesConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleCatalogClient_UpdateAttributesConfig() { func ExampleCatalogClient_AddCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleCatalogClient_AddCatalogAttribute() { func ExampleCatalogClient_RemoveCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +298,11 @@ func ExampleCatalogClient_RemoveCatalogAttribute() { func ExampleCatalogClient_ReplaceCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +323,11 @@ func ExampleCatalogClient_ReplaceCatalogAttribute() { func ExampleCatalogClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -283,6 +348,11 @@ func ExampleCatalogClient_GetOperation() { func ExampleCatalogClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/completion_client.go b/retail/apiv2alpha/completion_client.go index 87383cf9c13..e0a3d924365 100644 --- a/retail/apiv2alpha/completion_client.go +++ b/retail/apiv2alpha/completion_client.go @@ -151,7 +151,8 @@ func (c *CompletionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CompletionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -275,7 +276,8 @@ func NewCompletionClient(ctx context.Context, opts ...option.ClientOption) (*Com // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *completionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/completion_client_example_test.go b/retail/apiv2alpha/completion_client_example_test.go index 26905524267..b009821ef5c 100644 --- a/retail/apiv2alpha/completion_client_example_test.go +++ b/retail/apiv2alpha/completion_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCompletionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCompletionClient() { func ExampleCompletionClient_CompleteQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleCompletionClient_CompleteQuery() { func ExampleCompletionClient_ImportCompletionData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleCompletionClient_ImportCompletionData() { func ExampleCompletionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleCompletionClient_GetOperation() { func ExampleCompletionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/control_client.go b/retail/apiv2alpha/control_client.go index e4155069247..a2c7964ab00 100644 --- a/retail/apiv2alpha/control_client.go +++ b/retail/apiv2alpha/control_client.go @@ -127,7 +127,8 @@ func (c *ControlClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ControlClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -241,7 +242,8 @@ func NewControlClient(ctx context.Context, opts ...option.ClientOption) (*Contro // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *controlGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/control_client_example_test.go b/retail/apiv2alpha/control_client_example_test.go index e7b27328bf0..a0785c493f8 100644 --- a/retail/apiv2alpha/control_client_example_test.go +++ b/retail/apiv2alpha/control_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewControlClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewControlClient() { func ExampleControlClient_CreateControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleControlClient_CreateControl() { func ExampleControlClient_DeleteControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleControlClient_DeleteControl() { func ExampleControlClient_UpdateControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleControlClient_UpdateControl() { func ExampleControlClient_GetControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleControlClient_GetControl() { func ExampleControlClient_ListControls() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleControlClient_ListControls() { func ExampleControlClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleControlClient_GetOperation() { func ExampleControlClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/doc.go b/retail/apiv2alpha/doc.go index 82f134de370..9f24a67813a 100644 --- a/retail/apiv2alpha/doc.go +++ b/retail/apiv2alpha/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := retail.NewCatalogClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := retail.NewCatalogClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/retail/apiv2alpha/model_client.go b/retail/apiv2alpha/model_client.go index 00ef76c1916..25e62c02b3b 100644 --- a/retail/apiv2alpha/model_client.go +++ b/retail/apiv2alpha/model_client.go @@ -233,7 +233,8 @@ func (c *ModelClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ModelClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -390,7 +391,8 @@ func NewModelClient(ctx context.Context, opts ...option.ClientOption) (*ModelCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *modelGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/model_client_example_test.go b/retail/apiv2alpha/model_client_example_test.go index 6d0496018d2..b87dbab2614 100644 --- a/retail/apiv2alpha/model_client_example_test.go +++ b/retail/apiv2alpha/model_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewModelClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewModelClient() { func ExampleModelClient_CreateModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleModelClient_CreateModel() { func ExampleModelClient_PauseModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleModelClient_PauseModel() { func ExampleModelClient_ResumeModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleModelClient_ResumeModel() { func ExampleModelClient_DeleteModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleModelClient_DeleteModel() { func ExampleModelClient_ListModels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -148,6 +178,11 @@ func ExampleModelClient_ListModels() { func ExampleModelClient_UpdateModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleModelClient_UpdateModel() { func ExampleModelClient_TuneModel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -193,6 +233,11 @@ func ExampleModelClient_TuneModel() { func ExampleModelClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. @@ -213,6 +258,11 @@ func ExampleModelClient_GetOperation() { func ExampleModelClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewModelClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/prediction_client.go b/retail/apiv2alpha/prediction_client.go index e29f1911bb0..f5d1c01ef66 100644 --- a/retail/apiv2alpha/prediction_client.go +++ b/retail/apiv2alpha/prediction_client.go @@ -126,7 +126,8 @@ func (c *PredictionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -209,7 +210,8 @@ func NewPredictionClient(ctx context.Context, opts ...option.ClientOption) (*Pre // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/prediction_client_example_test.go b/retail/apiv2alpha/prediction_client_example_test.go index 89a63162562..fb11e426c91 100644 --- a/retail/apiv2alpha/prediction_client_example_test.go +++ b/retail/apiv2alpha/prediction_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewPredictionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewPredictionClient() { func ExamplePredictionClient_Predict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExamplePredictionClient_Predict() { func ExamplePredictionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExamplePredictionClient_GetOperation() { func ExamplePredictionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/product_client.go b/retail/apiv2alpha/product_client.go index b2c6082bb3b..f18661b38ae 100644 --- a/retail/apiv2alpha/product_client.go +++ b/retail/apiv2alpha/product_client.go @@ -295,7 +295,8 @@ func (c *ProductClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ProductClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -624,7 +625,8 @@ func NewProductClient(ctx context.Context, opts ...option.ClientOption) (*Produc // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *productGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/product_client_example_test.go b/retail/apiv2alpha/product_client_example_test.go index b9224538ce4..fbd26c88116 100644 --- a/retail/apiv2alpha/product_client_example_test.go +++ b/retail/apiv2alpha/product_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewProductClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewProductClient() { func ExampleProductClient_CreateProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleProductClient_CreateProduct() { func ExampleProductClient_GetProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleProductClient_GetProduct() { func ExampleProductClient_ListProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleProductClient_ListProducts() { func ExampleProductClient_UpdateProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleProductClient_UpdateProduct() { func ExampleProductClient_DeleteProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleProductClient_DeleteProduct() { func ExampleProductClient_PurgeProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleProductClient_PurgeProducts() { func ExampleProductClient_ImportProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -193,6 +233,11 @@ func ExampleProductClient_ImportProducts() { func ExampleProductClient_SetInventory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleProductClient_SetInventory() { func ExampleProductClient_AddFulfillmentPlaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleProductClient_AddFulfillmentPlaces() { func ExampleProductClient_RemoveFulfillmentPlaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleProductClient_RemoveFulfillmentPlaces() { func ExampleProductClient_AddLocalInventories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -293,6 +353,11 @@ func ExampleProductClient_AddLocalInventories() { func ExampleProductClient_RemoveLocalInventories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -318,6 +383,11 @@ func ExampleProductClient_RemoveLocalInventories() { func ExampleProductClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -338,6 +408,11 @@ func ExampleProductClient_GetOperation() { func ExampleProductClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/search_client.go b/retail/apiv2alpha/search_client.go index cbeef8f9c1c..9b00a580348 100644 --- a/retail/apiv2alpha/search_client.go +++ b/retail/apiv2alpha/search_client.go @@ -129,7 +129,8 @@ func (c *SearchClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SearchClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -218,7 +219,8 @@ func NewSearchClient(ctx context.Context, opts ...option.ClientOption) (*SearchC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *searchGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/search_client_example_test.go b/retail/apiv2alpha/search_client_example_test.go index e620c1324b2..65143da6db6 100644 --- a/retail/apiv2alpha/search_client_example_test.go +++ b/retail/apiv2alpha/search_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewSearchClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewSearchClient() { func ExampleSearchClient_Search() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleSearchClient_Search() { func ExampleSearchClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleSearchClient_GetOperation() { func ExampleSearchClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/serving_config_client.go b/retail/apiv2alpha/serving_config_client.go index ec459da19f2..ec69073647f 100644 --- a/retail/apiv2alpha/serving_config_client.go +++ b/retail/apiv2alpha/serving_config_client.go @@ -133,7 +133,8 @@ func (c *ServingConfigClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServingConfigClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -264,7 +265,8 @@ func NewServingConfigClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *servingConfigGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/serving_config_client_example_test.go b/retail/apiv2alpha/serving_config_client_example_test.go index b0874f20372..a56ab096230 100644 --- a/retail/apiv2alpha/serving_config_client_example_test.go +++ b/retail/apiv2alpha/serving_config_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewServingConfigClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewServingConfigClient() { func ExampleServingConfigClient_CreateServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleServingConfigClient_CreateServingConfig() { func ExampleServingConfigClient_DeleteServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleServingConfigClient_DeleteServingConfig() { func ExampleServingConfigClient_UpdateServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleServingConfigClient_UpdateServingConfig() { func ExampleServingConfigClient_GetServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleServingConfigClient_GetServingConfig() { func ExampleServingConfigClient_ListServingConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleServingConfigClient_ListServingConfigs() { func ExampleServingConfigClient_AddControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleServingConfigClient_AddControl() { func ExampleServingConfigClient_RemoveControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleServingConfigClient_RemoveControl() { func ExampleServingConfigClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleServingConfigClient_GetOperation() { func ExampleServingConfigClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2alpha/user_event_client.go b/retail/apiv2alpha/user_event_client.go index ddd4384f452..7ebd543bd6d 100644 --- a/retail/apiv2alpha/user_event_client.go +++ b/retail/apiv2alpha/user_event_client.go @@ -193,7 +193,8 @@ func (c *UserEventClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *UserEventClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -350,7 +351,8 @@ func NewUserEventClient(ctx context.Context, opts ...option.ClientOption) (*User // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *userEventGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2alpha/user_event_client_example_test.go b/retail/apiv2alpha/user_event_client_example_test.go index d25f3eec9df..f4a9fd3908a 100644 --- a/retail/apiv2alpha/user_event_client_example_test.go +++ b/retail/apiv2alpha/user_event_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewUserEventClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewUserEventClient() { func ExampleUserEventClient_WriteUserEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleUserEventClient_WriteUserEvent() { func ExampleUserEventClient_CollectUserEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleUserEventClient_CollectUserEvent() { func ExampleUserEventClient_PurgeUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleUserEventClient_PurgeUserEvents() { func ExampleUserEventClient_ImportUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleUserEventClient_ImportUserEvents() { func ExampleUserEventClient_RejoinUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +184,11 @@ func ExampleUserEventClient_RejoinUserEvents() { func ExampleUserEventClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -174,6 +209,11 @@ func ExampleUserEventClient_GetOperation() { func ExampleUserEventClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2beta/catalog_client.go b/retail/apiv2beta/catalog_client.go index 5c9f7be3f71..e2cb1ebfbf5 100644 --- a/retail/apiv2beta/catalog_client.go +++ b/retail/apiv2beta/catalog_client.go @@ -40,19 +40,20 @@ var newCatalogClientHook clientHook // CatalogCallOptions contains the retry settings for each method of CatalogClient. type CatalogCallOptions struct { - ListCatalogs []gax.CallOption - UpdateCatalog []gax.CallOption - SetDefaultBranch []gax.CallOption - GetDefaultBranch []gax.CallOption - GetCompletionConfig []gax.CallOption - UpdateCompletionConfig []gax.CallOption - GetAttributesConfig []gax.CallOption - UpdateAttributesConfig []gax.CallOption - AddCatalogAttribute []gax.CallOption - RemoveCatalogAttribute []gax.CallOption - ReplaceCatalogAttribute []gax.CallOption - GetOperation []gax.CallOption - ListOperations []gax.CallOption + ListCatalogs []gax.CallOption + UpdateCatalog []gax.CallOption + SetDefaultBranch []gax.CallOption + GetDefaultBranch []gax.CallOption + GetCompletionConfig []gax.CallOption + UpdateCompletionConfig []gax.CallOption + GetAttributesConfig []gax.CallOption + UpdateAttributesConfig []gax.CallOption + AddCatalogAttribute []gax.CallOption + RemoveCatalogAttribute []gax.CallOption + BatchRemoveCatalogAttributes []gax.CallOption + ReplaceCatalogAttribute []gax.CallOption + GetOperation []gax.CallOption + ListOperations []gax.CallOption } func defaultCatalogGRPCClientOptions() []option.ClientOption { @@ -189,6 +190,18 @@ func defaultCatalogCallOptions() *CatalogCallOptions { }) }), }, + BatchRemoveCatalogAttributes: []gax.CallOption{ + gax.WithRetry(func() gax.Retryer { + return gax.OnCodes([]codes.Code{ + codes.Unavailable, + codes.DeadlineExceeded, + }, gax.Backoff{ + Initial: 100 * time.Millisecond, + Max: 5000 * time.Millisecond, + Multiplier: 1.30, + }) + }), + }, ReplaceCatalogAttribute: []gax.CallOption{ gax.WithRetry(func() gax.Retryer { return gax.OnCodes([]codes.Code{ @@ -232,6 +245,7 @@ type internalCatalogClient interface { UpdateAttributesConfig(context.Context, *retailpb.UpdateAttributesConfigRequest, ...gax.CallOption) (*retailpb.AttributesConfig, error) AddCatalogAttribute(context.Context, *retailpb.AddCatalogAttributeRequest, ...gax.CallOption) (*retailpb.AttributesConfig, error) RemoveCatalogAttribute(context.Context, *retailpb.RemoveCatalogAttributeRequest, ...gax.CallOption) (*retailpb.AttributesConfig, error) + BatchRemoveCatalogAttributes(context.Context, *retailpb.BatchRemoveCatalogAttributesRequest, ...gax.CallOption) (*retailpb.BatchRemoveCatalogAttributesResponse, error) ReplaceCatalogAttribute(context.Context, *retailpb.ReplaceCatalogAttributeRequest, ...gax.CallOption) (*retailpb.AttributesConfig, error) GetOperation(context.Context, *longrunningpb.GetOperationRequest, ...gax.CallOption) (*longrunningpb.Operation, error) ListOperations(context.Context, *longrunningpb.ListOperationsRequest, ...gax.CallOption) *OperationIterator @@ -266,7 +280,8 @@ func (c *CatalogClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CatalogClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -377,6 +392,13 @@ func (c *CatalogClient) RemoveCatalogAttribute(ctx context.Context, req *retailp return c.internalClient.RemoveCatalogAttribute(ctx, req, opts...) } +// BatchRemoveCatalogAttributes removes all specified +// CatalogAttributes from the +// AttributesConfig. +func (c *CatalogClient) BatchRemoveCatalogAttributes(ctx context.Context, req *retailpb.BatchRemoveCatalogAttributesRequest, opts ...gax.CallOption) (*retailpb.BatchRemoveCatalogAttributesResponse, error) { + return c.internalClient.BatchRemoveCatalogAttributes(ctx, req, opts...) +} + // ReplaceCatalogAttribute replaces the specified // CatalogAttribute in the // AttributesConfig by updating @@ -462,7 +484,8 @@ func NewCatalogClient(ctx context.Context, opts ...option.ClientOption) (*Catalo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *catalogGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -721,6 +744,28 @@ func (c *catalogGRPCClient) RemoveCatalogAttribute(ctx context.Context, req *ret return resp, nil } +func (c *catalogGRPCClient) BatchRemoveCatalogAttributes(ctx context.Context, req *retailpb.BatchRemoveCatalogAttributesRequest, opts ...gax.CallOption) (*retailpb.BatchRemoveCatalogAttributesResponse, error) { + if _, ok := ctx.Deadline(); !ok && !c.disableDeadlines { + cctx, cancel := context.WithTimeout(ctx, 5000*time.Millisecond) + defer cancel() + ctx = cctx + } + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "attributes_config", url.QueryEscape(req.GetAttributesConfig()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).BatchRemoveCatalogAttributes[0:len((*c.CallOptions).BatchRemoveCatalogAttributes):len((*c.CallOptions).BatchRemoveCatalogAttributes)], opts...) + var resp *retailpb.BatchRemoveCatalogAttributesResponse + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.catalogClient.BatchRemoveCatalogAttributes(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + func (c *catalogGRPCClient) ReplaceCatalogAttribute(ctx context.Context, req *retailpb.ReplaceCatalogAttributeRequest, opts ...gax.CallOption) (*retailpb.AttributesConfig, error) { if _, ok := ctx.Deadline(); !ok && !c.disableDeadlines { cctx, cancel := context.WithTimeout(ctx, 5000*time.Millisecond) diff --git a/retail/apiv2beta/catalog_client_example_test.go b/retail/apiv2beta/catalog_client_example_test.go index 986cefb2be0..1d42c61ce7f 100644 --- a/retail/apiv2beta/catalog_client_example_test.go +++ b/retail/apiv2beta/catalog_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCatalogClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCatalogClient() { func ExampleCatalogClient_ListCatalogs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleCatalogClient_ListCatalogs() { func ExampleCatalogClient_UpdateCatalog() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleCatalogClient_UpdateCatalog() { func ExampleCatalogClient_SetDefaultBranch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -103,6 +123,11 @@ func ExampleCatalogClient_SetDefaultBranch() { func ExampleCatalogClient_GetDefaultBranch() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExampleCatalogClient_GetDefaultBranch() { func ExampleCatalogClient_GetCompletionConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleCatalogClient_GetCompletionConfig() { func ExampleCatalogClient_UpdateCompletionConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleCatalogClient_UpdateCompletionConfig() { func ExampleCatalogClient_GetAttributesConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleCatalogClient_GetAttributesConfig() { func ExampleCatalogClient_UpdateAttributesConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleCatalogClient_UpdateAttributesConfig() { func ExampleCatalogClient_AddCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleCatalogClient_AddCatalogAttribute() { func ExampleCatalogClient_RemoveCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -241,8 +296,38 @@ func ExampleCatalogClient_RemoveCatalogAttribute() { _ = resp } +func ExampleCatalogClient_BatchRemoveCatalogAttributes() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.BatchRemoveCatalogAttributesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2beta#BatchRemoveCatalogAttributesRequest. + } + resp, err := c.BatchRemoveCatalogAttributes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + func ExampleCatalogClient_ReplaceCatalogAttribute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +348,11 @@ func ExampleCatalogClient_ReplaceCatalogAttribute() { func ExampleCatalogClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -283,6 +373,11 @@ func ExampleCatalogClient_GetOperation() { func ExampleCatalogClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2beta/completion_client.go b/retail/apiv2beta/completion_client.go index cebe0ee8402..87829dd94a2 100644 --- a/retail/apiv2beta/completion_client.go +++ b/retail/apiv2beta/completion_client.go @@ -120,7 +120,7 @@ type internalCompletionClient interface { // Auto-completion service for retail. // // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. type CompletionClient struct { // The internal transport-dependent client. internalClient internalCompletionClient @@ -151,7 +151,8 @@ func (c *CompletionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CompletionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -159,7 +160,7 @@ func (c *CompletionClient) Connection() *grpc.ClientConn { // CompleteQuery completes the specified prefix with keyword suggestions. // // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func (c *CompletionClient) CompleteQuery(ctx context.Context, req *retailpb.CompleteQueryRequest, opts ...gax.CallOption) (*retailpb.CompleteQueryResponse, error) { return c.internalClient.CompleteQuery(ctx, req, opts...) } @@ -172,7 +173,7 @@ func (c *CompletionClient) CompleteQuery(ctx context.Context, req *retailpb.Comp // are indexed successfully and ready for serving. The process takes hours. // // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func (c *CompletionClient) ImportCompletionData(ctx context.Context, req *retailpb.ImportCompletionDataRequest, opts ...gax.CallOption) (*ImportCompletionDataOperation, error) { return c.internalClient.ImportCompletionData(ctx, req, opts...) } @@ -226,7 +227,7 @@ type completionGRPCClient struct { // Auto-completion service for retail. // // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func NewCompletionClient(ctx context.Context, opts ...option.ClientOption) (*CompletionClient, error) { clientOpts := defaultCompletionGRPCClientOptions() if newCompletionClientHook != nil { @@ -275,7 +276,8 @@ func NewCompletionClient(ctx context.Context, opts ...option.ClientOption) (*Com // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *completionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2beta/completion_client_example_test.go b/retail/apiv2beta/completion_client_example_test.go index 0a8c11e2c50..66768f900b9 100644 --- a/retail/apiv2beta/completion_client_example_test.go +++ b/retail/apiv2beta/completion_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCompletionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCompletionClient() { func ExampleCompletionClient_CompleteQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleCompletionClient_CompleteQuery() { func ExampleCompletionClient_ImportCompletionData() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleCompletionClient_ImportCompletionData() { func ExampleCompletionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleCompletionClient_GetOperation() { func ExampleCompletionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2beta/control_client.go b/retail/apiv2beta/control_client.go index e4c761f9701..354f9ce2122 100644 --- a/retail/apiv2beta/control_client.go +++ b/retail/apiv2beta/control_client.go @@ -127,7 +127,8 @@ func (c *ControlClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ControlClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -152,7 +153,7 @@ func (c *ControlClient) DeleteControl(ctx context.Context, req *retailpb.DeleteC // // Control cannot be set to a different // oneof field, if so an INVALID_ARGUMENT is returned. If the -// Control to delete does not exist, a +// Control to update does not exist, a // NOT_FOUND error is returned. func (c *ControlClient) UpdateControl(ctx context.Context, req *retailpb.UpdateControlRequest, opts ...gax.CallOption) (*retailpb.Control, error) { return c.internalClient.UpdateControl(ctx, req, opts...) @@ -163,7 +164,8 @@ func (c *ControlClient) GetControl(ctx context.Context, req *retailpb.GetControl return c.internalClient.GetControl(ctx, req, opts...) } -// ListControls lists all Controls linked to this catalog. +// ListControls lists all Controls by their parent +// Catalog. func (c *ControlClient) ListControls(ctx context.Context, req *retailpb.ListControlsRequest, opts ...gax.CallOption) *ControlIterator { return c.internalClient.ListControls(ctx, req, opts...) } @@ -241,7 +243,8 @@ func NewControlClient(ctx context.Context, opts ...option.ClientOption) (*Contro // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *controlGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2beta/control_client_example_test.go b/retail/apiv2beta/control_client_example_test.go index 2a650134fc6..c68aaa7c355 100644 --- a/retail/apiv2beta/control_client_example_test.go +++ b/retail/apiv2beta/control_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewControlClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewControlClient() { func ExampleControlClient_CreateControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleControlClient_CreateControl() { func ExampleControlClient_DeleteControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleControlClient_DeleteControl() { func ExampleControlClient_UpdateControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleControlClient_UpdateControl() { func ExampleControlClient_GetControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleControlClient_GetControl() { func ExampleControlClient_ListControls() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleControlClient_ListControls() { func ExampleControlClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleControlClient_GetOperation() { func ExampleControlClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewControlClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2beta/doc.go b/retail/apiv2beta/doc.go index fa3abc208dd..e8439a47502 100644 --- a/retail/apiv2beta/doc.go +++ b/retail/apiv2beta/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := retail.NewCatalogClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := retail.NewCatalogClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/retail/apiv2beta/gapic_metadata.json b/retail/apiv2beta/gapic_metadata.json index 777c7c4bef7..3c8f1705c89 100644 --- a/retail/apiv2beta/gapic_metadata.json +++ b/retail/apiv2beta/gapic_metadata.json @@ -15,6 +15,11 @@ "AddCatalogAttribute" ] }, + "BatchRemoveCatalogAttributes": { + "methods": [ + "BatchRemoveCatalogAttributes" + ] + }, "GetAttributesConfig": { "methods": [ "GetAttributesConfig" @@ -152,6 +157,60 @@ } } }, + "ModelService": { + "clients": { + "grpc": { + "libraryClient": "ModelClient", + "rpcs": { + "CreateModel": { + "methods": [ + "CreateModel" + ] + }, + "DeleteModel": { + "methods": [ + "DeleteModel" + ] + }, + "GetOperation": { + "methods": [ + "GetOperation" + ] + }, + "ListModels": { + "methods": [ + "ListModels" + ] + }, + "ListOperations": { + "methods": [ + "ListOperations" + ] + }, + "PauseModel": { + "methods": [ + "PauseModel" + ] + }, + "ResumeModel": { + "methods": [ + "ResumeModel" + ] + }, + "TuneModel": { + "methods": [ + "TuneModel" + ] + }, + "UpdateModel": { + "methods": [ + "UpdateModel" + ] + } + } + } + } + }, "PredictionService": { "clients": { "grpc": { diff --git a/retail/apiv2beta/model_client.go b/retail/apiv2beta/model_client.go new file mode 100644 index 00000000000..dd8820a6b5e --- /dev/null +++ b/retail/apiv2beta/model_client.go @@ -0,0 +1,731 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go_gapic. DO NOT EDIT. + +package retail + +import ( + "context" + "fmt" + "math" + "net/url" + "time" + + "cloud.google.com/go/longrunning" + lroauto "cloud.google.com/go/longrunning/autogen" + gax "github.com/googleapis/gax-go/v2" + "google.golang.org/api/iterator" + "google.golang.org/api/option" + "google.golang.org/api/option/internaloption" + gtransport "google.golang.org/api/transport/grpc" + retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2beta" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/metadata" + "google.golang.org/protobuf/proto" +) + +var newModelClientHook clientHook + +// ModelCallOptions contains the retry settings for each method of ModelClient. +type ModelCallOptions struct { + CreateModel []gax.CallOption + PauseModel []gax.CallOption + ResumeModel []gax.CallOption + DeleteModel []gax.CallOption + ListModels []gax.CallOption + UpdateModel []gax.CallOption + TuneModel []gax.CallOption + GetOperation []gax.CallOption + ListOperations []gax.CallOption +} + +func defaultModelGRPCClientOptions() []option.ClientOption { + return []option.ClientOption{ + internaloption.WithDefaultEndpoint("retail.googleapis.com:443"), + internaloption.WithDefaultMTLSEndpoint("retail.mtls.googleapis.com:443"), + internaloption.WithDefaultAudience("https://retail.googleapis.com/"), + internaloption.WithDefaultScopes(DefaultAuthScopes()...), + internaloption.EnableJwtWithScope(), + option.WithGRPCDialOption(grpc.WithDefaultCallOptions( + grpc.MaxCallRecvMsgSize(math.MaxInt32))), + } +} + +func defaultModelCallOptions() *ModelCallOptions { + return &ModelCallOptions{ + CreateModel: []gax.CallOption{}, + PauseModel: []gax.CallOption{}, + ResumeModel: []gax.CallOption{}, + DeleteModel: []gax.CallOption{}, + ListModels: []gax.CallOption{}, + UpdateModel: []gax.CallOption{}, + TuneModel: []gax.CallOption{}, + GetOperation: []gax.CallOption{}, + ListOperations: []gax.CallOption{ + gax.WithRetry(func() gax.Retryer { + return gax.OnCodes([]codes.Code{ + codes.Unavailable, + codes.DeadlineExceeded, + }, gax.Backoff{ + Initial: 100 * time.Millisecond, + Max: 300000 * time.Millisecond, + Multiplier: 1.30, + }) + }), + }, + } +} + +// internalModelClient is an interface that defines the methods available from Retail API. +type internalModelClient interface { + Close() error + setGoogleClientInfo(...string) + Connection() *grpc.ClientConn + CreateModel(context.Context, *retailpb.CreateModelRequest, ...gax.CallOption) (*CreateModelOperation, error) + CreateModelOperation(name string) *CreateModelOperation + PauseModel(context.Context, *retailpb.PauseModelRequest, ...gax.CallOption) (*retailpb.Model, error) + ResumeModel(context.Context, *retailpb.ResumeModelRequest, ...gax.CallOption) (*retailpb.Model, error) + DeleteModel(context.Context, *retailpb.DeleteModelRequest, ...gax.CallOption) error + ListModels(context.Context, *retailpb.ListModelsRequest, ...gax.CallOption) *ModelIterator + UpdateModel(context.Context, *retailpb.UpdateModelRequest, ...gax.CallOption) (*retailpb.Model, error) + TuneModel(context.Context, *retailpb.TuneModelRequest, ...gax.CallOption) (*TuneModelOperation, error) + TuneModelOperation(name string) *TuneModelOperation + GetOperation(context.Context, *longrunningpb.GetOperationRequest, ...gax.CallOption) (*longrunningpb.Operation, error) + ListOperations(context.Context, *longrunningpb.ListOperationsRequest, ...gax.CallOption) *OperationIterator +} + +// ModelClient is a client for interacting with Retail API. +// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. +// +// Service for performing CRUD operations on models. +// Recommendation models contain all the metadata necessary to generate a set of +// models for the Predict() API. A model is queried +// indirectly via a ServingConfig, which associates a model with a +// given Placement (e.g. Frequently Bought Together on Home Page). +// +// This service allows you to do the following: +// +// Initiate training of a model. +// +// Pause training of an existing model. +// +// List all the available models along with their metadata. +// +// Control their tuning schedule. +type ModelClient struct { + // The internal transport-dependent client. + internalClient internalModelClient + + // The call options for this service. + CallOptions *ModelCallOptions + + // LROClient is used internally to handle long-running operations. + // It is exposed so that its CallOptions can be modified if required. + // Users should not Close this client. + LROClient *lroauto.OperationsClient +} + +// Wrapper methods routed to the internal client. + +// Close closes the connection to the API service. The user should invoke this when +// the client is no longer required. +func (c *ModelClient) Close() error { + return c.internalClient.Close() +} + +// setGoogleClientInfo sets the name and version of the application in +// the `x-goog-api-client` header passed on each request. Intended for +// use by Google-written clients. +func (c *ModelClient) setGoogleClientInfo(keyval ...string) { + c.internalClient.setGoogleClientInfo(keyval...) +} + +// Connection returns a connection to the API service. +// +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. +func (c *ModelClient) Connection() *grpc.ClientConn { + return c.internalClient.Connection() +} + +// CreateModel creates a new model. +func (c *ModelClient) CreateModel(ctx context.Context, req *retailpb.CreateModelRequest, opts ...gax.CallOption) (*CreateModelOperation, error) { + return c.internalClient.CreateModel(ctx, req, opts...) +} + +// CreateModelOperation returns a new CreateModelOperation from a given name. +// The name must be that of a previously created CreateModelOperation, possibly from a different process. +func (c *ModelClient) CreateModelOperation(name string) *CreateModelOperation { + return c.internalClient.CreateModelOperation(name) +} + +// PauseModel pauses the training of an existing model. +func (c *ModelClient) PauseModel(ctx context.Context, req *retailpb.PauseModelRequest, opts ...gax.CallOption) (*retailpb.Model, error) { + return c.internalClient.PauseModel(ctx, req, opts...) +} + +// ResumeModel resumes the training of an existing model. +func (c *ModelClient) ResumeModel(ctx context.Context, req *retailpb.ResumeModelRequest, opts ...gax.CallOption) (*retailpb.Model, error) { + return c.internalClient.ResumeModel(ctx, req, opts...) +} + +// DeleteModel deletes an existing model. +func (c *ModelClient) DeleteModel(ctx context.Context, req *retailpb.DeleteModelRequest, opts ...gax.CallOption) error { + return c.internalClient.DeleteModel(ctx, req, opts...) +} + +// ListModels lists all the models linked to this event store. +func (c *ModelClient) ListModels(ctx context.Context, req *retailpb.ListModelsRequest, opts ...gax.CallOption) *ModelIterator { + return c.internalClient.ListModels(ctx, req, opts...) +} + +// UpdateModel update of model metadata. Only fields that +// currently can be updated are: filtering_option and +// periodic_tuning_state. +// If other values are provided, this API method ignores them. +func (c *ModelClient) UpdateModel(ctx context.Context, req *retailpb.UpdateModelRequest, opts ...gax.CallOption) (*retailpb.Model, error) { + return c.internalClient.UpdateModel(ctx, req, opts...) +} + +// TuneModel tunes an existing model. +func (c *ModelClient) TuneModel(ctx context.Context, req *retailpb.TuneModelRequest, opts ...gax.CallOption) (*TuneModelOperation, error) { + return c.internalClient.TuneModel(ctx, req, opts...) +} + +// TuneModelOperation returns a new TuneModelOperation from a given name. +// The name must be that of a previously created TuneModelOperation, possibly from a different process. +func (c *ModelClient) TuneModelOperation(name string) *TuneModelOperation { + return c.internalClient.TuneModelOperation(name) +} + +// GetOperation is a utility method from google.longrunning.Operations. +func (c *ModelClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error) { + return c.internalClient.GetOperation(ctx, req, opts...) +} + +// ListOperations is a utility method from google.longrunning.Operations. +func (c *ModelClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator { + return c.internalClient.ListOperations(ctx, req, opts...) +} + +// modelGRPCClient is a client for interacting with Retail API over gRPC transport. +// +// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. +type modelGRPCClient struct { + // Connection pool of gRPC connections to the service. + connPool gtransport.ConnPool + + // flag to opt out of default deadlines via GOOGLE_API_GO_EXPERIMENTAL_DISABLE_DEFAULT_DEADLINE + disableDeadlines bool + + // Points back to the CallOptions field of the containing ModelClient + CallOptions **ModelCallOptions + + // The gRPC API client. + modelClient retailpb.ModelServiceClient + + // LROClient is used internally to handle long-running operations. + // It is exposed so that its CallOptions can be modified if required. + // Users should not Close this client. + LROClient **lroauto.OperationsClient + + operationsClient longrunningpb.OperationsClient + + // The x-goog-* metadata to be sent with each request. + xGoogMetadata metadata.MD +} + +// NewModelClient creates a new model service client based on gRPC. +// The returned client must be Closed when it is done being used to clean up its underlying connections. +// +// Service for performing CRUD operations on models. +// Recommendation models contain all the metadata necessary to generate a set of +// models for the Predict() API. A model is queried +// indirectly via a ServingConfig, which associates a model with a +// given Placement (e.g. Frequently Bought Together on Home Page). +// +// This service allows you to do the following: +// +// Initiate training of a model. +// +// Pause training of an existing model. +// +// List all the available models along with their metadata. +// +// Control their tuning schedule. +func NewModelClient(ctx context.Context, opts ...option.ClientOption) (*ModelClient, error) { + clientOpts := defaultModelGRPCClientOptions() + if newModelClientHook != nil { + hookOpts, err := newModelClientHook(ctx, clientHookParams{}) + if err != nil { + return nil, err + } + clientOpts = append(clientOpts, hookOpts...) + } + + disableDeadlines, err := checkDisableDeadlines() + if err != nil { + return nil, err + } + + connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) + if err != nil { + return nil, err + } + client := ModelClient{CallOptions: defaultModelCallOptions()} + + c := &modelGRPCClient{ + connPool: connPool, + disableDeadlines: disableDeadlines, + modelClient: retailpb.NewModelServiceClient(connPool), + CallOptions: &client.CallOptions, + operationsClient: longrunningpb.NewOperationsClient(connPool), + } + c.setGoogleClientInfo() + + client.internalClient = c + + client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) + if err != nil { + // This error "should not happen", since we are just reusing old connection pool + // and never actually need to dial. + // If this does happen, we could leak connp. However, we cannot close conn: + // If the user invoked the constructor with option.WithGRPCConn, + // we would close a connection that's still in use. + // TODO: investigate error conditions. + return nil, err + } + c.LROClient = &client.LROClient + return &client, nil +} + +// Connection returns a connection to the API service. +// +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. +func (c *modelGRPCClient) Connection() *grpc.ClientConn { + return c.connPool.Conn() +} + +// setGoogleClientInfo sets the name and version of the application in +// the `x-goog-api-client` header passed on each request. Intended for +// use by Google-written clients. +func (c *modelGRPCClient) setGoogleClientInfo(keyval ...string) { + kv := append([]string{"gl-go", versionGo()}, keyval...) + kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) + c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) +} + +// Close closes the connection to the API service. The user should invoke this when +// the client is no longer required. +func (c *modelGRPCClient) Close() error { + return c.connPool.Close() +} + +func (c *modelGRPCClient) CreateModel(ctx context.Context, req *retailpb.CreateModelRequest, opts ...gax.CallOption) (*CreateModelOperation, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).CreateModel[0:len((*c.CallOptions).CreateModel):len((*c.CallOptions).CreateModel)], opts...) + var resp *longrunningpb.Operation + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.modelClient.CreateModel(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return &CreateModelOperation{ + lro: longrunning.InternalNewOperation(*c.LROClient, resp), + }, nil +} + +func (c *modelGRPCClient) PauseModel(ctx context.Context, req *retailpb.PauseModelRequest, opts ...gax.CallOption) (*retailpb.Model, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).PauseModel[0:len((*c.CallOptions).PauseModel):len((*c.CallOptions).PauseModel)], opts...) + var resp *retailpb.Model + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.modelClient.PauseModel(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *modelGRPCClient) ResumeModel(ctx context.Context, req *retailpb.ResumeModelRequest, opts ...gax.CallOption) (*retailpb.Model, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ResumeModel[0:len((*c.CallOptions).ResumeModel):len((*c.CallOptions).ResumeModel)], opts...) + var resp *retailpb.Model + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.modelClient.ResumeModel(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *modelGRPCClient) DeleteModel(ctx context.Context, req *retailpb.DeleteModelRequest, opts ...gax.CallOption) error { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).DeleteModel[0:len((*c.CallOptions).DeleteModel):len((*c.CallOptions).DeleteModel)], opts...) + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + _, err = c.modelClient.DeleteModel(ctx, req, settings.GRPC...) + return err + }, opts...) + return err +} + +func (c *modelGRPCClient) ListModels(ctx context.Context, req *retailpb.ListModelsRequest, opts ...gax.CallOption) *ModelIterator { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ListModels[0:len((*c.CallOptions).ListModels):len((*c.CallOptions).ListModels)], opts...) + it := &ModelIterator{} + req = proto.Clone(req).(*retailpb.ListModelsRequest) + it.InternalFetch = func(pageSize int, pageToken string) ([]*retailpb.Model, string, error) { + resp := &retailpb.ListModelsResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.modelClient.ListModels(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, "", err + } + + it.Response = resp + return resp.GetModels(), resp.GetNextPageToken(), nil + } + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +func (c *modelGRPCClient) UpdateModel(ctx context.Context, req *retailpb.UpdateModelRequest, opts ...gax.CallOption) (*retailpb.Model, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "model.name", url.QueryEscape(req.GetModel().GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).UpdateModel[0:len((*c.CallOptions).UpdateModel):len((*c.CallOptions).UpdateModel)], opts...) + var resp *retailpb.Model + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.modelClient.UpdateModel(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *modelGRPCClient) TuneModel(ctx context.Context, req *retailpb.TuneModelRequest, opts ...gax.CallOption) (*TuneModelOperation, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).TuneModel[0:len((*c.CallOptions).TuneModel):len((*c.CallOptions).TuneModel)], opts...) + var resp *longrunningpb.Operation + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.modelClient.TuneModel(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return &TuneModelOperation{ + lro: longrunning.InternalNewOperation(*c.LROClient, resp), + }, nil +} + +func (c *modelGRPCClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).GetOperation[0:len((*c.CallOptions).GetOperation):len((*c.CallOptions).GetOperation)], opts...) + var resp *longrunningpb.Operation + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.operationsClient.GetOperation(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *modelGRPCClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ListOperations[0:len((*c.CallOptions).ListOperations):len((*c.CallOptions).ListOperations)], opts...) + it := &OperationIterator{} + req = proto.Clone(req).(*longrunningpb.ListOperationsRequest) + it.InternalFetch = func(pageSize int, pageToken string) ([]*longrunningpb.Operation, string, error) { + resp := &longrunningpb.ListOperationsResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.operationsClient.ListOperations(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, "", err + } + + it.Response = resp + return resp.GetOperations(), resp.GetNextPageToken(), nil + } + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +// CreateModelOperation manages a long-running operation from CreateModel. +type CreateModelOperation struct { + lro *longrunning.Operation +} + +// CreateModelOperation returns a new CreateModelOperation from a given name. +// The name must be that of a previously created CreateModelOperation, possibly from a different process. +func (c *modelGRPCClient) CreateModelOperation(name string) *CreateModelOperation { + return &CreateModelOperation{ + lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), + } +} + +// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. +// +// See documentation of Poll for error-handling information. +func (op *CreateModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*retailpb.Model, error) { + var resp retailpb.Model + if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { + return nil, err + } + return &resp, nil +} + +// Poll fetches the latest state of the long-running operation. +// +// Poll also fetches the latest metadata, which can be retrieved by Metadata. +// +// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and +// the operation has completed with failure, the error is returned and op.Done will return true. +// If Poll succeeds and the operation has completed successfully, +// op.Done will return true, and the response of the operation is returned. +// If Poll succeeds and the operation has not completed, the returned response and error are both nil. +func (op *CreateModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*retailpb.Model, error) { + var resp retailpb.Model + if err := op.lro.Poll(ctx, &resp, opts...); err != nil { + return nil, err + } + if !op.Done() { + return nil, nil + } + return &resp, nil +} + +// Metadata returns metadata associated with the long-running operation. +// Metadata itself does not contact the server, but Poll does. +// To get the latest metadata, call this method after a successful call to Poll. +// If the metadata is not available, the returned metadata and error are both nil. +func (op *CreateModelOperation) Metadata() (*retailpb.CreateModelMetadata, error) { + var meta retailpb.CreateModelMetadata + if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { + return nil, nil + } else if err != nil { + return nil, err + } + return &meta, nil +} + +// Done reports whether the long-running operation has completed. +func (op *CreateModelOperation) Done() bool { + return op.lro.Done() +} + +// Name returns the name of the long-running operation. +// The name is assigned by the server and is unique within the service from which the operation is created. +func (op *CreateModelOperation) Name() string { + return op.lro.Name() +} + +// TuneModelOperation manages a long-running operation from TuneModel. +type TuneModelOperation struct { + lro *longrunning.Operation +} + +// TuneModelOperation returns a new TuneModelOperation from a given name. +// The name must be that of a previously created TuneModelOperation, possibly from a different process. +func (c *modelGRPCClient) TuneModelOperation(name string) *TuneModelOperation { + return &TuneModelOperation{ + lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), + } +} + +// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. +// +// See documentation of Poll for error-handling information. +func (op *TuneModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*retailpb.TuneModelResponse, error) { + var resp retailpb.TuneModelResponse + if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { + return nil, err + } + return &resp, nil +} + +// Poll fetches the latest state of the long-running operation. +// +// Poll also fetches the latest metadata, which can be retrieved by Metadata. +// +// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and +// the operation has completed with failure, the error is returned and op.Done will return true. +// If Poll succeeds and the operation has completed successfully, +// op.Done will return true, and the response of the operation is returned. +// If Poll succeeds and the operation has not completed, the returned response and error are both nil. +func (op *TuneModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*retailpb.TuneModelResponse, error) { + var resp retailpb.TuneModelResponse + if err := op.lro.Poll(ctx, &resp, opts...); err != nil { + return nil, err + } + if !op.Done() { + return nil, nil + } + return &resp, nil +} + +// Metadata returns metadata associated with the long-running operation. +// Metadata itself does not contact the server, but Poll does. +// To get the latest metadata, call this method after a successful call to Poll. +// If the metadata is not available, the returned metadata and error are both nil. +func (op *TuneModelOperation) Metadata() (*retailpb.TuneModelMetadata, error) { + var meta retailpb.TuneModelMetadata + if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { + return nil, nil + } else if err != nil { + return nil, err + } + return &meta, nil +} + +// Done reports whether the long-running operation has completed. +func (op *TuneModelOperation) Done() bool { + return op.lro.Done() +} + +// Name returns the name of the long-running operation. +// The name is assigned by the server and is unique within the service from which the operation is created. +func (op *TuneModelOperation) Name() string { + return op.lro.Name() +} + +// ModelIterator manages a stream of *retailpb.Model. +type ModelIterator struct { + items []*retailpb.Model + pageInfo *iterator.PageInfo + nextFunc func() error + + // Response is the raw response for the current page. + // It must be cast to the RPC response type. + // Calling Next() or InternalFetch() updates this value. + Response interface{} + + // InternalFetch is for use by the Google Cloud Libraries only. + // It is not part of the stable interface of this package. + // + // InternalFetch returns results from a single call to the underlying RPC. + // The number of results is no greater than pageSize. + // If there are no more results, nextPageToken is empty and err is nil. + InternalFetch func(pageSize int, pageToken string) (results []*retailpb.Model, nextPageToken string, err error) +} + +// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. +func (it *ModelIterator) PageInfo() *iterator.PageInfo { + return it.pageInfo +} + +// Next returns the next result. Its second return value is iterator.Done if there are no more +// results. Once Next returns Done, all subsequent calls will return Done. +func (it *ModelIterator) Next() (*retailpb.Model, error) { + var item *retailpb.Model + if err := it.nextFunc(); err != nil { + return item, err + } + item = it.items[0] + it.items = it.items[1:] + return item, nil +} + +func (it *ModelIterator) bufLen() int { + return len(it.items) +} + +func (it *ModelIterator) takeBuf() interface{} { + b := it.items + it.items = nil + return b +} diff --git a/retail/apiv2beta/model_client_example_test.go b/retail/apiv2beta/model_client_example_test.go new file mode 100644 index 00000000000..a483360f51b --- /dev/null +++ b/retail/apiv2beta/model_client_example_test.go @@ -0,0 +1,288 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go_gapic. DO NOT EDIT. + +package retail_test + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2beta" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func ExampleNewModelClient() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + // TODO: Use client. + _ = c +} + +func ExampleModelClient_CreateModel() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2beta#CreateModelRequest. + } + op, err := c.CreateModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleModelClient_PauseModel() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.PauseModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2beta#PauseModelRequest. + } + resp, err := c.PauseModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleModelClient_ResumeModel() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ResumeModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2beta#ResumeModelRequest. + } + resp, err := c.ResumeModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleModelClient_DeleteModel() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2beta#DeleteModelRequest. + } + err = c.DeleteModel(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +func ExampleModelClient_ListModels() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListModelsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2beta#ListModelsRequest. + } + it := c.ListModels(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +func ExampleModelClient_UpdateModel() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2beta#UpdateModelRequest. + } + resp, err := c.UpdateModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleModelClient_TuneModel() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.TuneModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2beta#TuneModelRequest. + } + op, err := c.TuneModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleModelClient_GetOperation() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleModelClient_ListOperations() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} diff --git a/retail/apiv2beta/prediction_client.go b/retail/apiv2beta/prediction_client.go index d45e734298e..215338bd731 100644 --- a/retail/apiv2beta/prediction_client.go +++ b/retail/apiv2beta/prediction_client.go @@ -126,7 +126,8 @@ func (c *PredictionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *PredictionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -209,7 +210,8 @@ func NewPredictionClient(ctx context.Context, opts ...option.ClientOption) (*Pre // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *predictionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2beta/prediction_client_example_test.go b/retail/apiv2beta/prediction_client_example_test.go index da387a1b970..dd2c2be085a 100644 --- a/retail/apiv2beta/prediction_client_example_test.go +++ b/retail/apiv2beta/prediction_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewPredictionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewPredictionClient() { func ExamplePredictionClient_Predict() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExamplePredictionClient_Predict() { func ExamplePredictionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExamplePredictionClient_GetOperation() { func ExamplePredictionClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2beta/product_client.go b/retail/apiv2beta/product_client.go index 9a9329719d8..0d511604e37 100644 --- a/retail/apiv2beta/product_client.go +++ b/retail/apiv2beta/product_client.go @@ -280,7 +280,8 @@ func (c *ProductClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ProductClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -333,9 +334,9 @@ func (c *ProductClient) ImportProductsOperation(name string) *ImportProductsOper // // This process is asynchronous and does not require the // Product to exist before updating -// fulfillment information. If the request is valid, the update will be -// enqueued and processed downstream. As a consequence, when a response is -// returned, updates are not immediately manifested in the +// fulfillment information. If the request is valid, the update is enqueued +// and processed downstream. As a consequence, when a response is returned, +// updates are not immediately manifested in the // Product queried by // ProductService.GetProduct // or @@ -345,10 +346,10 @@ func (c *ProductClient) ImportProductsOperation(name string) *ImportProductsOper // ProductService.CreateProduct // and // ProductService.UpdateProduct, -// the specified inventory field value(s) will overwrite any existing value(s) +// the specified inventory field value(s) overwrite any existing value(s) // while ignoring the last update time for this field. Furthermore, the last -// update time for the specified inventory fields will be overwritten to the -// time of the +// update times for the specified inventory fields are overwritten by the +// times of the // ProductService.CreateProduct // or // ProductService.UpdateProduct @@ -356,11 +357,11 @@ func (c *ProductClient) ImportProductsOperation(name string) *ImportProductsOper // // If no inventory fields are set in // CreateProductRequest.product, -// then any pre-existing inventory information for this product will be used. +// then any pre-existing inventory information for this product is used. // // If no inventory fields are set in // SetInventoryRequest.set_mask, -// then any existing inventory information will be preserved. +// then any existing inventory information is preserved. // // Pre-existing inventory information can only be updated with // ProductService.SetInventory, @@ -368,8 +369,17 @@ func (c *ProductClient) ImportProductsOperation(name string) *ImportProductsOper // and // ProductService.RemoveFulfillmentPlaces. // +// The returned Operations is obsolete after +// one day, and the GetOperation +// API returns NOT_FOUND afterwards. +// +// If conflicting updates are issued, the +// Operations associated with the stale +// updates are not marked as done until +// they are obsolete. +// // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func (c *ProductClient) SetInventory(ctx context.Context, req *retailpb.SetInventoryRequest, opts ...gax.CallOption) (*SetInventoryOperation, error) { return c.internalClient.SetInventory(ctx, req, opts...) } @@ -393,8 +403,17 @@ func (c *ProductClient) SetInventoryOperation(name string) *SetInventoryOperatio // or // ProductService.ListProducts. // +// The returned Operations will be obsolete +// after 1 day, and GetOperation +// API will return NOT_FOUND afterwards. +// +// If conflicting updates are issued, the +// Operations associated with the stale +// updates will not be marked as done +// until being obsolete. +// // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func (c *ProductClient) AddFulfillmentPlaces(ctx context.Context, req *retailpb.AddFulfillmentPlacesRequest, opts ...gax.CallOption) (*AddFulfillmentPlacesOperation, error) { return c.internalClient.AddFulfillmentPlaces(ctx, req, opts...) } @@ -418,8 +437,17 @@ func (c *ProductClient) AddFulfillmentPlacesOperation(name string) *AddFulfillme // or // ProductService.ListProducts. // +// The returned Operations will be obsolete +// after 1 day, and GetOperation +// API will return NOT_FOUND afterwards. +// +// If conflicting updates are issued, the +// Operations associated with the stale +// updates will not be marked as done +// until being obsolete. +// // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func (c *ProductClient) RemoveFulfillmentPlaces(ctx context.Context, req *retailpb.RemoveFulfillmentPlacesRequest, opts ...gax.CallOption) (*RemoveFulfillmentPlacesOperation, error) { return c.internalClient.RemoveFulfillmentPlaces(ctx, req, opts...) } @@ -450,8 +478,17 @@ func (c *ProductClient) RemoveFulfillmentPlacesOperation(name string) *RemoveFul // ProductService.UpdateProduct // has no effect on local inventories. // +// The returned Operations will be obsolete +// after 1 day, and GetOperation +// API will return NOT_FOUND afterwards. +// +// If conflicting updates are issued, the +// Operations associated with the stale +// updates will not be marked as done +// until being obsolete. +// // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func (c *ProductClient) AddLocalInventories(ctx context.Context, req *retailpb.AddLocalInventoriesRequest, opts ...gax.CallOption) (*AddLocalInventoriesOperation, error) { return c.internalClient.AddLocalInventories(ctx, req, opts...) } @@ -480,8 +517,17 @@ func (c *ProductClient) AddLocalInventoriesOperation(name string) *AddLocalInven // ProductService.UpdateProduct // has no effect on local inventories. // +// The returned Operations will be obsolete +// after 1 day, and GetOperation +// API will return NOT_FOUND afterwards. +// +// If conflicting updates are issued, the +// Operations associated with the stale +// updates will not be marked as done +// until being obsolete. +// // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func (c *ProductClient) RemoveLocalInventories(ctx context.Context, req *retailpb.RemoveLocalInventoriesRequest, opts ...gax.CallOption) (*RemoveLocalInventoriesOperation, error) { return c.internalClient.RemoveLocalInventories(ctx, req, opts...) } @@ -582,7 +628,8 @@ func NewProductClient(ctx context.Context, opts ...option.ClientOption) (*Produc // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *productGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2beta/product_client_example_test.go b/retail/apiv2beta/product_client_example_test.go index bf5474562da..fe6f6d08fc8 100644 --- a/retail/apiv2beta/product_client_example_test.go +++ b/retail/apiv2beta/product_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewProductClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewProductClient() { func ExampleProductClient_CreateProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleProductClient_CreateProduct() { func ExampleProductClient_GetProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleProductClient_GetProduct() { func ExampleProductClient_ListProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleProductClient_ListProducts() { func ExampleProductClient_UpdateProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleProductClient_UpdateProduct() { func ExampleProductClient_DeleteProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleProductClient_DeleteProduct() { func ExampleProductClient_ImportProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleProductClient_ImportProducts() { func ExampleProductClient_SetInventory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -193,6 +233,11 @@ func ExampleProductClient_SetInventory() { func ExampleProductClient_AddFulfillmentPlaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleProductClient_AddFulfillmentPlaces() { func ExampleProductClient_RemoveFulfillmentPlaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleProductClient_RemoveFulfillmentPlaces() { func ExampleProductClient_AddLocalInventories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -268,6 +323,11 @@ func ExampleProductClient_AddLocalInventories() { func ExampleProductClient_RemoveLocalInventories() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -293,6 +353,11 @@ func ExampleProductClient_RemoveLocalInventories() { func ExampleProductClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -313,6 +378,11 @@ func ExampleProductClient_GetOperation() { func ExampleProductClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2beta/search_client.go b/retail/apiv2beta/search_client.go index 6bb03a7540e..6554d4d7be4 100644 --- a/retail/apiv2beta/search_client.go +++ b/retail/apiv2beta/search_client.go @@ -103,7 +103,7 @@ type internalSearchClient interface { // Service for search. // // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. type SearchClient struct { // The internal transport-dependent client. internalClient internalSearchClient @@ -129,7 +129,8 @@ func (c *SearchClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SearchClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -137,7 +138,7 @@ func (c *SearchClient) Connection() *grpc.ClientConn { // Search performs a search. // // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func (c *SearchClient) Search(ctx context.Context, req *retailpb.SearchRequest, opts ...gax.CallOption) *SearchResponse_SearchResultIterator { return c.internalClient.Search(ctx, req, opts...) } @@ -180,7 +181,7 @@ type searchGRPCClient struct { // Service for search. // // This feature is only available for users who have Retail Search enabled. -// Please enable Retail Search on Cloud Console before using this feature. +// Enable Retail Search on Cloud Console before using this feature. func NewSearchClient(ctx context.Context, opts ...option.ClientOption) (*SearchClient, error) { clientOpts := defaultSearchGRPCClientOptions() if newSearchClientHook != nil { @@ -218,7 +219,8 @@ func NewSearchClient(ctx context.Context, opts ...option.ClientOption) (*SearchC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *searchGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2beta/search_client_example_test.go b/retail/apiv2beta/search_client_example_test.go index bda4917a35c..4367ff6333d 100644 --- a/retail/apiv2beta/search_client_example_test.go +++ b/retail/apiv2beta/search_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewSearchClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewSearchClient() { func ExampleSearchClient_Search() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleSearchClient_Search() { func ExampleSearchClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleSearchClient_GetOperation() { func ExampleSearchClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2beta/serving_config_client.go b/retail/apiv2beta/serving_config_client.go index c3f9e0f64e9..fcdcd01fa0c 100644 --- a/retail/apiv2beta/serving_config_client.go +++ b/retail/apiv2beta/serving_config_client.go @@ -133,7 +133,8 @@ func (c *ServingConfigClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServingConfigClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -263,7 +264,8 @@ func NewServingConfigClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *servingConfigGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2beta/serving_config_client_example_test.go b/retail/apiv2beta/serving_config_client_example_test.go index c497093772e..0abc66a322d 100644 --- a/retail/apiv2beta/serving_config_client_example_test.go +++ b/retail/apiv2beta/serving_config_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewServingConfigClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewServingConfigClient() { func ExampleServingConfigClient_CreateServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleServingConfigClient_CreateServingConfig() { func ExampleServingConfigClient_DeleteServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleServingConfigClient_DeleteServingConfig() { func ExampleServingConfigClient_UpdateServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleServingConfigClient_UpdateServingConfig() { func ExampleServingConfigClient_GetServingConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleServingConfigClient_GetServingConfig() { func ExampleServingConfigClient_ListServingConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleServingConfigClient_ListServingConfigs() { func ExampleServingConfigClient_AddControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleServingConfigClient_AddControl() { func ExampleServingConfigClient_RemoveControl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleServingConfigClient_RemoveControl() { func ExampleServingConfigClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleServingConfigClient_GetOperation() { func ExampleServingConfigClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewServingConfigClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/apiv2beta/user_event_client.go b/retail/apiv2beta/user_event_client.go index 2ff8296abf5..6b527cc6e40 100644 --- a/retail/apiv2beta/user_event_client.go +++ b/retail/apiv2beta/user_event_client.go @@ -193,7 +193,8 @@ func (c *UserEventClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *UserEventClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -243,14 +244,14 @@ func (c *UserEventClient) ImportUserEventsOperation(name string) *ImportUserEven return c.internalClient.ImportUserEventsOperation(name) } -// RejoinUserEvents starts a user event rejoin operation with latest product catalog. Events -// will not be annotated with detailed product information if product is -// missing from the catalog at the time the user event is ingested, and these -// events are stored as unjoined events with a limited usage on training and -// serving. This method can be used to start a join operation on specified -// events with latest version of product catalog. It can also be used to -// correct events joined with the wrong product catalog. A rejoin operation -// can take hours or days to complete. +// RejoinUserEvents starts a user-event rejoin operation with latest product catalog. Events +// are not annotated with detailed product information for products that are +// missing from the catalog when the user event is ingested. These +// events are stored as unjoined events with limited usage on training and +// serving. You can use this method to start a join operation on specified +// events with the latest version of product catalog. You can also use this +// method to correct events joined with the wrong product catalog. A rejoin +// operation can take hours or days to complete. func (c *UserEventClient) RejoinUserEvents(ctx context.Context, req *retailpb.RejoinUserEventsRequest, opts ...gax.CallOption) (*RejoinUserEventsOperation, error) { return c.internalClient.RejoinUserEvents(ctx, req, opts...) } @@ -350,7 +351,8 @@ func NewUserEventClient(ctx context.Context, opts ...option.ClientOption) (*User // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *userEventGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/retail/apiv2beta/user_event_client_example_test.go b/retail/apiv2beta/user_event_client_example_test.go index 9ff50954259..c8932fdfdf6 100644 --- a/retail/apiv2beta/user_event_client_example_test.go +++ b/retail/apiv2beta/user_event_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewUserEventClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewUserEventClient() { func ExampleUserEventClient_WriteUserEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleUserEventClient_WriteUserEvent() { func ExampleUserEventClient_CollectUserEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleUserEventClient_CollectUserEvent() { func ExampleUserEventClient_PurgeUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleUserEventClient_PurgeUserEvents() { func ExampleUserEventClient_ImportUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +154,11 @@ func ExampleUserEventClient_ImportUserEvents() { func ExampleUserEventClient_RejoinUserEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +184,11 @@ func ExampleUserEventClient_RejoinUserEvents() { func ExampleUserEventClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -174,6 +209,11 @@ func ExampleUserEventClient_GetOperation() { func ExampleUserEventClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. diff --git a/retail/go.mod b/retail/go.mod index d7a81ade2cc..e7e6b73f1d7 100644 --- a/retail/go.mod +++ b/retail/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 - google.golang.org/genproto v0.0.0-20220829144015-23454907ede3 + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/retail/go.sum b/retail/go.sum index fd3bdd332a0..f600310a011 100644 --- a/retail/go.sum +++ b/retail/go.sum @@ -30,6 +30,7 @@ cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w9 cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -50,6 +51,7 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -313,8 +315,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +503,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -589,8 +594,9 @@ google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220829144015-23454907ede3 h1:4wwmycAWg7WUIFWgzxP6Wumy2GBLxmATgkhgpFnJl2U= -google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/run/apiv2/doc.go b/run/apiv2/doc.go index 6ddf67e5bd3..cfe5ebf2015 100644 --- a/run/apiv2/doc.go +++ b/run/apiv2/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := run.NewRevisionsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := run.NewRevisionsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/run/apiv2/revisions_client.go b/run/apiv2/revisions_client.go index 497ed879b69..b85cabf2ff4 100644 --- a/run/apiv2/revisions_client.go +++ b/run/apiv2/revisions_client.go @@ -113,7 +113,8 @@ func (c *RevisionsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RevisionsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -215,7 +216,8 @@ func NewRevisionsClient(ctx context.Context, opts ...option.ClientOption) (*Revi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *revisionsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/run/apiv2/revisions_client_example_test.go b/run/apiv2/revisions_client_example_test.go index fac93e61610..44bb0d9e5ce 100644 --- a/run/apiv2/revisions_client_example_test.go +++ b/run/apiv2/revisions_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewRevisionsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewRevisionsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewRevisionsClient() { func ExampleRevisionsClient_GetRevision() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewRevisionsClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleRevisionsClient_GetRevision() { func ExampleRevisionsClient_ListRevisions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewRevisionsClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleRevisionsClient_ListRevisions() { func ExampleRevisionsClient_DeleteRevision() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewRevisionsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/run/apiv2/services_client.go b/run/apiv2/services_client.go index a9c0c00906a..ef8e3c2a627 100644 --- a/run/apiv2/services_client.go +++ b/run/apiv2/services_client.go @@ -152,7 +152,8 @@ func (c *ServicesClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServicesClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -297,7 +298,8 @@ func NewServicesClient(ctx context.Context, opts ...option.ClientOption) (*Servi // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *servicesGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/run/apiv2/services_client_example_test.go b/run/apiv2/services_client_example_test.go index 8a56c683127..6f4b5e400cb 100644 --- a/run/apiv2/services_client_example_test.go +++ b/run/apiv2/services_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewServicesClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewServicesClient() { func ExampleServicesClient_CreateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleServicesClient_CreateService() { func ExampleServicesClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleServicesClient_GetService() { func ExampleServicesClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -110,6 +130,11 @@ func ExampleServicesClient_ListServices() { func ExampleServicesClient_UpdateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -135,6 +160,11 @@ func ExampleServicesClient_UpdateService() { func ExampleServicesClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleServicesClient_DeleteService() { func ExampleServicesClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleServicesClient_GetIamPolicy() { func ExampleServicesClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. @@ -200,6 +240,11 @@ func ExampleServicesClient_SetIamPolicy() { func ExampleServicesClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := run.NewServicesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/run/go.mod b/run/go.mod index 4a9f923f00b..c4c35fa061c 100644 --- a/run/go.mod +++ b/run/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/run/go.sum b/run/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/run/go.sum +++ b/run/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/scheduler/apiv1/cloud_scheduler_client.go b/scheduler/apiv1/cloud_scheduler_client.go index 86f195ef2b2..82be8249bbd 100644 --- a/scheduler/apiv1/cloud_scheduler_client.go +++ b/scheduler/apiv1/cloud_scheduler_client.go @@ -152,7 +152,8 @@ func (c *CloudSchedulerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudSchedulerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -280,7 +281,8 @@ func NewCloudSchedulerClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudSchedulerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/scheduler/apiv1/cloud_scheduler_client_example_test.go b/scheduler/apiv1/cloud_scheduler_client_example_test.go index 5aa7d708648..e1bc2b28917 100644 --- a/scheduler/apiv1/cloud_scheduler_client_example_test.go +++ b/scheduler/apiv1/cloud_scheduler_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudSchedulerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudSchedulerClient() { func ExampleCloudSchedulerClient_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleCloudSchedulerClient_ListJobs() { func ExampleCloudSchedulerClient_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleCloudSchedulerClient_GetJob() { func ExampleCloudSchedulerClient_CreateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleCloudSchedulerClient_CreateJob() { func ExampleCloudSchedulerClient_UpdateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleCloudSchedulerClient_UpdateJob() { func ExampleCloudSchedulerClient_DeleteJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleCloudSchedulerClient_DeleteJob() { func ExampleCloudSchedulerClient_PauseJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleCloudSchedulerClient_PauseJob() { func ExampleCloudSchedulerClient_ResumeJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleCloudSchedulerClient_ResumeJob() { func ExampleCloudSchedulerClient_RunJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/scheduler/apiv1/doc.go b/scheduler/apiv1/doc.go index e44bc52b22e..10c6aa5f4f9 100644 --- a/scheduler/apiv1/doc.go +++ b/scheduler/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := scheduler.NewCloudSchedulerClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := scheduler.NewCloudSchedulerClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/scheduler/apiv1beta1/cloud_scheduler_client.go b/scheduler/apiv1beta1/cloud_scheduler_client.go index 00cedbf584a..ab509d38a85 100644 --- a/scheduler/apiv1beta1/cloud_scheduler_client.go +++ b/scheduler/apiv1beta1/cloud_scheduler_client.go @@ -243,7 +243,8 @@ func (c *CloudSchedulerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudSchedulerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -371,7 +372,8 @@ func NewCloudSchedulerClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudSchedulerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -456,7 +458,7 @@ func (c *cloudSchedulerRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *cloudSchedulerRESTClient) Connection() *grpc.ClientConn { return nil } @@ -879,8 +881,12 @@ func (c *cloudSchedulerRESTClient) UpdateJob(ctx context.Context, req *scheduler baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetJob().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/scheduler/apiv1beta1/cloud_scheduler_client_example_test.go b/scheduler/apiv1beta1/cloud_scheduler_client_example_test.go index f067e705ca4..c8c00fb2ddb 100644 --- a/scheduler/apiv1beta1/cloud_scheduler_client_example_test.go +++ b/scheduler/apiv1beta1/cloud_scheduler_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCloudSchedulerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCloudSchedulerClient() { func ExampleNewCloudSchedulerRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewCloudSchedulerRESTClient() { func ExampleCloudSchedulerClient_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleCloudSchedulerClient_ListJobs() { func ExampleCloudSchedulerClient_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleCloudSchedulerClient_GetJob() { func ExampleCloudSchedulerClient_CreateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleCloudSchedulerClient_CreateJob() { func ExampleCloudSchedulerClient_UpdateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleCloudSchedulerClient_UpdateJob() { func ExampleCloudSchedulerClient_DeleteJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +189,11 @@ func ExampleCloudSchedulerClient_DeleteJob() { func ExampleCloudSchedulerClient_PauseJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -174,6 +214,11 @@ func ExampleCloudSchedulerClient_PauseJob() { func ExampleCloudSchedulerClient_ResumeJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +239,11 @@ func ExampleCloudSchedulerClient_ResumeJob() { func ExampleCloudSchedulerClient_RunJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/scheduler/apiv1beta1/doc.go b/scheduler/apiv1beta1/doc.go index 47df0e6592f..6bfbcaa930a 100644 --- a/scheduler/apiv1beta1/doc.go +++ b/scheduler/apiv1beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := scheduler.NewCloudSchedulerClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := scheduler.NewCloudSchedulerClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/scheduler/go.mod b/scheduler/go.mod index 0a8594c2abe..26e11f61293 100644 --- a/scheduler/go.mod +++ b/scheduler/go.mod @@ -3,9 +3,8 @@ module cloud.google.com/go/scheduler go 1.17 require ( - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -14,11 +13,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/scheduler/go.sum b/scheduler/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/scheduler/go.sum +++ b/scheduler/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/secretmanager/apiv1/doc.go b/secretmanager/apiv1/doc.go index d2ee244e8db..b0943175051 100644 --- a/secretmanager/apiv1/doc.go +++ b/secretmanager/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := secretmanager.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := secretmanager.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/secretmanager/apiv1/secret_manager_client.go b/secretmanager/apiv1/secret_manager_client.go index 5083ffeae72..79fc9ebf019 100644 --- a/secretmanager/apiv1/secret_manager_client.go +++ b/secretmanager/apiv1/secret_manager_client.go @@ -158,7 +158,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -334,7 +335,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/secretmanager/apiv1/secret_manager_client_example_test.go b/secretmanager/apiv1/secret_manager_client_example_test.go index 7d0e22bded3..e3d6c5d5e01 100644 --- a/secretmanager/apiv1/secret_manager_client_example_test.go +++ b/secretmanager/apiv1/secret_manager_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_ListSecrets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_ListSecrets() { func ExampleClient_CreateSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleClient_CreateSecret() { func ExampleClient_AddSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleClient_AddSecretVersion() { func ExampleClient_GetSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleClient_GetSecret() { func ExampleClient_UpdateSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleClient_UpdateSecret() { func ExampleClient_DeleteSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleClient_DeleteSecret() { func ExampleClient_ListSecretVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -189,6 +229,11 @@ func ExampleClient_ListSecretVersions() { func ExampleClient_GetSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +254,11 @@ func ExampleClient_GetSecretVersion() { func ExampleClient_AccessSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -229,6 +279,11 @@ func ExampleClient_AccessSecretVersion() { func ExampleClient_DisableSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +304,11 @@ func ExampleClient_DisableSecretVersion() { func ExampleClient_EnableSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +329,11 @@ func ExampleClient_EnableSecretVersion() { func ExampleClient_DestroySecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +354,11 @@ func ExampleClient_DestroySecretVersion() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -309,6 +379,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -329,6 +404,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/secretmanager/apiv1beta1/doc.go b/secretmanager/apiv1beta1/doc.go index ab122d8922b..3ab9d71dcae 100644 --- a/secretmanager/apiv1beta1/doc.go +++ b/secretmanager/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := secretmanager.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := secretmanager.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/secretmanager/apiv1beta1/secret_manager_client.go b/secretmanager/apiv1beta1/secret_manager_client.go index 03490990939..86eadcf71ed 100644 --- a/secretmanager/apiv1beta1/secret_manager_client.go +++ b/secretmanager/apiv1beta1/secret_manager_client.go @@ -194,7 +194,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -370,7 +371,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -461,7 +463,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -1118,8 +1120,12 @@ func (c *restClient) UpdateSecret(ctx context.Context, req *secretmanagerpb.Upda baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetSecret().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/secretmanager/apiv1beta1/secret_manager_client_example_test.go b/secretmanager/apiv1beta1/secret_manager_client_example_test.go index d9855dfc580..15c3823e250 100644 --- a/secretmanager/apiv1beta1/secret_manager_client_example_test.go +++ b/secretmanager/apiv1beta1/secret_manager_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListSecrets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_ListSecrets() { func ExampleClient_CreateSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleClient_CreateSecret() { func ExampleClient_AddSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleClient_AddSecretVersion() { func ExampleClient_GetSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +167,11 @@ func ExampleClient_GetSecret() { func ExampleClient_UpdateSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +192,11 @@ func ExampleClient_UpdateSecret() { func ExampleClient_DeleteSecret() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -175,6 +215,11 @@ func ExampleClient_DeleteSecret() { func ExampleClient_ListSecretVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +246,11 @@ func ExampleClient_ListSecretVersions() { func ExampleClient_GetSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +271,11 @@ func ExampleClient_GetSecretVersion() { func ExampleClient_AccessSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +296,11 @@ func ExampleClient_AccessSecretVersion() { func ExampleClient_DisableSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -261,6 +321,11 @@ func ExampleClient_DisableSecretVersion() { func ExampleClient_EnableSecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -281,6 +346,11 @@ func ExampleClient_EnableSecretVersion() { func ExampleClient_DestroySecretVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +371,11 @@ func ExampleClient_DestroySecretVersion() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -321,6 +396,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -341,6 +421,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/secretmanager/go.mod b/secretmanager/go.mod index 1c0210919bc..6b057c42a48 100644 --- a/secretmanager/go.mod +++ b/secretmanager/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go/iam v0.3.0 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -19,9 +19,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/secretmanager/go.sum b/secretmanager/go.sum index e6b209ea8c6..6fdd4a00317 100644 --- a/secretmanager/go.sum +++ b/secretmanager/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,8 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/security/go.mod b/security/go.mod index 9c84e7a0827..452f6b5d92d 100644 --- a/security/go.mod +++ b/security/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/security/go.sum b/security/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/security/go.sum +++ b/security/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/security/privateca/apiv1/certificate_authority_client.go b/security/privateca/apiv1/certificate_authority_client.go index 9bbde1cbfe6..297bed8c683 100644 --- a/security/privateca/apiv1/certificate_authority_client.go +++ b/security/privateca/apiv1/certificate_authority_client.go @@ -569,7 +569,8 @@ func (c *CertificateAuthorityClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CertificateAuthorityClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -937,7 +938,8 @@ func NewCertificateAuthorityClient(ctx context.Context, opts ...option.ClientOpt // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *certificateAuthorityGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/security/privateca/apiv1/certificate_authority_client_example_test.go b/security/privateca/apiv1/certificate_authority_client_example_test.go index 0d8ce427531..33ac0533b55 100644 --- a/security/privateca/apiv1/certificate_authority_client_example_test.go +++ b/security/privateca/apiv1/certificate_authority_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewCertificateAuthorityClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewCertificateAuthorityClient() { func ExampleCertificateAuthorityClient_CreateCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -60,6 +70,11 @@ func ExampleCertificateAuthorityClient_CreateCertificate() { func ExampleCertificateAuthorityClient_GetCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -80,6 +95,11 @@ func ExampleCertificateAuthorityClient_GetCertificate() { func ExampleCertificateAuthorityClient_ListCertificates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -106,6 +126,11 @@ func ExampleCertificateAuthorityClient_ListCertificates() { func ExampleCertificateAuthorityClient_RevokeCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -126,6 +151,11 @@ func ExampleCertificateAuthorityClient_RevokeCertificate() { func ExampleCertificateAuthorityClient_UpdateCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -146,6 +176,11 @@ func ExampleCertificateAuthorityClient_UpdateCertificate() { func ExampleCertificateAuthorityClient_ActivateCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -171,6 +206,11 @@ func ExampleCertificateAuthorityClient_ActivateCertificateAuthority() { func ExampleCertificateAuthorityClient_CreateCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +236,11 @@ func ExampleCertificateAuthorityClient_CreateCertificateAuthority() { func ExampleCertificateAuthorityClient_DisableCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +266,11 @@ func ExampleCertificateAuthorityClient_DisableCertificateAuthority() { func ExampleCertificateAuthorityClient_EnableCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +296,11 @@ func ExampleCertificateAuthorityClient_EnableCertificateAuthority() { func ExampleCertificateAuthorityClient_FetchCertificateAuthorityCsr() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +321,11 @@ func ExampleCertificateAuthorityClient_FetchCertificateAuthorityCsr() { func ExampleCertificateAuthorityClient_GetCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -286,6 +346,11 @@ func ExampleCertificateAuthorityClient_GetCertificateAuthority() { func ExampleCertificateAuthorityClient_ListCertificateAuthorities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -312,6 +377,11 @@ func ExampleCertificateAuthorityClient_ListCertificateAuthorities() { func ExampleCertificateAuthorityClient_UndeleteCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -337,6 +407,11 @@ func ExampleCertificateAuthorityClient_UndeleteCertificateAuthority() { func ExampleCertificateAuthorityClient_DeleteCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -362,6 +437,11 @@ func ExampleCertificateAuthorityClient_DeleteCertificateAuthority() { func ExampleCertificateAuthorityClient_UpdateCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -387,6 +467,11 @@ func ExampleCertificateAuthorityClient_UpdateCertificateAuthority() { func ExampleCertificateAuthorityClient_CreateCaPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -412,6 +497,11 @@ func ExampleCertificateAuthorityClient_CreateCaPool() { func ExampleCertificateAuthorityClient_UpdateCaPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -437,6 +527,11 @@ func ExampleCertificateAuthorityClient_UpdateCaPool() { func ExampleCertificateAuthorityClient_GetCaPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -457,6 +552,11 @@ func ExampleCertificateAuthorityClient_GetCaPool() { func ExampleCertificateAuthorityClient_ListCaPools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -483,6 +583,11 @@ func ExampleCertificateAuthorityClient_ListCaPools() { func ExampleCertificateAuthorityClient_DeleteCaPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -506,6 +611,11 @@ func ExampleCertificateAuthorityClient_DeleteCaPool() { func ExampleCertificateAuthorityClient_FetchCaCerts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -526,6 +636,11 @@ func ExampleCertificateAuthorityClient_FetchCaCerts() { func ExampleCertificateAuthorityClient_GetCertificateRevocationList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -546,6 +661,11 @@ func ExampleCertificateAuthorityClient_GetCertificateRevocationList() { func ExampleCertificateAuthorityClient_ListCertificateRevocationLists() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -572,6 +692,11 @@ func ExampleCertificateAuthorityClient_ListCertificateRevocationLists() { func ExampleCertificateAuthorityClient_UpdateCertificateRevocationList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -597,6 +722,11 @@ func ExampleCertificateAuthorityClient_UpdateCertificateRevocationList() { func ExampleCertificateAuthorityClient_CreateCertificateTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -622,6 +752,11 @@ func ExampleCertificateAuthorityClient_CreateCertificateTemplate() { func ExampleCertificateAuthorityClient_DeleteCertificateTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -645,6 +780,11 @@ func ExampleCertificateAuthorityClient_DeleteCertificateTemplate() { func ExampleCertificateAuthorityClient_GetCertificateTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -665,6 +805,11 @@ func ExampleCertificateAuthorityClient_GetCertificateTemplate() { func ExampleCertificateAuthorityClient_ListCertificateTemplates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -691,6 +836,11 @@ func ExampleCertificateAuthorityClient_ListCertificateTemplates() { func ExampleCertificateAuthorityClient_UpdateCertificateTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -716,6 +866,11 @@ func ExampleCertificateAuthorityClient_UpdateCertificateTemplate() { func ExampleCertificateAuthorityClient_GetLocation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -736,6 +891,11 @@ func ExampleCertificateAuthorityClient_GetLocation() { func ExampleCertificateAuthorityClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -762,6 +922,11 @@ func ExampleCertificateAuthorityClient_ListLocations() { func ExampleCertificateAuthorityClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -782,6 +947,11 @@ func ExampleCertificateAuthorityClient_GetIamPolicy() { func ExampleCertificateAuthorityClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -802,6 +972,11 @@ func ExampleCertificateAuthorityClient_SetIamPolicy() { func ExampleCertificateAuthorityClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. diff --git a/security/privateca/apiv1/doc.go b/security/privateca/apiv1/doc.go index 9b16d838334..d72d1db5f3b 100644 --- a/security/privateca/apiv1/doc.go +++ b/security/privateca/apiv1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := privateca.NewCertificateAuthorityClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := privateca.NewCertificateAuthorityClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/security/privateca/apiv1beta1/certificate_authority_client.go b/security/privateca/apiv1beta1/certificate_authority_client.go index d61eac1f54f..bd0a478ed00 100644 --- a/security/privateca/apiv1beta1/certificate_authority_client.go +++ b/security/privateca/apiv1beta1/certificate_authority_client.go @@ -411,7 +411,8 @@ func (c *CertificateAuthorityClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CertificateAuthorityClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -654,7 +655,8 @@ func NewCertificateAuthorityClient(ctx context.Context, opts ...option.ClientOpt // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *certificateAuthorityGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/security/privateca/apiv1beta1/certificate_authority_client_example_test.go b/security/privateca/apiv1beta1/certificate_authority_client_example_test.go index 4675b8bd73b..a91b2605da9 100644 --- a/security/privateca/apiv1beta1/certificate_authority_client_example_test.go +++ b/security/privateca/apiv1beta1/certificate_authority_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCertificateAuthorityClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCertificateAuthorityClient() { func ExampleCertificateAuthorityClient_CreateCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleCertificateAuthorityClient_CreateCertificate() { func ExampleCertificateAuthorityClient_GetCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleCertificateAuthorityClient_GetCertificate() { func ExampleCertificateAuthorityClient_ListCertificates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleCertificateAuthorityClient_ListCertificates() { func ExampleCertificateAuthorityClient_RevokeCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleCertificateAuthorityClient_RevokeCertificate() { func ExampleCertificateAuthorityClient_UpdateCertificate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleCertificateAuthorityClient_UpdateCertificate() { func ExampleCertificateAuthorityClient_ActivateCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -169,6 +204,11 @@ func ExampleCertificateAuthorityClient_ActivateCertificateAuthority() { func ExampleCertificateAuthorityClient_CreateCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +234,11 @@ func ExampleCertificateAuthorityClient_CreateCertificateAuthority() { func ExampleCertificateAuthorityClient_DisableCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleCertificateAuthorityClient_DisableCertificateAuthority() { func ExampleCertificateAuthorityClient_EnableCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -244,6 +294,11 @@ func ExampleCertificateAuthorityClient_EnableCertificateAuthority() { func ExampleCertificateAuthorityClient_FetchCertificateAuthorityCsr() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -264,6 +319,11 @@ func ExampleCertificateAuthorityClient_FetchCertificateAuthorityCsr() { func ExampleCertificateAuthorityClient_GetCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -284,6 +344,11 @@ func ExampleCertificateAuthorityClient_GetCertificateAuthority() { func ExampleCertificateAuthorityClient_ListCertificateAuthorities() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -310,6 +375,11 @@ func ExampleCertificateAuthorityClient_ListCertificateAuthorities() { func ExampleCertificateAuthorityClient_RestoreCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -335,6 +405,11 @@ func ExampleCertificateAuthorityClient_RestoreCertificateAuthority() { func ExampleCertificateAuthorityClient_ScheduleDeleteCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -360,6 +435,11 @@ func ExampleCertificateAuthorityClient_ScheduleDeleteCertificateAuthority() { func ExampleCertificateAuthorityClient_UpdateCertificateAuthority() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -385,6 +465,11 @@ func ExampleCertificateAuthorityClient_UpdateCertificateAuthority() { func ExampleCertificateAuthorityClient_GetCertificateRevocationList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -405,6 +490,11 @@ func ExampleCertificateAuthorityClient_GetCertificateRevocationList() { func ExampleCertificateAuthorityClient_ListCertificateRevocationLists() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -431,6 +521,11 @@ func ExampleCertificateAuthorityClient_ListCertificateRevocationLists() { func ExampleCertificateAuthorityClient_UpdateCertificateRevocationList() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -456,6 +551,11 @@ func ExampleCertificateAuthorityClient_UpdateCertificateRevocationList() { func ExampleCertificateAuthorityClient_GetReusableConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -476,6 +576,11 @@ func ExampleCertificateAuthorityClient_GetReusableConfig() { func ExampleCertificateAuthorityClient_ListReusableConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. diff --git a/security/privateca/apiv1beta1/doc.go b/security/privateca/apiv1beta1/doc.go index 4e375f5f991..8d03ebf205b 100644 --- a/security/privateca/apiv1beta1/doc.go +++ b/security/privateca/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := privateca.NewCertificateAuthorityClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := privateca.NewCertificateAuthorityClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/securitycenter/apiv1/doc.go b/securitycenter/apiv1/doc.go index fdc5fd7cda8..b50cf53437c 100644 --- a/securitycenter/apiv1/doc.go +++ b/securitycenter/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := securitycenter.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := securitycenter.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/securitycenter/apiv1/security_center_client.go b/securitycenter/apiv1/security_center_client.go index 6822a877dc0..23f19444bb5 100644 --- a/securitycenter/apiv1/security_center_client.go +++ b/securitycenter/apiv1/security_center_client.go @@ -347,7 +347,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -667,7 +668,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/securitycenter/apiv1/security_center_client_example_test.go b/securitycenter/apiv1/security_center_client_example_test.go index 53d82adf074..b28d6827b15 100644 --- a/securitycenter/apiv1/security_center_client_example_test.go +++ b/securitycenter/apiv1/security_center_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewClient() { func ExampleClient_BulkMuteFindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_BulkMuteFindings() { func ExampleClient_CreateSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleClient_CreateSource() { func ExampleClient_CreateFinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleClient_CreateFinding() { func ExampleClient_CreateMuteConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleClient_CreateMuteConfig() { func ExampleClient_CreateNotificationConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -145,6 +175,11 @@ func ExampleClient_CreateNotificationConfig() { func ExampleClient_DeleteMuteConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleClient_DeleteMuteConfig() { func ExampleClient_DeleteNotificationConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +221,11 @@ func ExampleClient_DeleteNotificationConfig() { func ExampleClient_GetBigQueryExport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +246,11 @@ func ExampleClient_GetBigQueryExport() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +271,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_GetMuteConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +296,11 @@ func ExampleClient_GetMuteConfig() { func ExampleClient_GetNotificationConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -261,6 +321,11 @@ func ExampleClient_GetNotificationConfig() { func ExampleClient_GetOrganizationSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -281,6 +346,11 @@ func ExampleClient_GetOrganizationSettings() { func ExampleClient_GetSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +371,11 @@ func ExampleClient_GetSource() { func ExampleClient_GroupAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -327,6 +402,11 @@ func ExampleClient_GroupAssets() { func ExampleClient_GroupFindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -353,6 +433,11 @@ func ExampleClient_GroupFindings() { func ExampleClient_ListAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -379,6 +464,11 @@ func ExampleClient_ListAssets() { func ExampleClient_ListFindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -405,6 +495,11 @@ func ExampleClient_ListFindings() { func ExampleClient_ListMuteConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -431,6 +526,11 @@ func ExampleClient_ListMuteConfigs() { func ExampleClient_ListNotificationConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -457,6 +557,11 @@ func ExampleClient_ListNotificationConfigs() { func ExampleClient_ListSources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -483,6 +588,11 @@ func ExampleClient_ListSources() { func ExampleClient_RunAssetDiscovery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -508,6 +618,11 @@ func ExampleClient_RunAssetDiscovery() { func ExampleClient_SetFindingState() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -528,6 +643,11 @@ func ExampleClient_SetFindingState() { func ExampleClient_SetMute() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -548,6 +668,11 @@ func ExampleClient_SetMute() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -568,6 +693,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -588,6 +718,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_UpdateExternalSystem() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -608,6 +743,11 @@ func ExampleClient_UpdateExternalSystem() { func ExampleClient_UpdateFinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -628,6 +768,11 @@ func ExampleClient_UpdateFinding() { func ExampleClient_UpdateMuteConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -648,6 +793,11 @@ func ExampleClient_UpdateMuteConfig() { func ExampleClient_UpdateNotificationConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -668,6 +818,11 @@ func ExampleClient_UpdateNotificationConfig() { func ExampleClient_UpdateOrganizationSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -688,6 +843,11 @@ func ExampleClient_UpdateOrganizationSettings() { func ExampleClient_UpdateSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -708,6 +868,11 @@ func ExampleClient_UpdateSource() { func ExampleClient_UpdateSecurityMarks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -728,6 +893,11 @@ func ExampleClient_UpdateSecurityMarks() { func ExampleClient_CreateBigQueryExport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -748,6 +918,11 @@ func ExampleClient_CreateBigQueryExport() { func ExampleClient_DeleteBigQueryExport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -766,6 +941,11 @@ func ExampleClient_DeleteBigQueryExport() { func ExampleClient_UpdateBigQueryExport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -786,6 +966,11 @@ func ExampleClient_UpdateBigQueryExport() { func ExampleClient_ListBigQueryExports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -812,6 +997,11 @@ func ExampleClient_ListBigQueryExports() { func ExampleClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -830,6 +1020,11 @@ func ExampleClient_CancelOperation() { func ExampleClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -848,6 +1043,11 @@ func ExampleClient_DeleteOperation() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -868,6 +1068,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/securitycenter/apiv1beta1/doc.go b/securitycenter/apiv1beta1/doc.go index 6efd73778a0..29ff3e835eb 100644 --- a/securitycenter/apiv1beta1/doc.go +++ b/securitycenter/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := securitycenter.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := securitycenter.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/securitycenter/apiv1beta1/security_center_client.go b/securitycenter/apiv1beta1/security_center_client.go index 6e237aecfe2..19364b92fd6 100644 --- a/securitycenter/apiv1beta1/security_center_client.go +++ b/securitycenter/apiv1beta1/security_center_client.go @@ -258,7 +258,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -450,7 +451,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/securitycenter/apiv1beta1/security_center_client_example_test.go b/securitycenter/apiv1beta1/security_center_client_example_test.go index 74e552cb51d..2706e170fe8 100644 --- a/securitycenter/apiv1beta1/security_center_client_example_test.go +++ b/securitycenter/apiv1beta1/security_center_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_CreateSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleClient_CreateSource() { func ExampleClient_CreateFinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleClient_CreateFinding() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_GetOrganizationSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -119,6 +144,11 @@ func ExampleClient_GetOrganizationSettings() { func ExampleClient_GetSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -139,6 +169,11 @@ func ExampleClient_GetSource() { func ExampleClient_GroupAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -165,6 +200,11 @@ func ExampleClient_GroupAssets() { func ExampleClient_GroupFindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -191,6 +231,11 @@ func ExampleClient_GroupFindings() { func ExampleClient_ListAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -217,6 +262,11 @@ func ExampleClient_ListAssets() { func ExampleClient_ListFindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +293,11 @@ func ExampleClient_ListFindings() { func ExampleClient_ListSources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +324,11 @@ func ExampleClient_ListSources() { func ExampleClient_RunAssetDiscovery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -292,6 +352,11 @@ func ExampleClient_RunAssetDiscovery() { func ExampleClient_SetFindingState() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -312,6 +377,11 @@ func ExampleClient_SetFindingState() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -332,6 +402,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -352,6 +427,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_UpdateFinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +452,11 @@ func ExampleClient_UpdateFinding() { func ExampleClient_UpdateOrganizationSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -392,6 +477,11 @@ func ExampleClient_UpdateOrganizationSettings() { func ExampleClient_UpdateSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -412,6 +502,11 @@ func ExampleClient_UpdateSource() { func ExampleClient_UpdateSecurityMarks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/securitycenter/apiv1p1beta1/doc.go b/securitycenter/apiv1p1beta1/doc.go index 8605c9ca1fa..4d870a4eb92 100644 --- a/securitycenter/apiv1p1beta1/doc.go +++ b/securitycenter/apiv1p1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := securitycenter.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := securitycenter.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/securitycenter/apiv1p1beta1/security_center_client.go b/securitycenter/apiv1p1beta1/security_center_client.go index 73149b2e70c..2f5f15fa772 100644 --- a/securitycenter/apiv1p1beta1/security_center_client.go +++ b/securitycenter/apiv1p1beta1/security_center_client.go @@ -295,7 +295,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -515,7 +516,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/securitycenter/apiv1p1beta1/security_center_client_example_test.go b/securitycenter/apiv1p1beta1/security_center_client_example_test.go index fe09ce91519..8ef6d7b7c2e 100644 --- a/securitycenter/apiv1p1beta1/security_center_client_example_test.go +++ b/securitycenter/apiv1p1beta1/security_center_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_CreateSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleClient_CreateSource() { func ExampleClient_CreateFinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleClient_CreateFinding() { func ExampleClient_CreateNotificationConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleClient_CreateNotificationConfig() { func ExampleClient_DeleteNotificationConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleClient_DeleteNotificationConfig() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +167,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_GetNotificationConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +192,11 @@ func ExampleClient_GetNotificationConfig() { func ExampleClient_GetOrganizationSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +217,11 @@ func ExampleClient_GetOrganizationSettings() { func ExampleClient_GetSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -197,6 +242,11 @@ func ExampleClient_GetSource() { func ExampleClient_GroupAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleClient_GroupAssets() { func ExampleClient_GroupFindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -249,6 +304,11 @@ func ExampleClient_GroupFindings() { func ExampleClient_ListAssets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -275,6 +335,11 @@ func ExampleClient_ListAssets() { func ExampleClient_ListFindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +366,11 @@ func ExampleClient_ListFindings() { func ExampleClient_ListNotificationConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -327,6 +397,11 @@ func ExampleClient_ListNotificationConfigs() { func ExampleClient_ListSources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -353,6 +428,11 @@ func ExampleClient_ListSources() { func ExampleClient_RunAssetDiscovery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -378,6 +458,11 @@ func ExampleClient_RunAssetDiscovery() { func ExampleClient_SetFindingState() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -398,6 +483,11 @@ func ExampleClient_SetFindingState() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -418,6 +508,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -438,6 +533,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_UpdateFinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -458,6 +558,11 @@ func ExampleClient_UpdateFinding() { func ExampleClient_UpdateNotificationConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -478,6 +583,11 @@ func ExampleClient_UpdateNotificationConfig() { func ExampleClient_UpdateOrganizationSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -498,6 +608,11 @@ func ExampleClient_UpdateOrganizationSettings() { func ExampleClient_UpdateSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -518,6 +633,11 @@ func ExampleClient_UpdateSource() { func ExampleClient_UpdateSecurityMarks() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/securitycenter/go.mod b/securitycenter/go.mod index 5dd9f65d948..372abb1a470 100644 --- a/securitycenter/go.mod +++ b/securitycenter/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/securitycenter/go.sum b/securitycenter/go.sum index 79691d9102f..104b63a3b44 100644 --- a/securitycenter/go.sum +++ b/securitycenter/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/securitycenter/settings/apiv1beta1/doc.go b/securitycenter/settings/apiv1beta1/doc.go index 7ba741a7472..c810d7b1d81 100644 --- a/securitycenter/settings/apiv1beta1/doc.go +++ b/securitycenter/settings/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := settings.NewSecurityCenterSettingsClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := settings.NewSecurityCenterSettingsClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/securitycenter/settings/apiv1beta1/security_center_settings_client.go b/securitycenter/settings/apiv1beta1/security_center_settings_client.go index 6b9719f4eb1..94067833851 100644 --- a/securitycenter/settings/apiv1beta1/security_center_settings_client.go +++ b/securitycenter/settings/apiv1beta1/security_center_settings_client.go @@ -279,7 +279,8 @@ func (c *SecurityCenterSettingsClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *SecurityCenterSettingsClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -447,7 +448,8 @@ func NewSecurityCenterSettingsClient(ctx context.Context, opts ...option.ClientO // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *securityCenterSettingsGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/securitycenter/settings/apiv1beta1/security_center_settings_client_example_test.go b/securitycenter/settings/apiv1beta1/security_center_settings_client_example_test.go index 8b9143614bd..f67cb021984 100644 --- a/securitycenter/settings/apiv1beta1/security_center_settings_client_example_test.go +++ b/securitycenter/settings/apiv1beta1/security_center_settings_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewSecurityCenterSettingsClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewSecurityCenterSettingsClient() { func ExampleSecurityCenterSettingsClient_GetServiceAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleSecurityCenterSettingsClient_GetServiceAccount() { func ExampleSecurityCenterSettingsClient_GetSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleSecurityCenterSettingsClient_GetSettings() { func ExampleSecurityCenterSettingsClient_UpdateSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleSecurityCenterSettingsClient_UpdateSettings() { func ExampleSecurityCenterSettingsClient_ResetSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleSecurityCenterSettingsClient_ResetSettings() { func ExampleSecurityCenterSettingsClient_BatchGetSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleSecurityCenterSettingsClient_BatchGetSettings() { func ExampleSecurityCenterSettingsClient_CalculateEffectiveSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +191,11 @@ func ExampleSecurityCenterSettingsClient_CalculateEffectiveSettings() { func ExampleSecurityCenterSettingsClient_BatchCalculateEffectiveSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -176,6 +216,11 @@ func ExampleSecurityCenterSettingsClient_BatchCalculateEffectiveSettings() { func ExampleSecurityCenterSettingsClient_GetComponentSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -196,6 +241,11 @@ func ExampleSecurityCenterSettingsClient_GetComponentSettings() { func ExampleSecurityCenterSettingsClient_UpdateComponentSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -216,6 +266,11 @@ func ExampleSecurityCenterSettingsClient_UpdateComponentSettings() { func ExampleSecurityCenterSettingsClient_ResetComponentSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -234,6 +289,11 @@ func ExampleSecurityCenterSettingsClient_ResetComponentSettings() { func ExampleSecurityCenterSettingsClient_CalculateEffectiveComponentSettings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +314,11 @@ func ExampleSecurityCenterSettingsClient_CalculateEffectiveComponentSettings() { func ExampleSecurityCenterSettingsClient_ListDetectors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +345,11 @@ func ExampleSecurityCenterSettingsClient_ListDetectors() { func ExampleSecurityCenterSettingsClient_ListComponents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/servicecontrol/apiv1/doc.go b/servicecontrol/apiv1/doc.go index 7dcff79e5b1..600939b7407 100644 --- a/servicecontrol/apiv1/doc.go +++ b/servicecontrol/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := servicecontrol.NewQuotaControllerClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := servicecontrol.NewQuotaControllerClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/servicecontrol/apiv1/quota_controller_client.go b/servicecontrol/apiv1/quota_controller_client.go index 4700abe8d8b..805e27da1d0 100644 --- a/servicecontrol/apiv1/quota_controller_client.go +++ b/servicecontrol/apiv1/quota_controller_client.go @@ -96,7 +96,8 @@ func (c *QuotaControllerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *QuotaControllerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -179,7 +180,8 @@ func NewQuotaControllerClient(ctx context.Context, opts ...option.ClientOption) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *quotaControllerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/servicecontrol/apiv1/quota_controller_client_example_test.go b/servicecontrol/apiv1/quota_controller_client_example_test.go index 05d18d0e00b..c08e2a146f4 100644 --- a/servicecontrol/apiv1/quota_controller_client_example_test.go +++ b/servicecontrol/apiv1/quota_controller_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewQuotaControllerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicecontrol.NewQuotaControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewQuotaControllerClient() { func ExampleQuotaControllerClient_AllocateQuota() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicecontrol.NewQuotaControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/servicecontrol/apiv1/service_controller_client.go b/servicecontrol/apiv1/service_controller_client.go index c0e5541cd98..5f99ca2e830 100644 --- a/servicecontrol/apiv1/service_controller_client.go +++ b/servicecontrol/apiv1/service_controller_client.go @@ -99,7 +99,8 @@ func (c *ServiceControllerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServiceControllerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -207,7 +208,8 @@ func NewServiceControllerClient(ctx context.Context, opts ...option.ClientOption // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *serviceControllerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/servicecontrol/apiv1/service_controller_client_example_test.go b/servicecontrol/apiv1/service_controller_client_example_test.go index 6d1e6b23998..0bbc3a7933f 100644 --- a/servicecontrol/apiv1/service_controller_client_example_test.go +++ b/servicecontrol/apiv1/service_controller_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewServiceControllerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicecontrol.NewServiceControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewServiceControllerClient() { func ExampleServiceControllerClient_Check() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicecontrol.NewServiceControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleServiceControllerClient_Check() { func ExampleServiceControllerClient_Report() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicecontrol.NewServiceControllerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/servicecontrol/go.mod b/servicecontrol/go.mod index 23e97109d82..e53b41b34bc 100644 --- a/servicecontrol/go.mod +++ b/servicecontrol/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220822141531-cb6d359b7ced google.golang.org/grpc v1.48.0 ) @@ -17,7 +17,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/servicecontrol/go.sum b/servicecontrol/go.sum index 0fab0bf0794..9fd771466b1 100644 --- a/servicecontrol/go.sum +++ b/servicecontrol/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/servicedirectory/apiv1/doc.go b/servicedirectory/apiv1/doc.go index 4965457caca..83f48a49730 100644 --- a/servicedirectory/apiv1/doc.go +++ b/servicedirectory/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := servicedirectory.NewLookupClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := servicedirectory.NewLookupClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/servicedirectory/apiv1/lookup_client.go b/servicedirectory/apiv1/lookup_client.go index e99f5df9e40..5a1cbbab979 100644 --- a/servicedirectory/apiv1/lookup_client.go +++ b/servicedirectory/apiv1/lookup_client.go @@ -106,7 +106,8 @@ func (c *LookupClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *LookupClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -178,7 +179,8 @@ func NewLookupClient(ctx context.Context, opts ...option.ClientOption) (*LookupC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *lookupGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/servicedirectory/apiv1/lookup_client_example_test.go b/servicedirectory/apiv1/lookup_client_example_test.go index b45c46e9c8c..10258cfd05d 100644 --- a/servicedirectory/apiv1/lookup_client_example_test.go +++ b/servicedirectory/apiv1/lookup_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewLookupClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewLookupClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewLookupClient() { func ExampleLookupClient_ResolveService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewLookupClient(ctx) if err != nil { // TODO: Handle error. diff --git a/servicedirectory/apiv1/registration_client.go b/servicedirectory/apiv1/registration_client.go index 31a94580aea..a8eb326560c 100644 --- a/servicedirectory/apiv1/registration_client.go +++ b/servicedirectory/apiv1/registration_client.go @@ -361,7 +361,8 @@ func (c *RegistrationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegistrationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -532,7 +533,8 @@ func NewRegistrationClient(ctx context.Context, opts ...option.ClientOption) (*R // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *registrationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/servicedirectory/apiv1/registration_client_example_test.go b/servicedirectory/apiv1/registration_client_example_test.go index 7209b72343b..9d0780a78a4 100644 --- a/servicedirectory/apiv1/registration_client_example_test.go +++ b/servicedirectory/apiv1/registration_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewRegistrationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewRegistrationClient() { func ExampleRegistrationClient_CreateNamespace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleRegistrationClient_CreateNamespace() { func ExampleRegistrationClient_ListNamespaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleRegistrationClient_ListNamespaces() { func ExampleRegistrationClient_GetNamespace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -105,6 +125,11 @@ func ExampleRegistrationClient_GetNamespace() { func ExampleRegistrationClient_UpdateNamespace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -125,6 +150,11 @@ func ExampleRegistrationClient_UpdateNamespace() { func ExampleRegistrationClient_DeleteNamespace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleRegistrationClient_DeleteNamespace() { func ExampleRegistrationClient_CreateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleRegistrationClient_CreateService() { func ExampleRegistrationClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -189,6 +229,11 @@ func ExampleRegistrationClient_ListServices() { func ExampleRegistrationClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +254,11 @@ func ExampleRegistrationClient_GetService() { func ExampleRegistrationClient_UpdateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -229,6 +279,11 @@ func ExampleRegistrationClient_UpdateService() { func ExampleRegistrationClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -247,6 +302,11 @@ func ExampleRegistrationClient_DeleteService() { func ExampleRegistrationClient_CreateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -267,6 +327,11 @@ func ExampleRegistrationClient_CreateEndpoint() { func ExampleRegistrationClient_ListEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -293,6 +358,11 @@ func ExampleRegistrationClient_ListEndpoints() { func ExampleRegistrationClient_GetEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -313,6 +383,11 @@ func ExampleRegistrationClient_GetEndpoint() { func ExampleRegistrationClient_UpdateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -333,6 +408,11 @@ func ExampleRegistrationClient_UpdateEndpoint() { func ExampleRegistrationClient_DeleteEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -351,6 +431,11 @@ func ExampleRegistrationClient_DeleteEndpoint() { func ExampleRegistrationClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -371,6 +456,11 @@ func ExampleRegistrationClient_GetIamPolicy() { func ExampleRegistrationClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -391,6 +481,11 @@ func ExampleRegistrationClient_SetIamPolicy() { func ExampleRegistrationClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/servicedirectory/apiv1beta1/doc.go b/servicedirectory/apiv1beta1/doc.go index 530ee2b4634..4ebaa4a99ac 100644 --- a/servicedirectory/apiv1beta1/doc.go +++ b/servicedirectory/apiv1beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := servicedirectory.NewLookupClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := servicedirectory.NewLookupClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/servicedirectory/apiv1beta1/lookup_client.go b/servicedirectory/apiv1beta1/lookup_client.go index 4e8c19187c3..f49c6b845b5 100644 --- a/servicedirectory/apiv1beta1/lookup_client.go +++ b/servicedirectory/apiv1beta1/lookup_client.go @@ -128,7 +128,8 @@ func (c *LookupClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *LookupClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -200,7 +201,8 @@ func NewLookupClient(ctx context.Context, opts ...option.ClientOption) (*LookupC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *lookupGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -284,7 +286,7 @@ func (c *lookupRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *lookupRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/servicedirectory/apiv1beta1/lookup_client_example_test.go b/servicedirectory/apiv1beta1/lookup_client_example_test.go index bb73c2d93d1..6a252032845 100644 --- a/servicedirectory/apiv1beta1/lookup_client_example_test.go +++ b/servicedirectory/apiv1beta1/lookup_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewLookupClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewLookupClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewLookupClient() { func ExampleNewLookupRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewLookupRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewLookupRESTClient() { func ExampleLookupClient_ResolveService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewLookupClient(ctx) if err != nil { // TODO: Handle error. diff --git a/servicedirectory/apiv1beta1/registration_client.go b/servicedirectory/apiv1beta1/registration_client.go index c4c9f5530f7..2cc840756c2 100644 --- a/servicedirectory/apiv1beta1/registration_client.go +++ b/servicedirectory/apiv1beta1/registration_client.go @@ -570,7 +570,8 @@ func (c *RegistrationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *RegistrationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -741,7 +742,8 @@ func NewRegistrationClient(ctx context.Context, opts ...option.ClientOption) (*R // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *registrationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -839,7 +841,7 @@ func (c *registrationRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *registrationRESTClient) Connection() *grpc.ClientConn { return nil } @@ -1523,8 +1525,12 @@ func (c *registrationRESTClient) UpdateNamespace(ctx context.Context, req *servi baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetNamespace().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -1837,8 +1843,12 @@ func (c *registrationRESTClient) UpdateService(ctx context.Context, req *service baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetService().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -2151,8 +2161,12 @@ func (c *registrationRESTClient) UpdateEndpoint(ctx context.Context, req *servic baseUrl.Path += fmt.Sprintf("/v1beta1/%v", req.GetEndpoint().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/servicedirectory/apiv1beta1/registration_client_example_test.go b/servicedirectory/apiv1beta1/registration_client_example_test.go index 1301a926930..86f70fa122e 100644 --- a/servicedirectory/apiv1beta1/registration_client_example_test.go +++ b/servicedirectory/apiv1beta1/registration_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewRegistrationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewRegistrationClient() { func ExampleNewRegistrationRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewRegistrationRESTClient() { func ExampleRegistrationClient_CreateNamespace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -71,6 +86,11 @@ func ExampleRegistrationClient_CreateNamespace() { func ExampleRegistrationClient_ListNamespaces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleRegistrationClient_ListNamespaces() { func ExampleRegistrationClient_GetNamespace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleRegistrationClient_GetNamespace() { func ExampleRegistrationClient_UpdateNamespace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -137,6 +167,11 @@ func ExampleRegistrationClient_UpdateNamespace() { func ExampleRegistrationClient_DeleteNamespace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +190,11 @@ func ExampleRegistrationClient_DeleteNamespace() { func ExampleRegistrationClient_CreateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -175,6 +215,11 @@ func ExampleRegistrationClient_CreateService() { func ExampleRegistrationClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -201,6 +246,11 @@ func ExampleRegistrationClient_ListServices() { func ExampleRegistrationClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -221,6 +271,11 @@ func ExampleRegistrationClient_GetService() { func ExampleRegistrationClient_UpdateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +296,11 @@ func ExampleRegistrationClient_UpdateService() { func ExampleRegistrationClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -259,6 +319,11 @@ func ExampleRegistrationClient_DeleteService() { func ExampleRegistrationClient_CreateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -279,6 +344,11 @@ func ExampleRegistrationClient_CreateEndpoint() { func ExampleRegistrationClient_ListEndpoints() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -305,6 +375,11 @@ func ExampleRegistrationClient_ListEndpoints() { func ExampleRegistrationClient_GetEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -325,6 +400,11 @@ func ExampleRegistrationClient_GetEndpoint() { func ExampleRegistrationClient_UpdateEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -345,6 +425,11 @@ func ExampleRegistrationClient_UpdateEndpoint() { func ExampleRegistrationClient_DeleteEndpoint() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -363,6 +448,11 @@ func ExampleRegistrationClient_DeleteEndpoint() { func ExampleRegistrationClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -383,6 +473,11 @@ func ExampleRegistrationClient_GetIamPolicy() { func ExampleRegistrationClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -403,6 +498,11 @@ func ExampleRegistrationClient_SetIamPolicy() { func ExampleRegistrationClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/servicedirectory/go.mod b/servicedirectory/go.mod index ebd7553ee10..a4c98d6d2be 100644 --- a/servicedirectory/go.mod +++ b/servicedirectory/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/servicedirectory/go.sum b/servicedirectory/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/servicedirectory/go.sum +++ b/servicedirectory/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/servicemanagement/apiv1/doc.go b/servicemanagement/apiv1/doc.go index 4a3f9e139a1..69c53927b6c 100644 --- a/servicemanagement/apiv1/doc.go +++ b/servicemanagement/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := servicemanagement.NewServiceManagerClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := servicemanagement.NewServiceManagerClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/servicemanagement/apiv1/service_manager_client.go b/servicemanagement/apiv1/service_manager_client.go index ddda5491fbb..0dd2a7ba5a9 100644 --- a/servicemanagement/apiv1/service_manager_client.go +++ b/servicemanagement/apiv1/service_manager_client.go @@ -147,7 +147,8 @@ func (c *ServiceManagerClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ServiceManagerClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -397,7 +398,8 @@ func NewServiceManagerClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *serviceManagerGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/servicemanagement/apiv1/service_manager_client_example_test.go b/servicemanagement/apiv1/service_manager_client_example_test.go index e05b00df367..5cbc8c99321 100644 --- a/servicemanagement/apiv1/service_manager_client_example_test.go +++ b/servicemanagement/apiv1/service_manager_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewServiceManagerClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewServiceManagerClient() { func ExampleServiceManagerClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleServiceManagerClient_ListServices() { func ExampleServiceManagerClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleServiceManagerClient_GetService() { func ExampleServiceManagerClient_CreateService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleServiceManagerClient_CreateService() { func ExampleServiceManagerClient_DeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleServiceManagerClient_DeleteService() { func ExampleServiceManagerClient_UndeleteService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleServiceManagerClient_UndeleteService() { func ExampleServiceManagerClient_ListServiceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +218,11 @@ func ExampleServiceManagerClient_ListServiceConfigs() { func ExampleServiceManagerClient_GetServiceConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleServiceManagerClient_GetServiceConfig() { func ExampleServiceManagerClient_CreateServiceConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +268,11 @@ func ExampleServiceManagerClient_CreateServiceConfig() { func ExampleServiceManagerClient_SubmitConfigSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +298,11 @@ func ExampleServiceManagerClient_SubmitConfigSource() { func ExampleServiceManagerClient_ListServiceRollouts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +329,11 @@ func ExampleServiceManagerClient_ListServiceRollouts() { func ExampleServiceManagerClient_GetServiceRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -294,6 +354,11 @@ func ExampleServiceManagerClient_GetServiceRollout() { func ExampleServiceManagerClient_CreateServiceRollout() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -319,6 +384,11 @@ func ExampleServiceManagerClient_CreateServiceRollout() { func ExampleServiceManagerClient_GenerateConfigReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/servicemanagement/go.mod b/servicemanagement/go.mod index 318f54a954d..6f7e60e0715 100644 --- a/servicemanagement/go.mod +++ b/servicemanagement/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/servicemanagement/go.sum b/servicemanagement/go.sum index 16c8c6ff92d..61881bdba1f 100644 --- a/servicemanagement/go.sum +++ b/servicemanagement/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/serviceusage/apiv1/doc.go b/serviceusage/apiv1/doc.go index e8bea8b508a..c438c87086f 100644 --- a/serviceusage/apiv1/doc.go +++ b/serviceusage/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := serviceusage.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := serviceusage.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/serviceusage/apiv1/service_usage_client.go b/serviceusage/apiv1/service_usage_client.go index 2512b6aaf87..44a95fae0bd 100644 --- a/serviceusage/apiv1/service_usage_client.go +++ b/serviceusage/apiv1/service_usage_client.go @@ -126,7 +126,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -280,7 +281,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/serviceusage/apiv1/service_usage_client_example_test.go b/serviceusage/apiv1/service_usage_client_example_test.go index 0eadd3b443c..fd76fd3a4ac 100644 --- a/serviceusage/apiv1/service_usage_client_example_test.go +++ b/serviceusage/apiv1/service_usage_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_EnableService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleClient_EnableService() { func ExampleClient_DisableService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -88,6 +103,11 @@ func ExampleClient_DisableService() { func ExampleClient_GetService() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -108,6 +128,11 @@ func ExampleClient_GetService() { func ExampleClient_ListServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleClient_ListServices() { func ExampleClient_BatchEnableServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleClient_BatchEnableServices() { func ExampleClient_BatchGetServices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/serviceusage/go.mod b/serviceusage/go.mod index 98669efda04..065250b2dfa 100644 --- a/serviceusage/go.mod +++ b/serviceusage/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/serviceusage/go.sum b/serviceusage/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/serviceusage/go.sum +++ b/serviceusage/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/shell/apiv1/cloud_shell_client.go b/shell/apiv1/cloud_shell_client.go index 4f12103ec9d..d25885933f6 100644 --- a/shell/apiv1/cloud_shell_client.go +++ b/shell/apiv1/cloud_shell_client.go @@ -136,7 +136,8 @@ func (c *CloudShellClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CloudShellClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -285,7 +286,8 @@ func NewCloudShellClient(ctx context.Context, opts ...option.ClientOption) (*Clo // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *cloudShellGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/shell/apiv1/cloud_shell_client_example_test.go b/shell/apiv1/cloud_shell_client_example_test.go index 23fefa5cdad..62b2bec5613 100644 --- a/shell/apiv1/cloud_shell_client_example_test.go +++ b/shell/apiv1/cloud_shell_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewCloudShellClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewCloudShellClient() { func ExampleCloudShellClient_GetEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleCloudShellClient_GetEnvironment() { func ExampleCloudShellClient_StartEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -82,6 +97,11 @@ func ExampleCloudShellClient_StartEnvironment() { func ExampleCloudShellClient_AuthorizeEnvironment() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -107,6 +127,11 @@ func ExampleCloudShellClient_AuthorizeEnvironment() { func ExampleCloudShellClient_AddPublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleCloudShellClient_AddPublicKey() { func ExampleCloudShellClient_RemovePublicKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. diff --git a/shell/apiv1/doc.go b/shell/apiv1/doc.go index 526189059e6..825284671b0 100644 --- a/shell/apiv1/doc.go +++ b/shell/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := shell.NewCloudShellClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := shell.NewCloudShellClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/shell/go.mod b/shell/go.mod index 94acb57332a..3f01996eb46 100644 --- a/shell/go.mod +++ b/shell/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 ) @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/shell/go.sum b/shell/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/shell/go.sum +++ b/shell/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/spanner/admin/database/apiv1/database_admin_client.go b/spanner/admin/database/apiv1/database_admin_client.go index 8e8d81b9472..8671cfd8950 100644 --- a/spanner/admin/database/apiv1/database_admin_client.go +++ b/spanner/admin/database/apiv1/database_admin_client.go @@ -330,7 +330,8 @@ func (c *DatabaseAdminClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *DatabaseAdminClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -666,7 +667,8 @@ func NewDatabaseAdminClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *databaseAdminGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/spanner/admin/database/apiv1/database_admin_client_example_test.go b/spanner/admin/database/apiv1/database_admin_client_example_test.go index f50e836a71b..b50846d8e1b 100644 --- a/spanner/admin/database/apiv1/database_admin_client_example_test.go +++ b/spanner/admin/database/apiv1/database_admin_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewDatabaseAdminClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewDatabaseAdminClient() { func ExampleDatabaseAdminClient_ListDatabases() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -66,6 +76,11 @@ func ExampleDatabaseAdminClient_ListDatabases() { func ExampleDatabaseAdminClient_CreateDatabase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -91,6 +106,11 @@ func ExampleDatabaseAdminClient_CreateDatabase() { func ExampleDatabaseAdminClient_GetDatabase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleDatabaseAdminClient_GetDatabase() { func ExampleDatabaseAdminClient_UpdateDatabaseDdl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleDatabaseAdminClient_UpdateDatabaseDdl() { func ExampleDatabaseAdminClient_DropDatabase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -152,6 +182,11 @@ func ExampleDatabaseAdminClient_DropDatabase() { func ExampleDatabaseAdminClient_GetDatabaseDdl() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -172,6 +207,11 @@ func ExampleDatabaseAdminClient_GetDatabaseDdl() { func ExampleDatabaseAdminClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleDatabaseAdminClient_SetIamPolicy() { func ExampleDatabaseAdminClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -212,6 +257,11 @@ func ExampleDatabaseAdminClient_GetIamPolicy() { func ExampleDatabaseAdminClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +282,11 @@ func ExampleDatabaseAdminClient_TestIamPermissions() { func ExampleDatabaseAdminClient_CreateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -257,6 +312,11 @@ func ExampleDatabaseAdminClient_CreateBackup() { func ExampleDatabaseAdminClient_CopyBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -282,6 +342,11 @@ func ExampleDatabaseAdminClient_CopyBackup() { func ExampleDatabaseAdminClient_GetBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -302,6 +367,11 @@ func ExampleDatabaseAdminClient_GetBackup() { func ExampleDatabaseAdminClient_UpdateBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -322,6 +392,11 @@ func ExampleDatabaseAdminClient_UpdateBackup() { func ExampleDatabaseAdminClient_DeleteBackup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -340,6 +415,11 @@ func ExampleDatabaseAdminClient_DeleteBackup() { func ExampleDatabaseAdminClient_ListBackups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -366,6 +446,11 @@ func ExampleDatabaseAdminClient_ListBackups() { func ExampleDatabaseAdminClient_RestoreDatabase() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -391,6 +476,11 @@ func ExampleDatabaseAdminClient_RestoreDatabase() { func ExampleDatabaseAdminClient_ListDatabaseOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -417,6 +507,11 @@ func ExampleDatabaseAdminClient_ListDatabaseOperations() { func ExampleDatabaseAdminClient_ListBackupOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -443,6 +538,11 @@ func ExampleDatabaseAdminClient_ListBackupOperations() { func ExampleDatabaseAdminClient_ListDatabaseRoles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -469,6 +569,11 @@ func ExampleDatabaseAdminClient_ListDatabaseRoles() { func ExampleDatabaseAdminClient_CancelOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -487,6 +592,11 @@ func ExampleDatabaseAdminClient_CancelOperation() { func ExampleDatabaseAdminClient_DeleteOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -505,6 +615,11 @@ func ExampleDatabaseAdminClient_DeleteOperation() { func ExampleDatabaseAdminClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -525,6 +640,11 @@ func ExampleDatabaseAdminClient_GetOperation() { func ExampleDatabaseAdminClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/spanner/admin/database/apiv1/doc.go b/spanner/admin/database/apiv1/doc.go index a410afdb6ff..e1e752b0157 100644 --- a/spanner/admin/database/apiv1/doc.go +++ b/spanner/admin/database/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := database.NewDatabaseAdminClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := database.NewDatabaseAdminClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/spanner/admin/instance/apiv1/doc.go b/spanner/admin/instance/apiv1/doc.go index 6b2b57957ff..74b9ce47e4f 100644 --- a/spanner/admin/instance/apiv1/doc.go +++ b/spanner/admin/instance/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := instance.NewInstanceAdminClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := instance.NewInstanceAdminClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/spanner/admin/instance/apiv1/instance_admin_client.go b/spanner/admin/instance/apiv1/instance_admin_client.go index d1a32fc7bab..40e28b94f65 100644 --- a/spanner/admin/instance/apiv1/instance_admin_client.go +++ b/spanner/admin/instance/apiv1/instance_admin_client.go @@ -221,7 +221,8 @@ func (c *InstanceAdminClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *InstanceAdminClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -488,7 +489,8 @@ func NewInstanceAdminClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *instanceAdminGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/spanner/admin/instance/apiv1/instance_admin_client_example_test.go b/spanner/admin/instance/apiv1/instance_admin_client_example_test.go index 6669b4d0030..02605ed0c19 100644 --- a/spanner/admin/instance/apiv1/instance_admin_client_example_test.go +++ b/spanner/admin/instance/apiv1/instance_admin_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewInstanceAdminClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewInstanceAdminClient() { func ExampleInstanceAdminClient_ListInstanceConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleInstanceAdminClient_ListInstanceConfigs() { func ExampleInstanceAdminClient_GetInstanceConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleInstanceAdminClient_GetInstanceConfig() { func ExampleInstanceAdminClient_ListInstances() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleInstanceAdminClient_ListInstances() { func ExampleInstanceAdminClient_GetInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -131,6 +156,11 @@ func ExampleInstanceAdminClient_GetInstance() { func ExampleInstanceAdminClient_CreateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -156,6 +186,11 @@ func ExampleInstanceAdminClient_CreateInstance() { func ExampleInstanceAdminClient_UpdateInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -181,6 +216,11 @@ func ExampleInstanceAdminClient_UpdateInstance() { func ExampleInstanceAdminClient_DeleteInstance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -199,6 +239,11 @@ func ExampleInstanceAdminClient_DeleteInstance() { func ExampleInstanceAdminClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleInstanceAdminClient_SetIamPolicy() { func ExampleInstanceAdminClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -239,6 +289,11 @@ func ExampleInstanceAdminClient_GetIamPolicy() { func ExampleInstanceAdminClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/spanner/apiv1/doc.go b/spanner/apiv1/doc.go index b46aa82becc..aba4a4afccb 100644 --- a/spanner/apiv1/doc.go +++ b/spanner/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := spanner.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := spanner.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/spanner/apiv1/spanner_client.go b/spanner/apiv1/spanner_client.go index 79c1a44c07f..1744bad7bac 100644 --- a/spanner/apiv1/spanner_client.go +++ b/spanner/apiv1/spanner_client.go @@ -272,7 +272,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -525,7 +526,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/spanner/apiv1/spanner_client_example_test.go b/spanner/apiv1/spanner_client_example_test.go index c12fb9c34eb..cc9d0631821 100644 --- a/spanner/apiv1/spanner_client_example_test.go +++ b/spanner/apiv1/spanner_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateSession() { func ExampleClient_BatchCreateSessions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_BatchCreateSessions() { func ExampleClient_GetSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleClient_GetSession() { func ExampleClient_ListSessions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleClient_ListSessions() { func ExampleClient_DeleteSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_DeleteSession() { func ExampleClient_ExecuteSql() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_ExecuteSql() { func ExampleClient_ExecuteBatchDml() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleClient_ExecuteBatchDml() { func ExampleClient_Read() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -202,6 +247,11 @@ func ExampleClient_Read() { func ExampleClient_BeginTransaction() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -222,6 +272,11 @@ func ExampleClient_BeginTransaction() { func ExampleClient_Commit() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -242,6 +297,11 @@ func ExampleClient_Commit() { func ExampleClient_Rollback() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -260,6 +320,11 @@ func ExampleClient_Rollback() { func ExampleClient_PartitionQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -280,6 +345,11 @@ func ExampleClient_PartitionQuery() { func ExampleClient_PartitionRead() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/spanner/go.mod b/spanner/go.mod index 123f7f18d31..a70a4c19211 100644 --- a/spanner/go.mod +++ b/spanner/go.mod @@ -9,7 +9,7 @@ require ( github.com/googleapis/gax-go/v2 v2.4.0 go.opencensus.io v0.23.0 golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -26,7 +26,7 @@ require ( github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/spanner/go.sum b/spanner/go.sum index e4f70904c9e..c49b9d163f6 100644 --- a/spanner/go.sum +++ b/spanner/go.sum @@ -322,8 +322,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -509,8 +510,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/speech/apiv1/adaptation_client.go b/speech/apiv1/adaptation_client.go index cbf357b60b2..841bc7d4c97 100644 --- a/speech/apiv1/adaptation_client.go +++ b/speech/apiv1/adaptation_client.go @@ -122,7 +122,8 @@ func (c *AdaptationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AdaptationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -239,7 +240,8 @@ func NewAdaptationClient(ctx context.Context, opts ...option.ClientOption) (*Ada // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *adaptationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/speech/apiv1/adaptation_client_example_test.go b/speech/apiv1/adaptation_client_example_test.go index 6f7930cbd3d..cba176af062 100644 --- a/speech/apiv1/adaptation_client_example_test.go +++ b/speech/apiv1/adaptation_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAdaptationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAdaptationClient() { func ExampleAdaptationClient_CreatePhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleAdaptationClient_CreatePhraseSet() { func ExampleAdaptationClient_GetPhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleAdaptationClient_GetPhraseSet() { func ExampleAdaptationClient_ListPhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleAdaptationClient_ListPhraseSet() { func ExampleAdaptationClient_UpdatePhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleAdaptationClient_UpdatePhraseSet() { func ExampleAdaptationClient_DeletePhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleAdaptationClient_DeletePhraseSet() { func ExampleAdaptationClient_CreateCustomClass() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleAdaptationClient_CreateCustomClass() { func ExampleAdaptationClient_GetCustomClass() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleAdaptationClient_GetCustomClass() { func ExampleAdaptationClient_ListCustomClasses() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleAdaptationClient_ListCustomClasses() { func ExampleAdaptationClient_UpdateCustomClass() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleAdaptationClient_UpdateCustomClass() { func ExampleAdaptationClient_DeleteCustomClass() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/speech/apiv1/doc.go b/speech/apiv1/doc.go index 32ff1c853a3..a3b8cabb74e 100644 --- a/speech/apiv1/doc.go +++ b/speech/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := speech.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := speech.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/speech/apiv1/speech_client.go b/speech/apiv1/speech_client.go index 733230a512c..95f25ac1766 100644 --- a/speech/apiv1/speech_client.go +++ b/speech/apiv1/speech_client.go @@ -130,7 +130,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -239,7 +240,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/speech/apiv1/speech_client_example_test.go b/speech/apiv1/speech_client_example_test.go index 5f346c96862..81f65899eee 100644 --- a/speech/apiv1/speech_client_example_test.go +++ b/speech/apiv1/speech_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_Recognize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_Recognize() { func ExampleClient_LongRunningRecognize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -83,6 +98,11 @@ func ExampleClient_LongRunningRecognize() { func ExampleClient_StreamingRecognize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/speech/apiv1p1beta1/adaptation_client.go b/speech/apiv1p1beta1/adaptation_client.go index 5d74fc6bb8a..6659d98dd0c 100644 --- a/speech/apiv1p1beta1/adaptation_client.go +++ b/speech/apiv1p1beta1/adaptation_client.go @@ -143,7 +143,8 @@ func (c *AdaptationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *AdaptationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -260,7 +261,8 @@ func NewAdaptationClient(ctx context.Context, opts ...option.ClientOption) (*Ada // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *adaptationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -344,7 +346,7 @@ func (c *adaptationRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *adaptationRESTClient) Connection() *grpc.ClientConn { return nil } @@ -783,8 +785,12 @@ func (c *adaptationRESTClient) UpdatePhraseSet(ctx context.Context, req *speechp baseUrl.Path += fmt.Sprintf("/v1p1beta1/%v", req.GetPhraseSet().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() @@ -1084,8 +1090,12 @@ func (c *adaptationRESTClient) UpdateCustomClass(ctx context.Context, req *speec baseUrl.Path += fmt.Sprintf("/v1p1beta1/%v", req.GetCustomClass().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/speech/apiv1p1beta1/adaptation_client_example_test.go b/speech/apiv1p1beta1/adaptation_client_example_test.go index 548aecf24cc..480380d7a68 100644 --- a/speech/apiv1p1beta1/adaptation_client_example_test.go +++ b/speech/apiv1p1beta1/adaptation_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewAdaptationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewAdaptationClient() { func ExampleNewAdaptationRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewAdaptationRESTClient() { func ExampleAdaptationClient_CreatePhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleAdaptationClient_CreatePhraseSet() { func ExampleAdaptationClient_GetPhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -90,6 +110,11 @@ func ExampleAdaptationClient_GetPhraseSet() { func ExampleAdaptationClient_ListPhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleAdaptationClient_ListPhraseSet() { func ExampleAdaptationClient_UpdatePhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleAdaptationClient_UpdatePhraseSet() { func ExampleAdaptationClient_DeletePhraseSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -154,6 +189,11 @@ func ExampleAdaptationClient_DeletePhraseSet() { func ExampleAdaptationClient_CreateCustomClass() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -174,6 +214,11 @@ func ExampleAdaptationClient_CreateCustomClass() { func ExampleAdaptationClient_GetCustomClass() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -194,6 +239,11 @@ func ExampleAdaptationClient_GetCustomClass() { func ExampleAdaptationClient_ListCustomClasses() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -220,6 +270,11 @@ func ExampleAdaptationClient_ListCustomClasses() { func ExampleAdaptationClient_UpdateCustomClass() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -240,6 +295,11 @@ func ExampleAdaptationClient_UpdateCustomClass() { func ExampleAdaptationClient_DeleteCustomClass() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/speech/apiv1p1beta1/doc.go b/speech/apiv1p1beta1/doc.go index 22b9d7be5d1..2944b41ae49 100644 --- a/speech/apiv1p1beta1/doc.go +++ b/speech/apiv1p1beta1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := speech.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := speech.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/speech/apiv1p1beta1/speech_client.go b/speech/apiv1p1beta1/speech_client.go index 6780db034ff..04d9d098859 100644 --- a/speech/apiv1p1beta1/speech_client.go +++ b/speech/apiv1p1beta1/speech_client.go @@ -166,7 +166,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -275,7 +276,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -374,7 +376,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } diff --git a/speech/apiv1p1beta1/speech_client_example_test.go b/speech/apiv1p1beta1/speech_client_example_test.go index a10fd143f6d..ca6789ccdfc 100644 --- a/speech/apiv1p1beta1/speech_client_example_test.go +++ b/speech/apiv1p1beta1/speech_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_Recognize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleClient_Recognize() { func ExampleClient_LongRunningRecognize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -95,6 +115,11 @@ func ExampleClient_LongRunningRecognize() { func ExampleClient_StreamingRecognize() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/speech/go.mod b/speech/go.mod index 93e8c35ee8f..aaa871e78f6 100644 --- a/speech/go.mod +++ b/speech/go.mod @@ -4,10 +4,9 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -15,12 +14,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/speech/go.sum b/speech/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/speech/go.sum +++ b/speech/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/storage/go.mod b/storage/go.mod index 71120a660e8..4f5fdab21cc 100644 --- a/storage/go.mod +++ b/storage/go.mod @@ -10,9 +10,9 @@ require ( github.com/google/go-cmp v0.5.8 github.com/google/uuid v1.3.0 github.com/googleapis/gax-go/v2 v2.4.0 - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220810155839-1856144b1d9c google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 diff --git a/storage/go.sum b/storage/go.sum index c94a29681e8..b140dbcc1e7 100644 --- a/storage/go.sum +++ b/storage/go.sum @@ -318,8 +318,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -505,8 +506,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/storage/internal/apiv2/doc.go b/storage/internal/apiv2/doc.go index d0d1f42d917..56e97548126 100644 --- a/storage/internal/apiv2/doc.go +++ b/storage/internal/apiv2/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storage.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storage.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/storage/internal/apiv2/storage_client.go b/storage/internal/apiv2/storage_client.go index b704e273e66..cf7e0e785d6 100644 --- a/storage/internal/apiv2/storage_client.go +++ b/storage/internal/apiv2/storage_client.go @@ -206,7 +206,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -518,7 +519,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/storage/internal/apiv2/storage_client_example_test.go b/storage/internal/apiv2/storage_client_example_test.go index d85ab2871c1..321fc9144d2 100644 --- a/storage/internal/apiv2/storage_client_example_test.go +++ b/storage/internal/apiv2/storage_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewClient() { func ExampleClient_DeleteBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleClient_DeleteBucket() { func ExampleClient_GetBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_GetBucket() { func ExampleClient_CreateBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleClient_CreateBucket() { func ExampleClient_ListBuckets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -123,6 +148,11 @@ func ExampleClient_ListBuckets() { func ExampleClient_LockBucketRetentionPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleClient_LockBucketRetentionPolicy() { func ExampleClient_GetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -163,6 +198,11 @@ func ExampleClient_GetIamPolicy() { func ExampleClient_SetIamPolicy() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -183,6 +223,11 @@ func ExampleClient_SetIamPolicy() { func ExampleClient_TestIamPermissions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleClient_TestIamPermissions() { func ExampleClient_UpdateBucket() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleClient_UpdateBucket() { func ExampleClient_DeleteNotification() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -241,6 +296,11 @@ func ExampleClient_DeleteNotification() { func ExampleClient_GetNotification() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -261,6 +321,11 @@ func ExampleClient_GetNotification() { func ExampleClient_CreateNotification() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -281,6 +346,11 @@ func ExampleClient_CreateNotification() { func ExampleClient_ListNotifications() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -307,6 +377,11 @@ func ExampleClient_ListNotifications() { func ExampleClient_ComposeObject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -327,6 +402,11 @@ func ExampleClient_ComposeObject() { func ExampleClient_DeleteObject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -345,6 +425,11 @@ func ExampleClient_DeleteObject() { func ExampleClient_CancelResumableWrite() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -365,6 +450,11 @@ func ExampleClient_CancelResumableWrite() { func ExampleClient_GetObject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -385,6 +475,11 @@ func ExampleClient_GetObject() { func ExampleClient_UpdateObject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -405,6 +500,11 @@ func ExampleClient_UpdateObject() { func ExampleClient_ListObjects() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -431,6 +531,11 @@ func ExampleClient_ListObjects() { func ExampleClient_RewriteObject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -451,6 +556,11 @@ func ExampleClient_RewriteObject() { func ExampleClient_StartResumableWrite() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -471,6 +581,11 @@ func ExampleClient_StartResumableWrite() { func ExampleClient_QueryWriteStatus() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -491,6 +606,11 @@ func ExampleClient_QueryWriteStatus() { func ExampleClient_GetServiceAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -511,6 +631,11 @@ func ExampleClient_GetServiceAccount() { func ExampleClient_CreateHmacKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -531,6 +656,11 @@ func ExampleClient_CreateHmacKey() { func ExampleClient_DeleteHmacKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -549,6 +679,11 @@ func ExampleClient_DeleteHmacKey() { func ExampleClient_GetHmacKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -569,6 +704,11 @@ func ExampleClient_GetHmacKey() { func ExampleClient_ListHmacKeys() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -595,6 +735,11 @@ func ExampleClient_ListHmacKeys() { func ExampleClient_UpdateHmacKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storage.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/storagetransfer/apiv1/doc.go b/storagetransfer/apiv1/doc.go index 0c20741e2be..827b6d454a3 100644 --- a/storagetransfer/apiv1/doc.go +++ b/storagetransfer/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storagetransfer.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := storagetransfer.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/storagetransfer/apiv1/storage_transfer_client.go b/storagetransfer/apiv1/storage_transfer_client.go index 48fd0aca8bd..091de9fa509 100644 --- a/storagetransfer/apiv1/storage_transfer_client.go +++ b/storagetransfer/apiv1/storage_transfer_client.go @@ -143,7 +143,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -313,7 +314,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/storagetransfer/apiv1/storage_transfer_client_example_test.go b/storagetransfer/apiv1/storage_transfer_client_example_test.go index f9e4188efbc..9ee87523328 100644 --- a/storagetransfer/apiv1/storage_transfer_client_example_test.go +++ b/storagetransfer/apiv1/storage_transfer_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_GetGoogleServiceAccount() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_GetGoogleServiceAccount() { func ExampleClient_CreateTransferJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleClient_CreateTransferJob() { func ExampleClient_UpdateTransferJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleClient_UpdateTransferJob() { func ExampleClient_GetTransferJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleClient_GetTransferJob() { func ExampleClient_ListTransferJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleClient_ListTransferJobs() { func ExampleClient_PauseTransferOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_PauseTransferOperation() { func ExampleClient_ResumeTransferOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +220,11 @@ func ExampleClient_ResumeTransferOperation() { func ExampleClient_RunTransferJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +248,11 @@ func ExampleClient_RunTransferJob() { func ExampleClient_CreateAgentPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleClient_CreateAgentPool() { func ExampleClient_UpdateAgentPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +298,11 @@ func ExampleClient_UpdateAgentPool() { func ExampleClient_GetAgentPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -263,6 +323,11 @@ func ExampleClient_GetAgentPool() { func ExampleClient_ListAgentPools() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -289,6 +354,11 @@ func ExampleClient_ListAgentPools() { func ExampleClient_DeleteAgentPool() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/storagetransfer/go.mod b/storagetransfer/go.mod index be1cde621cd..8e0096766e4 100644 --- a/storagetransfer/go.mod +++ b/storagetransfer/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/storagetransfer/go.sum b/storagetransfer/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/storagetransfer/go.sum +++ b/storagetransfer/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/talent/apiv4/company_client.go b/talent/apiv4/company_client.go index 7aae826b22d..5edcaf5257e 100644 --- a/talent/apiv4/company_client.go +++ b/talent/apiv4/company_client.go @@ -146,7 +146,8 @@ func (c *CompanyClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CompanyClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -245,7 +246,8 @@ func NewCompanyClient(ctx context.Context, opts ...option.ClientOption) (*Compan // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *companyGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/talent/apiv4/company_client_example_test.go b/talent/apiv4/company_client_example_test.go index af4cf5a2e34..051f192c91f 100644 --- a/talent/apiv4/company_client_example_test.go +++ b/talent/apiv4/company_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCompanyClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCompanyClient() { func ExampleCompanyClient_CreateCompany() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleCompanyClient_CreateCompany() { func ExampleCompanyClient_GetCompany() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleCompanyClient_GetCompany() { func ExampleCompanyClient_UpdateCompany() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleCompanyClient_UpdateCompany() { func ExampleCompanyClient_DeleteCompany() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleCompanyClient_DeleteCompany() { func ExampleCompanyClient_ListCompanies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleCompanyClient_ListCompanies() { func ExampleCompanyClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4/completion_client.go b/talent/apiv4/completion_client.go index dea856e599e..42bcde3e784 100644 --- a/talent/apiv4/completion_client.go +++ b/talent/apiv4/completion_client.go @@ -110,7 +110,8 @@ func (c *CompletionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CompletionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -189,7 +190,8 @@ func NewCompletionClient(ctx context.Context, opts ...option.ClientOption) (*Com // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *completionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/talent/apiv4/completion_client_example_test.go b/talent/apiv4/completion_client_example_test.go index b40f55373b8..464d309f768 100644 --- a/talent/apiv4/completion_client_example_test.go +++ b/talent/apiv4/completion_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCompletionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCompletionClient() { func ExampleCompletionClient_CompleteQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleCompletionClient_CompleteQuery() { func ExampleCompletionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4/doc.go b/talent/apiv4/doc.go index c5d767ce925..bdb0f9d6a87 100644 --- a/talent/apiv4/doc.go +++ b/talent/apiv4/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := talent.NewCompanyClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := talent.NewCompanyClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/talent/apiv4/event_client.go b/talent/apiv4/event_client.go index fc8c02227b3..650333c3df3 100644 --- a/talent/apiv4/event_client.go +++ b/talent/apiv4/event_client.go @@ -98,7 +98,8 @@ func (c *EventClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EventClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -182,7 +183,8 @@ func NewEventClient(ctx context.Context, opts ...option.ClientOption) (*EventCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *eventGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/talent/apiv4/event_client_example_test.go b/talent/apiv4/event_client_example_test.go index a9196f1e810..ddd4e25fb50 100644 --- a/talent/apiv4/event_client_example_test.go +++ b/talent/apiv4/event_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewEventClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewEventClient() { func ExampleEventClient_CreateClientEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleEventClient_CreateClientEvent() { func ExampleEventClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4/job_client.go b/talent/apiv4/job_client.go index 97a83275c42..e99f6fac0b8 100644 --- a/talent/apiv4/job_client.go +++ b/talent/apiv4/job_client.go @@ -171,7 +171,8 @@ func (c *JobClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *JobClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -351,7 +352,8 @@ func NewJobClient(ctx context.Context, opts ...option.ClientOption) (*JobClient, // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *jobGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/talent/apiv4/job_client_example_test.go b/talent/apiv4/job_client_example_test.go index 5314eaf6d47..d41b7cda62b 100644 --- a/talent/apiv4/job_client_example_test.go +++ b/talent/apiv4/job_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewJobClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewJobClient() { func ExampleJobClient_CreateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleJobClient_CreateJob() { func ExampleJobClient_BatchCreateJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleJobClient_BatchCreateJobs() { func ExampleJobClient_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleJobClient_GetJob() { func ExampleJobClient_UpdateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleJobClient_UpdateJob() { func ExampleJobClient_BatchUpdateJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -149,6 +179,11 @@ func ExampleJobClient_BatchUpdateJobs() { func ExampleJobClient_DeleteJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -167,6 +202,11 @@ func ExampleJobClient_DeleteJob() { func ExampleJobClient_BatchDeleteJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -192,6 +232,11 @@ func ExampleJobClient_BatchDeleteJobs() { func ExampleJobClient_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -218,6 +263,11 @@ func ExampleJobClient_ListJobs() { func ExampleJobClient_SearchJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -238,6 +288,11 @@ func ExampleJobClient_SearchJobs() { func ExampleJobClient_SearchJobsForAlert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +313,11 @@ func ExampleJobClient_SearchJobsForAlert() { func ExampleJobClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4/tenant_client.go b/talent/apiv4/tenant_client.go index 9f77e256e66..f3f58e88278 100644 --- a/talent/apiv4/tenant_client.go +++ b/talent/apiv4/tenant_client.go @@ -146,7 +146,8 @@ func (c *TenantClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TenantClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -244,7 +245,8 @@ func NewTenantClient(ctx context.Context, opts ...option.ClientOption) (*TenantC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *tenantGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/talent/apiv4/tenant_client_example_test.go b/talent/apiv4/tenant_client_example_test.go index 3670795b85e..9e062ae55b7 100644 --- a/talent/apiv4/tenant_client_example_test.go +++ b/talent/apiv4/tenant_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewTenantClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewTenantClient() { func ExampleTenantClient_CreateTenant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -59,6 +69,11 @@ func ExampleTenantClient_CreateTenant() { func ExampleTenantClient_GetTenant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -79,6 +94,11 @@ func ExampleTenantClient_GetTenant() { func ExampleTenantClient_UpdateTenant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -99,6 +119,11 @@ func ExampleTenantClient_UpdateTenant() { func ExampleTenantClient_DeleteTenant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -117,6 +142,11 @@ func ExampleTenantClient_DeleteTenant() { func ExampleTenantClient_ListTenants() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleTenantClient_ListTenants() { func ExampleTenantClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4beta1/company_client.go b/talent/apiv4beta1/company_client.go index 520248ac0b9..0ffaea8a8a8 100644 --- a/talent/apiv4beta1/company_client.go +++ b/talent/apiv4beta1/company_client.go @@ -193,7 +193,8 @@ func (c *CompanyClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CompanyClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -292,7 +293,8 @@ func NewCompanyClient(ctx context.Context, opts ...option.ClientOption) (*Compan // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *companyGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -376,7 +378,7 @@ func (c *companyRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *companyRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/talent/apiv4beta1/company_client_example_test.go b/talent/apiv4beta1/company_client_example_test.go index c85e33bb5a8..1205636153c 100644 --- a/talent/apiv4beta1/company_client_example_test.go +++ b/talent/apiv4beta1/company_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewCompanyClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewCompanyClient() { func ExampleNewCompanyRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewCompanyRESTClient() { func ExampleCompanyClient_CreateCompany() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -71,6 +86,11 @@ func ExampleCompanyClient_CreateCompany() { func ExampleCompanyClient_GetCompany() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -91,6 +111,11 @@ func ExampleCompanyClient_GetCompany() { func ExampleCompanyClient_UpdateCompany() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +136,11 @@ func ExampleCompanyClient_UpdateCompany() { func ExampleCompanyClient_DeleteCompany() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +159,11 @@ func ExampleCompanyClient_DeleteCompany() { func ExampleCompanyClient_ListCompanies() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +190,11 @@ func ExampleCompanyClient_ListCompanies() { func ExampleCompanyClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4beta1/completion_client.go b/talent/apiv4beta1/completion_client.go index 5963bbc60e9..018a4159a92 100644 --- a/talent/apiv4beta1/completion_client.go +++ b/talent/apiv4beta1/completion_client.go @@ -132,7 +132,8 @@ func (c *CompletionClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *CompletionClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -211,7 +212,8 @@ func NewCompletionClient(ctx context.Context, opts ...option.ClientOption) (*Com // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *completionGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -295,7 +297,7 @@ func (c *completionRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *completionRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/talent/apiv4beta1/completion_client_example_test.go b/talent/apiv4beta1/completion_client_example_test.go index 32498217afd..50342ae1a96 100644 --- a/talent/apiv4beta1/completion_client_example_test.go +++ b/talent/apiv4beta1/completion_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewCompletionClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewCompletionClient() { func ExampleNewCompletionRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewCompletionRESTClient() { func ExampleCompletionClient_CompleteQuery() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleCompletionClient_CompleteQuery() { func ExampleCompletionClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4beta1/doc.go b/talent/apiv4beta1/doc.go index 1685b9bf64a..2b7e6e8472d 100644 --- a/talent/apiv4beta1/doc.go +++ b/talent/apiv4beta1/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := talent.NewCompanyClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := talent.NewCompanyClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/talent/apiv4beta1/event_client.go b/talent/apiv4beta1/event_client.go index 6014ee5cd3e..a5ef5a10107 100644 --- a/talent/apiv4beta1/event_client.go +++ b/talent/apiv4beta1/event_client.go @@ -111,7 +111,8 @@ func (c *EventClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *EventClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -195,7 +196,8 @@ func NewEventClient(ctx context.Context, opts ...option.ClientOption) (*EventCli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *eventGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -279,7 +281,7 @@ func (c *eventRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *eventRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/talent/apiv4beta1/event_client_example_test.go b/talent/apiv4beta1/event_client_example_test.go index 9b9b7715814..19a8cd02b4d 100644 --- a/talent/apiv4beta1/event_client_example_test.go +++ b/talent/apiv4beta1/event_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewEventClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewEventClient() { func ExampleNewEventRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewEventRESTClient() { func ExampleEventClient_CreateClientEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventClient(ctx) if err != nil { // TODO: Handle error. @@ -70,6 +85,11 @@ func ExampleEventClient_CreateClientEvent() { func ExampleEventClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4beta1/job_client.go b/talent/apiv4beta1/job_client.go index 28f11045bd8..9c8b3976141 100644 --- a/talent/apiv4beta1/job_client.go +++ b/talent/apiv4beta1/job_client.go @@ -222,7 +222,8 @@ func (c *JobClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *JobClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -396,7 +397,8 @@ func NewJobClient(ctx context.Context, opts ...option.ClientOption) (*JobClient, // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *jobGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -495,7 +497,7 @@ func (c *jobRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *jobRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/talent/apiv4beta1/job_client_example_test.go b/talent/apiv4beta1/job_client_example_test.go index 29bf9ce60d3..b9e7f99e4e0 100644 --- a/talent/apiv4beta1/job_client_example_test.go +++ b/talent/apiv4beta1/job_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewJobClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewJobClient() { func ExampleNewJobRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewJobRESTClient() { func ExampleJobClient_CreateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -71,6 +86,11 @@ func ExampleJobClient_CreateJob() { func ExampleJobClient_BatchCreateJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleJobClient_BatchCreateJobs() { func ExampleJobClient_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleJobClient_GetJob() { func ExampleJobClient_UpdateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -136,6 +166,11 @@ func ExampleJobClient_UpdateJob() { func ExampleJobClient_BatchUpdateJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -161,6 +196,11 @@ func ExampleJobClient_BatchUpdateJobs() { func ExampleJobClient_DeleteJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -179,6 +219,11 @@ func ExampleJobClient_DeleteJob() { func ExampleJobClient_BatchDeleteJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -197,6 +242,11 @@ func ExampleJobClient_BatchDeleteJobs() { func ExampleJobClient_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +273,11 @@ func ExampleJobClient_ListJobs() { func ExampleJobClient_SearchJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -243,6 +298,11 @@ func ExampleJobClient_SearchJobs() { func ExampleJobClient_SearchJobsForAlert() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -269,6 +329,11 @@ func ExampleJobClient_SearchJobsForAlert() { func ExampleJobClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/apiv4beta1/tenant_client.go b/talent/apiv4beta1/tenant_client.go index e1bb336cf1d..c0491be8790 100644 --- a/talent/apiv4beta1/tenant_client.go +++ b/talent/apiv4beta1/tenant_client.go @@ -193,7 +193,8 @@ func (c *TenantClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TenantClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -291,7 +292,8 @@ func NewTenantClient(ctx context.Context, opts ...option.ClientOption) (*TenantC // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *tenantGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -375,7 +377,7 @@ func (c *tenantRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *tenantRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/talent/apiv4beta1/tenant_client_example_test.go b/talent/apiv4beta1/tenant_client_example_test.go index e349f2285df..243ebfa044c 100644 --- a/talent/apiv4beta1/tenant_client_example_test.go +++ b/talent/apiv4beta1/tenant_client_example_test.go @@ -27,6 +27,11 @@ import ( func ExampleNewTenantClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -39,6 +44,11 @@ func ExampleNewTenantClient() { func ExampleNewTenantRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -51,6 +61,11 @@ func ExampleNewTenantRESTClient() { func ExampleTenantClient_CreateTenant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -71,6 +86,11 @@ func ExampleTenantClient_CreateTenant() { func ExampleTenantClient_GetTenant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -91,6 +111,11 @@ func ExampleTenantClient_GetTenant() { func ExampleTenantClient_UpdateTenant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +136,11 @@ func ExampleTenantClient_UpdateTenant() { func ExampleTenantClient_DeleteTenant() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -129,6 +159,11 @@ func ExampleTenantClient_DeleteTenant() { func ExampleTenantClient_ListTenants() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -155,6 +190,11 @@ func ExampleTenantClient_ListTenants() { func ExampleTenantClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. diff --git a/talent/go.mod b/talent/go.mod index 9f66529cd39..5b90de4c2ba 100644 --- a/talent/go.mod +++ b/talent/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/talent/go.sum b/talent/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/talent/go.sum +++ b/talent/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/texttospeech/apiv1/doc.go b/texttospeech/apiv1/doc.go index efe73d0800d..5332b68a7eb 100644 --- a/texttospeech/apiv1/doc.go +++ b/texttospeech/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := texttospeech.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := texttospeech.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/texttospeech/apiv1/text_to_speech_client.go b/texttospeech/apiv1/text_to_speech_client.go index 4d100668ae0..f9b81004423 100644 --- a/texttospeech/apiv1/text_to_speech_client.go +++ b/texttospeech/apiv1/text_to_speech_client.go @@ -118,7 +118,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -194,7 +195,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/texttospeech/apiv1/text_to_speech_client_example_test.go b/texttospeech/apiv1/text_to_speech_client_example_test.go index 6e1b839114f..cf1b99f2b94 100644 --- a/texttospeech/apiv1/text_to_speech_client_example_test.go +++ b/texttospeech/apiv1/text_to_speech_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := texttospeech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_ListVoices() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := texttospeech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleClient_ListVoices() { func ExampleClient_SynthesizeSpeech() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := texttospeech.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/texttospeech/go.mod b/texttospeech/go.mod index adf50c00665..8d888948e4e 100644 --- a/texttospeech/go.mod +++ b/texttospeech/go.mod @@ -4,22 +4,22 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 ) require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.28.1 // indirect diff --git a/texttospeech/go.sum b/texttospeech/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/texttospeech/go.sum +++ b/texttospeech/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/tpu/apiv1/doc.go b/tpu/apiv1/doc.go index 5c85473c27f..e4d1af7b3fb 100644 --- a/tpu/apiv1/doc.go +++ b/tpu/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := tpu.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := tpu.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/tpu/apiv1/tpu_client.go b/tpu/apiv1/tpu_client.go index 320d5713408..ca5008012cf 100644 --- a/tpu/apiv1/tpu_client.go +++ b/tpu/apiv1/tpu_client.go @@ -141,7 +141,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -309,7 +310,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/tpu/apiv1/tpu_client_example_test.go b/tpu/apiv1/tpu_client_example_test.go index 00b54cb3fb5..0234cb805f4 100644 --- a/tpu/apiv1/tpu_client_example_test.go +++ b/tpu/apiv1/tpu_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListNodes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListNodes() { func ExampleClient_GetNode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetNode() { func ExampleClient_CreateNode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_CreateNode() { func ExampleClient_DeleteNode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleClient_DeleteNode() { func ExampleClient_ReimageNode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -159,6 +189,11 @@ func ExampleClient_ReimageNode() { func ExampleClient_StopNode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -184,6 +219,11 @@ func ExampleClient_StopNode() { func ExampleClient_StartNode() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -209,6 +249,11 @@ func ExampleClient_StartNode() { func ExampleClient_ListTensorFlowVersions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -235,6 +280,11 @@ func ExampleClient_ListTensorFlowVersions() { func ExampleClient_GetTensorFlowVersion() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -255,6 +305,11 @@ func ExampleClient_GetTensorFlowVersion() { func ExampleClient_ListAcceleratorTypes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -281,6 +336,11 @@ func ExampleClient_ListAcceleratorTypes() { func ExampleClient_GetAcceleratorType() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/tpu/go.mod b/tpu/go.mod index 3b369e76ded..be7bc964f79 100644 --- a/tpu/go.mod +++ b/tpu/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/tpu/go.sum b/tpu/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/tpu/go.sum +++ b/tpu/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/trace/apiv1/doc.go b/trace/apiv1/doc.go index 268664ed159..930097a9ac1 100644 --- a/trace/apiv1/doc.go +++ b/trace/apiv1/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := trace.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := trace.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/trace/apiv1/trace_client.go b/trace/apiv1/trace_client.go index 3db2f870bc5..7dbd800fae2 100644 --- a/trace/apiv1/trace_client.go +++ b/trace/apiv1/trace_client.go @@ -140,7 +140,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -228,7 +229,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/trace/apiv1/trace_client_example_test.go b/trace/apiv1/trace_client_example_test.go index 260d1d2923d..ed8baade77e 100644 --- a/trace/apiv1/trace_client_example_test.go +++ b/trace/apiv1/trace_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListTraces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListTraces() { func ExampleClient_GetTrace() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetTrace() { func ExampleClient_PatchTraces() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/trace/apiv2/doc.go b/trace/apiv2/doc.go index 2d1f1bdef9b..5c67c10369e 100644 --- a/trace/apiv2/doc.go +++ b/trace/apiv2/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := trace.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := trace.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/trace/apiv2/trace_client.go b/trace/apiv2/trace_client.go index f1c3f03349d..8738ab66a6c 100644 --- a/trace/apiv2/trace_client.go +++ b/trace/apiv2/trace_client.go @@ -113,7 +113,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -193,7 +194,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/trace/apiv2/trace_client_example_test.go b/trace/apiv2/trace_client_example_test.go index 41d99cb6868..4df656eecc4 100644 --- a/trace/apiv2/trace_client_example_test.go +++ b/trace/apiv2/trace_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_BatchWriteSpans() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -55,6 +65,11 @@ func ExampleClient_BatchWriteSpans() { func ExampleClient_CreateSpan() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/trace/go.mod b/trace/go.mod index e7d2dbf96fd..e26d1dad3ab 100644 --- a/trace/go.mod +++ b/trace/go.mod @@ -4,9 +4,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.86.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220706185917-7780775163c4 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -15,11 +14,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/trace/go.sum b/trace/go.sum index 8f382dd99fe..cf9417f7912 100644 --- a/trace/go.sum +++ b/trace/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.86.0 h1:ZAnyOHQFIuWso1BodVfSaRyffD74T9ERGFa3k1fNk/U= -google.golang.org/api v0.86.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/translate/apiv3/doc.go b/translate/apiv3/doc.go index b50a423f209..84b86b61a14 100644 --- a/translate/apiv3/doc.go +++ b/translate/apiv3/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := translate.NewTranslationClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := translate.NewTranslationClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/translate/apiv3/translation_client.go b/translate/apiv3/translation_client.go index f68181cb2ae..37c04a1e528 100644 --- a/translate/apiv3/translation_client.go +++ b/translate/apiv3/translation_client.go @@ -180,7 +180,8 @@ func (c *TranslationClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *TranslationClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -352,7 +353,8 @@ func NewTranslationClient(ctx context.Context, opts ...option.ClientOption) (*Tr // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *translationGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/translate/apiv3/translation_client_example_test.go b/translate/apiv3/translation_client_example_test.go index cb957a9db55..762eb912b29 100644 --- a/translate/apiv3/translation_client_example_test.go +++ b/translate/apiv3/translation_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewTranslationClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewTranslationClient() { func ExampleTranslationClient_TranslateText() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleTranslationClient_TranslateText() { func ExampleTranslationClient_DetectLanguage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -78,6 +93,11 @@ func ExampleTranslationClient_DetectLanguage() { func ExampleTranslationClient_GetSupportedLanguages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -98,6 +118,11 @@ func ExampleTranslationClient_GetSupportedLanguages() { func ExampleTranslationClient_TranslateDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -118,6 +143,11 @@ func ExampleTranslationClient_TranslateDocument() { func ExampleTranslationClient_BatchTranslateText() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -143,6 +173,11 @@ func ExampleTranslationClient_BatchTranslateText() { func ExampleTranslationClient_BatchTranslateDocument() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleTranslationClient_BatchTranslateDocument() { func ExampleTranslationClient_CreateGlossary() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -193,6 +233,11 @@ func ExampleTranslationClient_CreateGlossary() { func ExampleTranslationClient_ListGlossaries() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -219,6 +264,11 @@ func ExampleTranslationClient_ListGlossaries() { func ExampleTranslationClient_GetGlossary() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -239,6 +289,11 @@ func ExampleTranslationClient_GetGlossary() { func ExampleTranslationClient_DeleteGlossary() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/translate/go.mod b/translate/go.mod index dcde2772cdc..4e98eeaab4b 100644 --- a/translate/go.mod +++ b/translate/go.mod @@ -4,10 +4,9 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 golang.org/x/text v0.3.7 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -16,12 +15,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/google/uuid v1.3.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/translate/go.sum b/translate/go.sum index 76c87faf83d..741db6bb224 100644 --- a/translate/go.sum +++ b/translate/go.sum @@ -314,8 +314,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -501,8 +502,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/video/go.mod b/video/go.mod index 69b374c24ca..88f9f4c21b3 100644 --- a/video/go.mod +++ b/video/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/video/go.sum b/video/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/video/go.sum +++ b/video/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/video/livestream/apiv1/doc.go b/video/livestream/apiv1/doc.go index 0de3cab8af8..0aeae7fefa6 100644 --- a/video/livestream/apiv1/doc.go +++ b/video/livestream/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := livestream.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := livestream.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/video/livestream/apiv1/livestream_client.go b/video/livestream/apiv1/livestream_client.go index 408395f57a2..a1147910362 100644 --- a/video/livestream/apiv1/livestream_client.go +++ b/video/livestream/apiv1/livestream_client.go @@ -222,7 +222,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -438,7 +439,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/video/livestream/apiv1/livestream_client_example_test.go b/video/livestream/apiv1/livestream_client_example_test.go index cadf1ff104b..fcfd1ed89e8 100644 --- a/video/livestream/apiv1/livestream_client_example_test.go +++ b/video/livestream/apiv1/livestream_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -63,6 +73,11 @@ func ExampleClient_CreateChannel() { func ExampleClient_ListChannels() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +104,11 @@ func ExampleClient_ListChannels() { func ExampleClient_GetChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_GetChannel() { func ExampleClient_DeleteChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleClient_DeleteChannel() { func ExampleClient_UpdateChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleClient_UpdateChannel() { func ExampleClient_StartChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +217,11 @@ func ExampleClient_StartChannel() { func ExampleClient_StopChannel() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -207,6 +247,11 @@ func ExampleClient_StopChannel() { func ExampleClient_CreateInput() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -232,6 +277,11 @@ func ExampleClient_CreateInput() { func ExampleClient_ListInputs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -258,6 +308,11 @@ func ExampleClient_ListInputs() { func ExampleClient_GetInput() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -278,6 +333,11 @@ func ExampleClient_GetInput() { func ExampleClient_DeleteInput() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -301,6 +361,11 @@ func ExampleClient_DeleteInput() { func ExampleClient_UpdateInput() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -326,6 +391,11 @@ func ExampleClient_UpdateInput() { func ExampleClient_CreateEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -346,6 +416,11 @@ func ExampleClient_CreateEvent() { func ExampleClient_ListEvents() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -372,6 +447,11 @@ func ExampleClient_ListEvents() { func ExampleClient_GetEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -392,6 +472,11 @@ func ExampleClient_GetEvent() { func ExampleClient_DeleteEvent() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/video/stitcher/apiv1/doc.go b/video/stitcher/apiv1/doc.go index d2aab0bde5d..ec2b20976e7 100644 --- a/video/stitcher/apiv1/doc.go +++ b/video/stitcher/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := stitcher.NewVideoStitcherClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := stitcher.NewVideoStitcherClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/video/stitcher/apiv1/video_stitcher_client.go b/video/stitcher/apiv1/video_stitcher_client.go index cd52b721d82..4b9a9dc6320 100644 --- a/video/stitcher/apiv1/video_stitcher_client.go +++ b/video/stitcher/apiv1/video_stitcher_client.go @@ -157,7 +157,8 @@ func (c *VideoStitcherClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *VideoStitcherClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -330,7 +331,8 @@ func NewVideoStitcherClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *videoStitcherGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/video/stitcher/apiv1/video_stitcher_client_example_test.go b/video/stitcher/apiv1/video_stitcher_client_example_test.go index 660d9dc36cd..4a9e7c7b30a 100644 --- a/video/stitcher/apiv1/video_stitcher_client_example_test.go +++ b/video/stitcher/apiv1/video_stitcher_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewVideoStitcherClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewVideoStitcherClient() { func ExampleVideoStitcherClient_CreateCdnKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleVideoStitcherClient_CreateCdnKey() { func ExampleVideoStitcherClient_ListCdnKeys() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleVideoStitcherClient_ListCdnKeys() { func ExampleVideoStitcherClient_GetCdnKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleVideoStitcherClient_GetCdnKey() { func ExampleVideoStitcherClient_DeleteCdnKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleVideoStitcherClient_DeleteCdnKey() { func ExampleVideoStitcherClient_UpdateCdnKey() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleVideoStitcherClient_UpdateCdnKey() { func ExampleVideoStitcherClient_CreateVodSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleVideoStitcherClient_CreateVodSession() { func ExampleVideoStitcherClient_GetVodSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleVideoStitcherClient_GetVodSession() { func ExampleVideoStitcherClient_ListVodStitchDetails() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleVideoStitcherClient_ListVodStitchDetails() { func ExampleVideoStitcherClient_GetVodStitchDetail() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleVideoStitcherClient_GetVodStitchDetail() { func ExampleVideoStitcherClient_ListVodAdTagDetails() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +309,11 @@ func ExampleVideoStitcherClient_ListVodAdTagDetails() { func ExampleVideoStitcherClient_GetVodAdTagDetail() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +334,11 @@ func ExampleVideoStitcherClient_GetVodAdTagDetail() { func ExampleVideoStitcherClient_ListLiveAdTagDetails() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -300,6 +365,11 @@ func ExampleVideoStitcherClient_ListLiveAdTagDetails() { func ExampleVideoStitcherClient_GetLiveAdTagDetail() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -320,6 +390,11 @@ func ExampleVideoStitcherClient_GetLiveAdTagDetail() { func ExampleVideoStitcherClient_CreateSlate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -340,6 +415,11 @@ func ExampleVideoStitcherClient_CreateSlate() { func ExampleVideoStitcherClient_ListSlates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -366,6 +446,11 @@ func ExampleVideoStitcherClient_ListSlates() { func ExampleVideoStitcherClient_GetSlate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -386,6 +471,11 @@ func ExampleVideoStitcherClient_GetSlate() { func ExampleVideoStitcherClient_UpdateSlate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -406,6 +496,11 @@ func ExampleVideoStitcherClient_UpdateSlate() { func ExampleVideoStitcherClient_DeleteSlate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -424,6 +519,11 @@ func ExampleVideoStitcherClient_DeleteSlate() { func ExampleVideoStitcherClient_CreateLiveSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -444,6 +544,11 @@ func ExampleVideoStitcherClient_CreateLiveSession() { func ExampleVideoStitcherClient_GetLiveSession() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/video/transcoder/apiv1/doc.go b/video/transcoder/apiv1/doc.go index 580dab7e344..60ade3583cc 100644 --- a/video/transcoder/apiv1/doc.go +++ b/video/transcoder/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := transcoder.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := transcoder.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/video/transcoder/apiv1/transcoder_client.go b/video/transcoder/apiv1/transcoder_client.go index 16069a3f784..d45518b4dd5 100644 --- a/video/transcoder/apiv1/transcoder_client.go +++ b/video/transcoder/apiv1/transcoder_client.go @@ -122,7 +122,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -232,7 +233,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/video/transcoder/apiv1/transcoder_client_example_test.go b/video/transcoder/apiv1/transcoder_client_example_test.go index b724a5f46f6..2bf1f68b608 100644 --- a/video/transcoder/apiv1/transcoder_client_example_test.go +++ b/video/transcoder/apiv1/transcoder_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateJob() { func ExampleClient_ListJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_ListJobs() { func ExampleClient_GetJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_GetJob() { func ExampleClient_DeleteJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleClient_DeleteJob() { func ExampleClient_CreateJobTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_CreateJobTemplate() { func ExampleClient_ListJobTemplates() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -168,6 +203,11 @@ func ExampleClient_ListJobTemplates() { func ExampleClient_GetJobTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleClient_GetJobTemplate() { func ExampleClient_DeleteJobTemplate() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/videointelligence/apiv1/doc.go b/videointelligence/apiv1/doc.go index 3657fb8700d..030c788d5b4 100644 --- a/videointelligence/apiv1/doc.go +++ b/videointelligence/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := videointelligence.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := videointelligence.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/videointelligence/apiv1/video_intelligence_client.go b/videointelligence/apiv1/video_intelligence_client.go index e16c4e21ca3..0043fc846a5 100644 --- a/videointelligence/apiv1/video_intelligence_client.go +++ b/videointelligence/apiv1/video_intelligence_client.go @@ -113,7 +113,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -208,7 +209,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/videointelligence/apiv1/video_intelligence_client_example_test.go b/videointelligence/apiv1/video_intelligence_client_example_test.go index 9da93a7e3b4..3d657a94e41 100644 --- a/videointelligence/apiv1/video_intelligence_client_example_test.go +++ b/videointelligence/apiv1/video_intelligence_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_AnnotateVideo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/videointelligence/apiv1beta2/doc.go b/videointelligence/apiv1beta2/doc.go index 301c58603a6..1c69eae33db 100644 --- a/videointelligence/apiv1beta2/doc.go +++ b/videointelligence/apiv1beta2/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := videointelligence.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := videointelligence.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/videointelligence/apiv1beta2/video_intelligence_client.go b/videointelligence/apiv1beta2/video_intelligence_client.go index 8060d61297f..2fd1614ca55 100644 --- a/videointelligence/apiv1beta2/video_intelligence_client.go +++ b/videointelligence/apiv1beta2/video_intelligence_client.go @@ -137,7 +137,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -232,7 +233,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -331,7 +333,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } diff --git a/videointelligence/apiv1beta2/video_intelligence_client_example_test.go b/videointelligence/apiv1beta2/video_intelligence_client_example_test.go index edc92a2d0c6..fa314a436f0 100644 --- a/videointelligence/apiv1beta2/video_intelligence_client_example_test.go +++ b/videointelligence/apiv1beta2/video_intelligence_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewRESTClient() { func ExampleClient_AnnotateVideo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/videointelligence/apiv1p3beta1/doc.go b/videointelligence/apiv1p3beta1/doc.go index 037518b083a..fba861f0c84 100644 --- a/videointelligence/apiv1p3beta1/doc.go +++ b/videointelligence/apiv1p3beta1/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := videointelligence.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := videointelligence.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/videointelligence/apiv1p3beta1/streaming_video_intelligence_client.go b/videointelligence/apiv1p3beta1/streaming_video_intelligence_client.go index 060f703af8b..f4e8f65a695 100644 --- a/videointelligence/apiv1p3beta1/streaming_video_intelligence_client.go +++ b/videointelligence/apiv1p3beta1/streaming_video_intelligence_client.go @@ -104,7 +104,8 @@ func (c *StreamingVideoIntelligenceClient) setGoogleClientInfo(keyval ...string) // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *StreamingVideoIntelligenceClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -176,7 +177,8 @@ func NewStreamingVideoIntelligenceClient(ctx context.Context, opts ...option.Cli // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *streamingVideoIntelligenceGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/videointelligence/apiv1p3beta1/streaming_video_intelligence_client_example_test.go b/videointelligence/apiv1p3beta1/streaming_video_intelligence_client_example_test.go index 94b49ddc0dc..f69ddb1923a 100644 --- a/videointelligence/apiv1p3beta1/streaming_video_intelligence_client_example_test.go +++ b/videointelligence/apiv1p3beta1/streaming_video_intelligence_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewStreamingVideoIntelligenceClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewStreamingVideoIntelligenceClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewStreamingVideoIntelligenceClient() { func ExampleStreamingVideoIntelligenceClient_StreamingAnnotateVideo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewStreamingVideoIntelligenceClient(ctx) if err != nil { // TODO: Handle error. diff --git a/videointelligence/apiv1p3beta1/video_intelligence_client.go b/videointelligence/apiv1p3beta1/video_intelligence_client.go index 00281f09f7f..24daec97ccd 100644 --- a/videointelligence/apiv1p3beta1/video_intelligence_client.go +++ b/videointelligence/apiv1p3beta1/video_intelligence_client.go @@ -113,7 +113,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -208,7 +209,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/videointelligence/apiv1p3beta1/video_intelligence_client_example_test.go b/videointelligence/apiv1p3beta1/video_intelligence_client_example_test.go index a6d055850d2..14c98d8d7e7 100644 --- a/videointelligence/apiv1p3beta1/video_intelligence_client_example_test.go +++ b/videointelligence/apiv1p3beta1/video_intelligence_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_AnnotateVideo() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/videointelligence/go.mod b/videointelligence/go.mod index 5a9696b188b..69f7868cfe0 100644 --- a/videointelligence/go.mod +++ b/videointelligence/go.mod @@ -4,10 +4,9 @@ go 1.17 require ( cloud.google.com/go v0.102.1 - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220621134657-43db42f103f7 + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -15,12 +14,13 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/videointelligence/go.sum b/videointelligence/go.sum index b0eaa2b3b87..fe8755ea9d8 100644 --- a/videointelligence/go.sum +++ b/videointelligence/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -586,8 +589,8 @@ google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220621134657-43db42f103f7 h1:XTvrnF+agrvedRVFXmEdp+SwIvbGo7E6Y16Tr/LqURk= -google.golang.org/genproto v0.0.0-20220621134657-43db42f103f7/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/vision/apiv1p1beta1/doc.go b/vision/apiv1p1beta1/doc.go index 52f805ff571..6e11e0fc40d 100644 --- a/vision/apiv1p1beta1/doc.go +++ b/vision/apiv1p1beta1/doc.go @@ -28,6 +28,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := vision.NewImageAnnotatorClient(ctx) // if err != nil { // // TODO: Handle error. @@ -43,6 +48,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := vision.NewImageAnnotatorClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/vision/apiv1p1beta1/image_annotator_client.go b/vision/apiv1p1beta1/image_annotator_client.go index 8622c2d47cf..103f2c8a2e2 100644 --- a/vision/apiv1p1beta1/image_annotator_client.go +++ b/vision/apiv1p1beta1/image_annotator_client.go @@ -130,7 +130,8 @@ func (c *ImageAnnotatorClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ImageAnnotatorClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -202,7 +203,8 @@ func NewImageAnnotatorClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *imageAnnotatorGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -288,7 +290,7 @@ func (c *imageAnnotatorRESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *imageAnnotatorRESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/vision/apiv1p1beta1/image_annotator_client_example_test.go b/vision/apiv1p1beta1/image_annotator_client_example_test.go index 5bd3f00cf03..21635e4c9ea 100644 --- a/vision/apiv1p1beta1/image_annotator_client_example_test.go +++ b/vision/apiv1p1beta1/image_annotator_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewImageAnnotatorClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewImageAnnotatorClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewImageAnnotatorClient() { func ExampleNewImageAnnotatorRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewImageAnnotatorRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewImageAnnotatorRESTClient() { func ExampleImageAnnotatorClient_BatchAnnotateImages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewImageAnnotatorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/vision/go.mod b/vision/go.mod index 65e1e4a7f0c..a49ffc2a27e 100644 --- a/vision/go.mod +++ b/vision/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/vision/go.sum b/vision/go.sum index 9cae71363a9..c796dcdc667 100644 --- a/vision/go.sum +++ b/vision/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/vision/v2/apiv1/doc.go b/vision/v2/apiv1/doc.go index d444dccd442..9c5836b0063 100644 --- a/vision/v2/apiv1/doc.go +++ b/vision/v2/apiv1/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := vision.NewProductSearchClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := vision.NewProductSearchClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/vision/v2/apiv1/image_annotator_client.go b/vision/v2/apiv1/image_annotator_client.go index 9c6dc0f6097..459f5ad14c6 100644 --- a/vision/v2/apiv1/image_annotator_client.go +++ b/vision/v2/apiv1/image_annotator_client.go @@ -160,7 +160,8 @@ func (c *ImageAnnotatorClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ImageAnnotatorClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -294,7 +295,8 @@ func NewImageAnnotatorClient(ctx context.Context, opts ...option.ClientOption) ( // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *imageAnnotatorGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/vision/v2/apiv1/image_annotator_client_example_test.go b/vision/v2/apiv1/image_annotator_client_example_test.go index b771fef0e2a..559f1ffb859 100644 --- a/vision/v2/apiv1/image_annotator_client_example_test.go +++ b/vision/v2/apiv1/image_annotator_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewImageAnnotatorClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewImageAnnotatorClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewImageAnnotatorClient() { func ExampleImageAnnotatorClient_BatchAnnotateImages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewImageAnnotatorClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleImageAnnotatorClient_BatchAnnotateImages() { func ExampleImageAnnotatorClient_BatchAnnotateFiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewImageAnnotatorClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleImageAnnotatorClient_BatchAnnotateFiles() { func ExampleImageAnnotatorClient_AsyncBatchAnnotateImages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewImageAnnotatorClient(ctx) if err != nil { // TODO: Handle error. @@ -102,6 +122,11 @@ func ExampleImageAnnotatorClient_AsyncBatchAnnotateImages() { func ExampleImageAnnotatorClient_AsyncBatchAnnotateFiles() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewImageAnnotatorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/vision/v2/apiv1/product_search_client.go b/vision/v2/apiv1/product_search_client.go index b443ed274ed..f9887d98dd6 100644 --- a/vision/v2/apiv1/product_search_client.go +++ b/vision/v2/apiv1/product_search_client.go @@ -368,7 +368,8 @@ func (c *ProductSearchClient) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *ProductSearchClient) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -716,7 +717,8 @@ func NewProductSearchClient(ctx context.Context, opts ...option.ClientOption) (* // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *productSearchGRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/vision/v2/apiv1/product_search_client_example_test.go b/vision/v2/apiv1/product_search_client_example_test.go index 301c2f4b9bc..5cf75ace3a6 100644 --- a/vision/v2/apiv1/product_search_client_example_test.go +++ b/vision/v2/apiv1/product_search_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewProductSearchClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewProductSearchClient() { func ExampleProductSearchClient_CreateProductSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleProductSearchClient_CreateProductSet() { func ExampleProductSearchClient_ListProductSets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleProductSearchClient_ListProductSets() { func ExampleProductSearchClient_GetProductSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleProductSearchClient_GetProductSet() { func ExampleProductSearchClient_UpdateProductSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -124,6 +149,11 @@ func ExampleProductSearchClient_UpdateProductSet() { func ExampleProductSearchClient_DeleteProductSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleProductSearchClient_DeleteProductSet() { func ExampleProductSearchClient_CreateProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleProductSearchClient_CreateProduct() { func ExampleProductSearchClient_ListProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -188,6 +228,11 @@ func ExampleProductSearchClient_ListProducts() { func ExampleProductSearchClient_GetProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleProductSearchClient_GetProduct() { func ExampleProductSearchClient_UpdateProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleProductSearchClient_UpdateProduct() { func ExampleProductSearchClient_DeleteProduct() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -246,6 +301,11 @@ func ExampleProductSearchClient_DeleteProduct() { func ExampleProductSearchClient_CreateReferenceImage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -266,6 +326,11 @@ func ExampleProductSearchClient_CreateReferenceImage() { func ExampleProductSearchClient_DeleteReferenceImage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -284,6 +349,11 @@ func ExampleProductSearchClient_DeleteReferenceImage() { func ExampleProductSearchClient_ListReferenceImages() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -310,6 +380,11 @@ func ExampleProductSearchClient_ListReferenceImages() { func ExampleProductSearchClient_GetReferenceImage() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -330,6 +405,11 @@ func ExampleProductSearchClient_GetReferenceImage() { func ExampleProductSearchClient_AddProductToProductSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -348,6 +428,11 @@ func ExampleProductSearchClient_AddProductToProductSet() { func ExampleProductSearchClient_RemoveProductFromProductSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -366,6 +451,11 @@ func ExampleProductSearchClient_RemoveProductFromProductSet() { func ExampleProductSearchClient_ListProductsInProductSet() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -392,6 +482,11 @@ func ExampleProductSearchClient_ListProductsInProductSet() { func ExampleProductSearchClient_ImportProductSets() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -417,6 +512,11 @@ func ExampleProductSearchClient_ImportProductSets() { func ExampleProductSearchClient_PurgeProducts() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vision.NewProductSearchClient(ctx) if err != nil { // TODO: Handle error. diff --git a/vision/v2/go.mod b/vision/v2/go.mod index f7f37b44773..b7d26d733f9 100644 --- a/vision/v2/go.mod +++ b/vision/v2/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go v0.102.1 cloud.google.com/go/vision v1.2.0 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -20,7 +20,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/vision/v2/go.sum b/vision/v2/go.sum index 6bac227b8b9..1b0b876ba05 100644 --- a/vision/v2/go.sum +++ b/vision/v2/go.sum @@ -315,8 +315,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -501,8 +502,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/vmmigration/apiv1/doc.go b/vmmigration/apiv1/doc.go index b9dabb36dde..3644c0b0888 100644 --- a/vmmigration/apiv1/doc.go +++ b/vmmigration/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := vmmigration.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := vmmigration.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/vmmigration/apiv1/vm_migration_client.go b/vmmigration/apiv1/vm_migration_client.go index 056fdba5413..0c91c20ce87 100644 --- a/vmmigration/apiv1/vm_migration_client.go +++ b/vmmigration/apiv1/vm_migration_client.go @@ -260,7 +260,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -752,7 +753,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/vmmigration/apiv1/vm_migration_client_example_test.go b/vmmigration/apiv1/vm_migration_client_example_test.go index 177b9422653..1652f36495b 100644 --- a/vmmigration/apiv1/vm_migration_client_example_test.go +++ b/vmmigration/apiv1/vm_migration_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListSources() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListSources() { func ExampleClient_GetSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetSource() { func ExampleClient_CreateSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_CreateSource() { func ExampleClient_UpdateSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleClient_UpdateSource() { func ExampleClient_DeleteSource() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -157,6 +187,11 @@ func ExampleClient_DeleteSource() { func ExampleClient_FetchInventory() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -177,6 +212,11 @@ func ExampleClient_FetchInventory() { func ExampleClient_ListUtilizationReports() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -203,6 +243,11 @@ func ExampleClient_ListUtilizationReports() { func ExampleClient_GetUtilizationReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -223,6 +268,11 @@ func ExampleClient_GetUtilizationReport() { func ExampleClient_CreateUtilizationReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -248,6 +298,11 @@ func ExampleClient_CreateUtilizationReport() { func ExampleClient_DeleteUtilizationReport() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -271,6 +326,11 @@ func ExampleClient_DeleteUtilizationReport() { func ExampleClient_ListDatacenterConnectors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -297,6 +357,11 @@ func ExampleClient_ListDatacenterConnectors() { func ExampleClient_GetDatacenterConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -317,6 +382,11 @@ func ExampleClient_GetDatacenterConnector() { func ExampleClient_CreateDatacenterConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -342,6 +412,11 @@ func ExampleClient_CreateDatacenterConnector() { func ExampleClient_DeleteDatacenterConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -365,6 +440,11 @@ func ExampleClient_DeleteDatacenterConnector() { func ExampleClient_UpgradeAppliance() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -390,6 +470,11 @@ func ExampleClient_UpgradeAppliance() { func ExampleClient_CreateMigratingVm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -415,6 +500,11 @@ func ExampleClient_CreateMigratingVm() { func ExampleClient_ListMigratingVms() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -441,6 +531,11 @@ func ExampleClient_ListMigratingVms() { func ExampleClient_GetMigratingVm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -461,6 +556,11 @@ func ExampleClient_GetMigratingVm() { func ExampleClient_UpdateMigratingVm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -486,6 +586,11 @@ func ExampleClient_UpdateMigratingVm() { func ExampleClient_DeleteMigratingVm() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -509,6 +614,11 @@ func ExampleClient_DeleteMigratingVm() { func ExampleClient_StartMigration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -534,6 +644,11 @@ func ExampleClient_StartMigration() { func ExampleClient_ResumeMigration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -559,6 +674,11 @@ func ExampleClient_ResumeMigration() { func ExampleClient_PauseMigration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -584,6 +704,11 @@ func ExampleClient_PauseMigration() { func ExampleClient_FinalizeMigration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -609,6 +734,11 @@ func ExampleClient_FinalizeMigration() { func ExampleClient_CreateCloneJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -634,6 +764,11 @@ func ExampleClient_CreateCloneJob() { func ExampleClient_CancelCloneJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -659,6 +794,11 @@ func ExampleClient_CancelCloneJob() { func ExampleClient_ListCloneJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -685,6 +825,11 @@ func ExampleClient_ListCloneJobs() { func ExampleClient_GetCloneJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -705,6 +850,11 @@ func ExampleClient_GetCloneJob() { func ExampleClient_CreateCutoverJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -730,6 +880,11 @@ func ExampleClient_CreateCutoverJob() { func ExampleClient_CancelCutoverJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -755,6 +910,11 @@ func ExampleClient_CancelCutoverJob() { func ExampleClient_ListCutoverJobs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -781,6 +941,11 @@ func ExampleClient_ListCutoverJobs() { func ExampleClient_GetCutoverJob() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -801,6 +966,11 @@ func ExampleClient_GetCutoverJob() { func ExampleClient_ListGroups() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -827,6 +997,11 @@ func ExampleClient_ListGroups() { func ExampleClient_GetGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -847,6 +1022,11 @@ func ExampleClient_GetGroup() { func ExampleClient_CreateGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -872,6 +1052,11 @@ func ExampleClient_CreateGroup() { func ExampleClient_UpdateGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -897,6 +1082,11 @@ func ExampleClient_UpdateGroup() { func ExampleClient_DeleteGroup() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -920,6 +1110,11 @@ func ExampleClient_DeleteGroup() { func ExampleClient_AddGroupMigration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -945,6 +1140,11 @@ func ExampleClient_AddGroupMigration() { func ExampleClient_RemoveGroupMigration() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -970,6 +1170,11 @@ func ExampleClient_RemoveGroupMigration() { func ExampleClient_ListTargetProjects() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -996,6 +1201,11 @@ func ExampleClient_ListTargetProjects() { func ExampleClient_GetTargetProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -1016,6 +1226,11 @@ func ExampleClient_GetTargetProject() { func ExampleClient_CreateTargetProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -1041,6 +1256,11 @@ func ExampleClient_CreateTargetProject() { func ExampleClient_UpdateTargetProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -1066,6 +1286,11 @@ func ExampleClient_UpdateTargetProject() { func ExampleClient_DeleteTargetProject() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/vmmigration/go.mod b/vmmigration/go.mod index 3d44b3683d6..c14f459d8f9 100644 --- a/vmmigration/go.mod +++ b/vmmigration/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.87.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220719170305-83ca9fad585f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/vmmigration/go.sum b/vmmigration/go.sum index ae73fd8e89d..12d39709e37 100644 --- a/vmmigration/go.sum +++ b/vmmigration/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.87.0 h1:pUQVF/F+X7Tl1lo4LJoJf5BOpjtmINU80p9XpYTU2p4= -google.golang.org/api v0.87.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/vpcaccess/apiv1/doc.go b/vpcaccess/apiv1/doc.go index 7b3796eda7e..a14916bc547 100644 --- a/vpcaccess/apiv1/doc.go +++ b/vpcaccess/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := vpcaccess.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := vpcaccess.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/vpcaccess/apiv1/vpc_access_client.go b/vpcaccess/apiv1/vpc_access_client.go index 1f3adcd9895..a5212422a77 100644 --- a/vpcaccess/apiv1/vpc_access_client.go +++ b/vpcaccess/apiv1/vpc_access_client.go @@ -127,7 +127,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -265,7 +266,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/vpcaccess/apiv1/vpc_access_client_example_test.go b/vpcaccess/apiv1/vpc_access_client_example_test.go index 2e5477f0dad..539f4f6ec97 100644 --- a/vpcaccess/apiv1/vpc_access_client_example_test.go +++ b/vpcaccess/apiv1/vpc_access_client_example_test.go @@ -28,6 +28,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -40,6 +45,11 @@ func ExampleNewClient() { func ExampleClient_CreateConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -65,6 +75,11 @@ func ExampleClient_CreateConnector() { func ExampleClient_GetConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -85,6 +100,11 @@ func ExampleClient_GetConnector() { func ExampleClient_ListConnectors() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -111,6 +131,11 @@ func ExampleClient_ListConnectors() { func ExampleClient_DeleteConnector() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -134,6 +159,11 @@ func ExampleClient_DeleteConnector() { func ExampleClient_ListLocations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -160,6 +190,11 @@ func ExampleClient_ListLocations() { func ExampleClient_GetOperation() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -180,6 +215,11 @@ func ExampleClient_GetOperation() { func ExampleClient_ListOperations() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/vpcaccess/go.mod b/vpcaccess/go.mod index 255a3ad0c9c..edd699f911d 100644 --- a/vpcaccess/go.mod +++ b/vpcaccess/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220829144015-23454907ede3 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -19,7 +19,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/vpcaccess/go.sum b/vpcaccess/go.sum index fd3bdd332a0..bcdc5b4bdee 100644 --- a/vpcaccess/go.sum +++ b/vpcaccess/go.sum @@ -313,8 +313,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -499,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/webrisk/apiv1/doc.go b/webrisk/apiv1/doc.go index cecdffbde68..b797809496c 100644 --- a/webrisk/apiv1/doc.go +++ b/webrisk/apiv1/doc.go @@ -22,6 +22,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := webrisk.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -37,6 +42,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := webrisk.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/webrisk/apiv1/web_risk_client.go b/webrisk/apiv1/web_risk_client.go index 2ccd17ccfcb..57b63e8c601 100644 --- a/webrisk/apiv1/web_risk_client.go +++ b/webrisk/apiv1/web_risk_client.go @@ -138,7 +138,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -242,7 +243,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/webrisk/apiv1/web_risk_client_example_test.go b/webrisk/apiv1/web_risk_client_example_test.go index 1e4afbd71ee..dcaa3d706f1 100644 --- a/webrisk/apiv1/web_risk_client_example_test.go +++ b/webrisk/apiv1/web_risk_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewClient() { func ExampleClient_ComputeThreatListDiff() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -57,6 +67,11 @@ func ExampleClient_ComputeThreatListDiff() { func ExampleClient_SearchUris() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -77,6 +92,11 @@ func ExampleClient_SearchUris() { func ExampleClient_SearchHashes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -97,6 +117,11 @@ func ExampleClient_SearchHashes() { func ExampleClient_CreateSubmission() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/webrisk/apiv1beta1/doc.go b/webrisk/apiv1beta1/doc.go index a31be99ae51..c24ad093f5c 100644 --- a/webrisk/apiv1beta1/doc.go +++ b/webrisk/apiv1beta1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) // if err != nil { // // TODO: Handle error. diff --git a/webrisk/apiv1beta1/web_risk_service_v1_beta1_client.go b/webrisk/apiv1beta1/web_risk_service_v1_beta1_client.go index 616a4fec8c8..1eeb3a88a5a 100644 --- a/webrisk/apiv1beta1/web_risk_service_v1_beta1_client.go +++ b/webrisk/apiv1beta1/web_risk_service_v1_beta1_client.go @@ -178,7 +178,8 @@ func (c *WebRiskServiceV1Beta1Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *WebRiskServiceV1Beta1Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -263,7 +264,8 @@ func NewWebRiskServiceV1Beta1Client(ctx context.Context, opts ...option.ClientOp // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *webRiskServiceV1Beta1GRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -348,7 +350,7 @@ func (c *webRiskServiceV1Beta1RESTClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *webRiskServiceV1Beta1RESTClient) Connection() *grpc.ClientConn { return nil } diff --git a/webrisk/apiv1beta1/web_risk_service_v1_beta1_client_example_test.go b/webrisk/apiv1beta1/web_risk_service_v1_beta1_client_example_test.go index 2fcc8aee78e..ebf1de6bccd 100644 --- a/webrisk/apiv1beta1/web_risk_service_v1_beta1_client_example_test.go +++ b/webrisk/apiv1beta1/web_risk_service_v1_beta1_client_example_test.go @@ -25,6 +25,11 @@ import ( func ExampleNewWebRiskServiceV1Beta1Client() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -37,6 +42,11 @@ func ExampleNewWebRiskServiceV1Beta1Client() { func ExampleNewWebRiskServiceV1Beta1RESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewWebRiskServiceV1Beta1RESTClient(ctx) if err != nil { // TODO: Handle error. @@ -49,6 +59,11 @@ func ExampleNewWebRiskServiceV1Beta1RESTClient() { func ExampleWebRiskServiceV1Beta1Client_ComputeThreatListDiff() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -69,6 +84,11 @@ func ExampleWebRiskServiceV1Beta1Client_ComputeThreatListDiff() { func ExampleWebRiskServiceV1Beta1Client_SearchUris() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -89,6 +109,11 @@ func ExampleWebRiskServiceV1Beta1Client_SearchUris() { func ExampleWebRiskServiceV1Beta1Client_SearchHashes() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. diff --git a/webrisk/go.mod b/webrisk/go.mod index 86abb99bf57..40c884deac4 100644 --- a/webrisk/go.mod +++ b/webrisk/go.mod @@ -3,9 +3,8 @@ module cloud.google.com/go/webrisk go 1.17 require ( - github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.93.0 + google.golang.org/api v0.95.0 google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 @@ -14,11 +13,12 @@ require ( require ( cloud.google.com/go/compute v1.7.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/webrisk/go.sum b/webrisk/go.sum index 15fcdbc6368..e75fb777b02 100644 --- a/webrisk/go.sum +++ b/webrisk/go.sum @@ -312,8 +312,9 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 h1:+jnHzr9VPj32ykQVai5DNahi9+NSp7yYuCsl5eAQtL0= -golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +499,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M= -google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/websecurityscanner/apiv1/doc.go b/websecurityscanner/apiv1/doc.go index 90f2f031869..167143bae7c 100644 --- a/websecurityscanner/apiv1/doc.go +++ b/websecurityscanner/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := websecurityscanner.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := websecurityscanner.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/websecurityscanner/apiv1/web_security_scanner_client.go b/websecurityscanner/apiv1/web_security_scanner_client.go index 8e062dda136..ce3215c3995 100644 --- a/websecurityscanner/apiv1/web_security_scanner_client.go +++ b/websecurityscanner/apiv1/web_security_scanner_client.go @@ -234,7 +234,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -367,7 +368,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/websecurityscanner/apiv1/web_security_scanner_client_example_test.go b/websecurityscanner/apiv1/web_security_scanner_client_example_test.go index 4e033d80499..448f8b94f02 100644 --- a/websecurityscanner/apiv1/web_security_scanner_client_example_test.go +++ b/websecurityscanner/apiv1/web_security_scanner_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_CreateScanConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -58,6 +68,11 @@ func ExampleClient_CreateScanConfig() { func ExampleClient_DeleteScanConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleClient_DeleteScanConfig() { func ExampleClient_GetScanConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleClient_GetScanConfig() { func ExampleClient_ListScanConfigs() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -122,6 +147,11 @@ func ExampleClient_ListScanConfigs() { func ExampleClient_UpdateScanConfig() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -142,6 +172,11 @@ func ExampleClient_UpdateScanConfig() { func ExampleClient_StartScanRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -162,6 +197,11 @@ func ExampleClient_StartScanRun() { func ExampleClient_GetScanRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -182,6 +222,11 @@ func ExampleClient_GetScanRun() { func ExampleClient_ListScanRuns() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -208,6 +253,11 @@ func ExampleClient_ListScanRuns() { func ExampleClient_StopScanRun() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -228,6 +278,11 @@ func ExampleClient_StopScanRun() { func ExampleClient_ListCrawledUrls() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -254,6 +309,11 @@ func ExampleClient_ListCrawledUrls() { func ExampleClient_GetFinding() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -274,6 +334,11 @@ func ExampleClient_GetFinding() { func ExampleClient_ListFindings() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -300,6 +365,11 @@ func ExampleClient_ListFindings() { func ExampleClient_ListFindingTypeStats() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/websecurityscanner/go.mod b/websecurityscanner/go.mod index fb0016d9d41..7fc082193ed 100644 --- a/websecurityscanner/go.mod +++ b/websecurityscanner/go.mod @@ -4,8 +4,8 @@ go 1.17 require ( github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.94.0 - google.golang.org/genproto v0.0.0-20220902135211-223410557253 + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,7 +18,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect - golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect diff --git a/websecurityscanner/go.sum b/websecurityscanner/go.sum index 2814c826030..f600310a011 100644 --- a/websecurityscanner/go.sum +++ b/websecurityscanner/go.sum @@ -27,8 +27,10 @@ cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= -cloud.google.com/go v0.102.0 h1:DAq3r8y4mDgyB/ZPJ9v/5VJNqjgJAxTn6ZYLlUywOu8= cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= @@ -49,6 +51,7 @@ cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2k cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= @@ -312,8 +315,10 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= -golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -498,8 +503,9 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.94.0 h1:KtKM9ru3nzQioV1HLlUf1cR7vMYJIpgls5VhAYQXIwA= -google.golang.org/api v0.94.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -586,11 +592,11 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf h1:Q5xNKbTSFwkuaaGaR7CMcXEM5sy19KYdUU8iF8/iRC0= -google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= -google.golang.org/genproto v0.0.0-20220902135211-223410557253 h1:vXJMM8Shg7TGaYxZsQ++A/FOSlbDmDtWhS/o+3w/hj4= -google.golang.org/genproto v0.0.0-20220902135211-223410557253/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5 h1:ou3VRVAif8UJqz3l1r4Isoz7rrUWHWDHBonShMNYoQs= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/workflows/apiv1/doc.go b/workflows/apiv1/doc.go index 0f234561839..7b15234d09e 100644 --- a/workflows/apiv1/doc.go +++ b/workflows/apiv1/doc.go @@ -25,6 +25,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := workflows.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -40,6 +45,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := workflows.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/workflows/apiv1/workflows_client.go b/workflows/apiv1/workflows_client.go index 27f0a8588c0..a10e43111d8 100644 --- a/workflows/apiv1/workflows_client.go +++ b/workflows/apiv1/workflows_client.go @@ -121,7 +121,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -256,7 +257,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/workflows/apiv1/workflows_client_example_test.go b/workflows/apiv1/workflows_client_example_test.go index 013a95fbce6..dacab5e241a 100644 --- a/workflows/apiv1/workflows_client_example_test.go +++ b/workflows/apiv1/workflows_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListWorkflows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListWorkflows() { func ExampleClient_GetWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_GetWorkflow() { func ExampleClient_CreateWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -109,6 +129,11 @@ func ExampleClient_CreateWorkflow() { func ExampleClient_DeleteWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -132,6 +157,11 @@ func ExampleClient_DeleteWorkflow() { func ExampleClient_UpdateWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/workflows/apiv1beta/doc.go b/workflows/apiv1beta/doc.go index 06437358205..74cba183ab6 100644 --- a/workflows/apiv1beta/doc.go +++ b/workflows/apiv1beta/doc.go @@ -27,6 +27,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := workflows.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -42,6 +47,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := workflows.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/workflows/apiv1beta/workflows_client.go b/workflows/apiv1beta/workflows_client.go index 5cae664e4a9..acc3300a881 100644 --- a/workflows/apiv1beta/workflows_client.go +++ b/workflows/apiv1beta/workflows_client.go @@ -137,7 +137,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -272,7 +273,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -373,7 +375,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } @@ -793,8 +795,12 @@ func (c *restClient) UpdateWorkflow(ctx context.Context, req *workflowspb.Update baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetWorkflow().GetName()) params := url.Values{} - if req.GetUpdateMask().GetPaths() != nil { - params.Add("updateMask.paths", fmt.Sprintf("%v", req.GetUpdateMask().GetPaths())) + if req.GetUpdateMask() != nil { + updateMask, err := protojson.Marshal(req.GetUpdateMask()) + if err != nil { + return nil, err + } + params.Add("updateMask", string(updateMask)) } baseUrl.RawQuery = params.Encode() diff --git a/workflows/apiv1beta/workflows_client_example_test.go b/workflows/apiv1beta/workflows_client_example_test.go index 54864005b94..fb21a187894 100644 --- a/workflows/apiv1beta/workflows_client_example_test.go +++ b/workflows/apiv1beta/workflows_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListWorkflows() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleClient_ListWorkflows() { func ExampleClient_GetWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleClient_GetWorkflow() { func ExampleClient_CreateWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -121,6 +146,11 @@ func ExampleClient_CreateWorkflow() { func ExampleClient_DeleteWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -144,6 +174,11 @@ func ExampleClient_DeleteWorkflow() { func ExampleClient_UpdateWorkflow() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/workflows/executions/apiv1/doc.go b/workflows/executions/apiv1/doc.go index fe3e79b8568..a4757dd861d 100644 --- a/workflows/executions/apiv1/doc.go +++ b/workflows/executions/apiv1/doc.go @@ -24,6 +24,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := executions.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -39,6 +44,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := executions.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/workflows/executions/apiv1/executions_client.go b/workflows/executions/apiv1/executions_client.go index c3eeb914762..87ef28873c9 100644 --- a/workflows/executions/apiv1/executions_client.go +++ b/workflows/executions/apiv1/executions_client.go @@ -105,7 +105,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -194,7 +195,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } diff --git a/workflows/executions/apiv1/executions_client_example_test.go b/workflows/executions/apiv1/executions_client_example_test.go index 6dd1e297bad..f7e6cd79585 100644 --- a/workflows/executions/apiv1/executions_client_example_test.go +++ b/workflows/executions/apiv1/executions_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleClient_ListExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -64,6 +74,11 @@ func ExampleClient_ListExecutions() { func ExampleClient_CreateExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -84,6 +99,11 @@ func ExampleClient_CreateExecution() { func ExampleClient_GetExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -104,6 +124,11 @@ func ExampleClient_GetExecution() { func ExampleClient_CancelExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/workflows/executions/apiv1beta/doc.go b/workflows/executions/apiv1beta/doc.go index e565e70022b..94657c57ac5 100644 --- a/workflows/executions/apiv1beta/doc.go +++ b/workflows/executions/apiv1beta/doc.go @@ -26,6 +26,11 @@ // To get started with this package, create a client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := executions.NewClient(ctx) // if err != nil { // // TODO: Handle error. @@ -41,6 +46,11 @@ // The following is an example of making an API call with the newly created client. // // ctx := context.Background() +// // This snippet has been automatically generated and should be regarded as a code template only. +// // It will require modifications to work: +// // - It may require correct/in-range values for request initialization. +// // - It may require specifying regional endpoints when creating the service client as shown in: +// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options // c, err := executions.NewClient(ctx) // if err != nil { // // TODO: Handle error. diff --git a/workflows/executions/apiv1beta/executions_client.go b/workflows/executions/apiv1beta/executions_client.go index 05381ec4287..2bb391f89ca 100644 --- a/workflows/executions/apiv1beta/executions_client.go +++ b/workflows/executions/apiv1beta/executions_client.go @@ -120,7 +120,8 @@ func (c *Client) setGoogleClientInfo(keyval ...string) { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *Client) Connection() *grpc.ClientConn { return c.internalClient.Connection() } @@ -209,7 +210,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: Connections are now pooled so this method does not always +// return the same resource. func (c *gRPCClient) Connection() *grpc.ClientConn { return c.connPool.Conn() } @@ -294,7 +296,7 @@ func (c *restClient) Close() error { // Connection returns a connection to the API service. // -// Deprecated. +// Deprecated: This method always returns nil. func (c *restClient) Connection() *grpc.ClientConn { return nil } diff --git a/workflows/executions/apiv1beta/executions_client_example_test.go b/workflows/executions/apiv1beta/executions_client_example_test.go index 90713fc4160..1dddb0e9b3b 100644 --- a/workflows/executions/apiv1beta/executions_client_example_test.go +++ b/workflows/executions/apiv1beta/executions_client_example_test.go @@ -26,6 +26,11 @@ import ( func ExampleNewClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -38,6 +43,11 @@ func ExampleNewClient() { func ExampleNewRESTClient() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewRESTClient(ctx) if err != nil { // TODO: Handle error. @@ -50,6 +60,11 @@ func ExampleNewRESTClient() { func ExampleClient_ListExecutions() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -76,6 +91,11 @@ func ExampleClient_ListExecutions() { func ExampleClient_CreateExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -96,6 +116,11 @@ func ExampleClient_CreateExecution() { func ExampleClient_GetExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -116,6 +141,11 @@ func ExampleClient_GetExecution() { func ExampleClient_CancelExecution() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/workflows/go.mod b/workflows/go.mod index bba799d9265..1f9ddc55829 100644 --- a/workflows/go.mod +++ b/workflows/go.mod @@ -5,8 +5,8 @@ go 1.17 require ( cloud.google.com/go v0.102.1 github.com/googleapis/gax-go/v2 v2.4.0 - google.golang.org/api v0.85.0 - google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad + google.golang.org/api v0.95.0 + google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) @@ -18,9 +18,9 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect go.opencensus.io v0.23.0 // indirect - golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect - golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect - golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect + golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect + golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect + golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/workflows/go.sum b/workflows/go.sum index 2391d86f785..fe8755ea9d8 100644 --- a/workflows/go.sum +++ b/workflows/go.sum @@ -162,6 +162,7 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -290,8 +291,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= -golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e h1:TsQ7F31D3bUCLeqPT0u+yjp1guoArKaNKmCr22PYgTQ= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -311,8 +312,10 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb h1:8tDJ3aechhddbdPAxpycgXHJRMLpk/Ab+aa4OgdN5/g= golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 h1:lxqLZaMad/dJHMFZH0NiNpiEZI/nhgWhe4wgzpE+MuA= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -383,8 +386,8 @@ golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c h1:aFV+BgZ4svzjfabn8ERpuB4JI4N6/rdy1iusx77G3oU= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810 h1:rHZQSjJdAI4Xf5Qzeh2bBc5YJIkPFVM6oDtMFYmgws0= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -497,8 +500,8 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= -google.golang.org/api v0.85.0 h1:8rJoHuRxx+vCmZtAO/3k1dRLvYNVyTJtZ5oaFZvhgvc= -google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.95.0 h1:d1c24AAS01DYqXreBeuVV7ewY/U8Mnhh47pwtsgVtYg= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -585,8 +588,9 @@ google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= -google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad h1:kqrS+lhvaMHCxul6sKQvKJ8nAAhlVItmZV822hYFH/U= google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f h1:hJ/Y5SqPXbarffmAsApliUlcvMU+wScNGfyop4bZm8o= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=